Interface TableGrantsProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TableGrantsProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T21:55:08.829Z")
@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 IEncryptedResourceDeprecated.Leave this field undefined.default BooleanWhether this table has indexes.default IResourceWithPolicyV2Deprecated.Leave this field undefined.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
Deprecated.- Leave this field undefined. If the table is encrypted with a customer-managed KMS key, appropriate grants to the key will be automatically added.
(deprecated) The encrypted resource on which actions will be allowed.Default: - A best-effort attempt will be made to discover an associated KMS key and grant permissions to it.
-
getHasIndex
Whether this table has indexes.If so, permissions are granted on all table indexes as well.
Default: false
-
getPolicyResource
Deprecated.- Leave this field undefined. A best-effort attempt will be made to discover a resource policy and add permissions to it.
(deprecated) The resource with policy on which actions will be allowed.Default: - A best-effort attempt will be made to discover a resource policy and add permissions to it.
-
getRegions
Additional regions other than the main one that this table is replicated to.Default: - No regions
-
builder
- Returns:
- a
TableGrantsProps.BuilderofTableGrantsProps
-