Interface TableGrantsProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TableGrantsProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:18.560Z")
@Stability(Stable)
public interface TableGrantsProps
extends software.amazon.jsii.JsiiSerializable
Construction properties for TableGrants.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.interfaces.dynamodb.*;
IEncryptedResource encryptedResource;
IResourceWithPolicyV2 resourceWithPolicyV2;
ITableRef tableRef;
TableGrantsProps tableGrantsProps = TableGrantsProps.builder()
.table(tableRef)
// the properties below are optional
.encryptedResource(encryptedResource)
.hasIndex(false)
.policyResource(resourceWithPolicyV2)
.regions(List.of("regions"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTableGrantsPropsstatic final classAn implementation forTableGrantsProps -
Method Summary
Modifier and TypeMethodDescriptionstatic TableGrantsProps.Builderbuilder()default IEncryptedResourceThe encrypted resource on which actions will be allowed.default BooleanWhether this table has indexes.default IResourceWithPolicyV2The resource with policy on which actions will be allowed.Additional regions other than the main one that this table is replicated to.getTable()The table to grant permissions on.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTable
The table to grant permissions on. -
getEncryptedResource
The encrypted resource on which actions will be allowed.Default: - No permission is added to the KMS key, even if it exists
-
getHasIndex
Whether this table has indexes.If so, permissions are granted on all table indexes as well.
Default: false
-
getPolicyResource
The resource with policy on which actions will be allowed.Default: - No resource policy is created
-
getRegions
Additional regions other than the main one that this table is replicated to.Default: - No regions
-
builder
- Returns:
- a
TableGrantsProps.BuilderofTableGrantsProps
-