Class ITable.Jsii$Proxy
- All Implemented Interfaces:
IResource
,IResource.Jsii$Default
,ITable
,ITable.Jsii$Default
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
ITable
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.dynamodb.ITable
ITable.Jsii$Default, ITable.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.final IKey
Optional KMS encryption key associated with this table.final ResourceEnvironment
getEnv()
The environment this resource belongs to.final software.constructs.Node
getNode()
The tree node.final Stack
getStack()
The stack in which this resource is defined.final String
Arn of the dynamodb table.final String
Table name of the dynamodb table.final String
ARN of the table's stream, if there is one.final Grant
grant
(IGrantable grantee, @NotNull String... actions) Adds an IAM policy statement associated with this table to an IAM principal's policy.final Grant
grantFullAccess
(IGrantable grantee) Permits all DynamoDB operations ("dynamodb:*") to an IAM principal.final Grant
grantReadData
(IGrantable grantee) Permits an IAM principal all data read operations from this table: BatchGetItem, GetRecords, GetShardIterator, Query, GetItem, Scan.final Grant
grantReadWriteData
(IGrantable grantee) Permits an IAM principal to all data read/write operations to this table.final Grant
grantStream
(IGrantable grantee, @NotNull String... actions) Adds an IAM policy statement associated with this table's stream to an IAM principal's policy.final Grant
grantStreamRead
(IGrantable grantee) Permits an IAM principal all stream data read operations for this table's stream: DescribeStream, GetRecords, GetShardIterator, ListStreams.final Grant
grantTableListStreams
(IGrantable grantee) Permits an IAM Principal to list streams attached to current dynamodb table.final Grant
grantWriteData
(IGrantable grantee) Permits an IAM principal all data write operations to this table: BatchWriteItem, PutItem, UpdateItem, DeleteItem.final Metric
Metric for the number of Errors executing all Lambdas.final Metric
metric
(String metricName, MetricOptions props) Metric for the number of Errors executing all Lambdas.final Metric
Metric for the conditional check failed requests.final Metric
Metric for the conditional check failed requests.final Metric
Metric for the consumed read capacity units.final Metric
Metric for the consumed read capacity units.final Metric
Metric for the consumed write capacity units.final Metric
Metric for the consumed write capacity units.final Metric
Metric for the successful request latency.final Metric
Metric for the successful request latency.final IMetric
Metric for the system errors this table.final IMetric
Metric for the system errors this table.final Metric
Deprecated.final Metric
Deprecated.usemetricThrottledRequestsForOperations
final IMetric
Metric for throttled requests.final IMetric
Metric for throttled requests.final Metric
Metric for the user errors.final Metric
metricUserErrors
(MetricOptions props) Metric for the user errors.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIResource.Jsii$Default
- Specified by:
getNode
in interfaceITable.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
- Specified by:
getEnv
in interfaceITable.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
- Specified by:
getStack
in interfaceITable.Jsii$Default
-
getTableArn
Arn of the dynamodb table.- Specified by:
getTableArn
in interfaceITable
- Specified by:
getTableArn
in interfaceITable.Jsii$Default
-
getTableName
Table name of the dynamodb table.- Specified by:
getTableName
in interfaceITable
- Specified by:
getTableName
in interfaceITable.Jsii$Default
-
getEncryptionKey
Optional KMS encryption key associated with this table.- Specified by:
getEncryptionKey
in interfaceITable
- Specified by:
getEncryptionKey
in interfaceITable.Jsii$Default
-
getTableStreamArn
ARN of the table's stream, if there is one.- Specified by:
getTableStreamArn
in interfaceITable
- Specified by:
getTableStreamArn
in interfaceITable.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY
), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN
).- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in interfaceIResource.Jsii$Default
- Specified by:
applyRemovalPolicy
in interfaceITable.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
grant
@Stability(Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) Adds an IAM policy statement associated with this table to an IAM principal's policy.If
encryptionKey
is present, appropriate grants to the key needs to be added separately using thetable.encryptionKey.grant*
methods.- Specified by:
grant
in interfaceITable
- Specified by:
grant
in interfaceITable.Jsii$Default
- Parameters:
grantee
- The principal (no-op if undefined). This parameter is required.actions
- The set of actions to allow (i.e. "dynamodb:PutItem", "dynamodb:GetItem", ...). This parameter is required.
-
grantFullAccess
Permits all DynamoDB operations ("dynamodb:*") to an IAM principal.Appropriate grants will also be added to the customer-managed KMS key if one was configured.
- Specified by:
grantFullAccess
in interfaceITable
- Specified by:
grantFullAccess
in interfaceITable.Jsii$Default
- Parameters:
grantee
- The principal to grant access to. This parameter is required.
-
grantReadData
Permits an IAM principal all data read operations from this table: BatchGetItem, GetRecords, GetShardIterator, Query, GetItem, Scan.Appropriate grants will also be added to the customer-managed KMS key if one was configured.
- Specified by:
grantReadData
in interfaceITable
- Specified by:
grantReadData
in interfaceITable.Jsii$Default
- Parameters:
grantee
- The principal to grant access to. This parameter is required.
-
grantReadWriteData
Permits an IAM principal to all data read/write operations to this table.BatchGetItem, GetRecords, GetShardIterator, Query, GetItem, Scan, BatchWriteItem, PutItem, UpdateItem, DeleteItem
Appropriate grants will also be added to the customer-managed KMS key if one was configured.
- Specified by:
grantReadWriteData
in interfaceITable
- Specified by:
grantReadWriteData
in interfaceITable.Jsii$Default
- Parameters:
grantee
- The principal to grant access to. This parameter is required.
-
grantStream
@Stability(Stable) @NotNull public final Grant grantStream(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) Adds an IAM policy statement associated with this table's stream to an IAM principal's policy.If
encryptionKey
is present, appropriate grants to the key needs to be added separately using thetable.encryptionKey.grant*
methods.- Specified by:
grantStream
in interfaceITable
- Specified by:
grantStream
in interfaceITable.Jsii$Default
- Parameters:
grantee
- The principal (no-op if undefined). This parameter is required.actions
- The set of actions to allow (i.e. "dynamodb:DescribeStream", "dynamodb:GetRecords", ...). This parameter is required.
-
grantStreamRead
Permits an IAM principal all stream data read operations for this table's stream: DescribeStream, GetRecords, GetShardIterator, ListStreams.Appropriate grants will also be added to the customer-managed KMS key if one was configured.
- Specified by:
grantStreamRead
in interfaceITable
- Specified by:
grantStreamRead
in interfaceITable.Jsii$Default
- Parameters:
grantee
- The principal to grant access to. This parameter is required.
-
grantTableListStreams
Permits an IAM Principal to list streams attached to current dynamodb table.- Specified by:
grantTableListStreams
in interfaceITable
- Specified by:
grantTableListStreams
in interfaceITable.Jsii$Default
- Parameters:
grantee
- The principal (no-op if undefined). This parameter is required.
-
grantWriteData
Permits an IAM principal all data write operations to this table: BatchWriteItem, PutItem, UpdateItem, DeleteItem.Appropriate grants will also be added to the customer-managed KMS key if one was configured.
- Specified by:
grantWriteData
in interfaceITable
- Specified by:
grantWriteData
in interfaceITable.Jsii$Default
- Parameters:
grantee
- The principal to grant access to. This parameter is required.
-
metric
@Stability(Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Metric for the number of Errors executing all Lambdas.- Specified by:
metric
in interfaceITable
- Specified by:
metric
in interfaceITable.Jsii$Default
- Parameters:
metricName
- This parameter is required.props
-
-
metric
Metric for the number of Errors executing all Lambdas. -
metricConditionalCheckFailedRequests
@Stability(Stable) @NotNull public final Metric metricConditionalCheckFailedRequests(@Nullable MetricOptions props) Metric for the conditional check failed requests.- Specified by:
metricConditionalCheckFailedRequests
in interfaceITable
- Specified by:
metricConditionalCheckFailedRequests
in interfaceITable.Jsii$Default
- Parameters:
props
- properties of a metric.
-
metricConditionalCheckFailedRequests
Metric for the conditional check failed requests.- Specified by:
metricConditionalCheckFailedRequests
in interfaceITable
-
metricConsumedReadCapacityUnits
@Stability(Stable) @NotNull public final Metric metricConsumedReadCapacityUnits(@Nullable MetricOptions props) Metric for the consumed read capacity units.- Specified by:
metricConsumedReadCapacityUnits
in interfaceITable
- Specified by:
metricConsumedReadCapacityUnits
in interfaceITable.Jsii$Default
- Parameters:
props
- properties of a metric.
-
metricConsumedReadCapacityUnits
Metric for the consumed read capacity units.- Specified by:
metricConsumedReadCapacityUnits
in interfaceITable
-
metricConsumedWriteCapacityUnits
@Stability(Stable) @NotNull public final Metric metricConsumedWriteCapacityUnits(@Nullable MetricOptions props) Metric for the consumed write capacity units.- Specified by:
metricConsumedWriteCapacityUnits
in interfaceITable
- Specified by:
metricConsumedWriteCapacityUnits
in interfaceITable.Jsii$Default
- Parameters:
props
- properties of a metric.
-
metricConsumedWriteCapacityUnits
Metric for the consumed write capacity units.- Specified by:
metricConsumedWriteCapacityUnits
in interfaceITable
-
metricSuccessfulRequestLatency
@Stability(Stable) @NotNull public final Metric metricSuccessfulRequestLatency(@Nullable MetricOptions props) Metric for the successful request latency.- Specified by:
metricSuccessfulRequestLatency
in interfaceITable
- Specified by:
metricSuccessfulRequestLatency
in interfaceITable.Jsii$Default
- Parameters:
props
- properties of a metric.
-
metricSuccessfulRequestLatency
Metric for the successful request latency.- Specified by:
metricSuccessfulRequestLatency
in interfaceITable
-
metricSystemErrorsForOperations
@Stability(Stable) @NotNull public final IMetric metricSystemErrorsForOperations(@Nullable SystemErrorsForOperationsMetricOptions props) Metric for the system errors this table.- Specified by:
metricSystemErrorsForOperations
in interfaceITable
- Specified by:
metricSystemErrorsForOperations
in interfaceITable.Jsii$Default
- Parameters:
props
- properties of a metric.
-
metricSystemErrorsForOperations
Metric for the system errors this table.- Specified by:
metricSystemErrorsForOperations
in interfaceITable
-
metricThrottledRequests
@Stability(Deprecated) @Deprecated @NotNull public final Metric metricThrottledRequests(@Nullable MetricOptions props) Deprecated.usemetricThrottledRequestsForOperations
(deprecated) Metric for throttled requests.- Specified by:
metricThrottledRequests
in interfaceITable
- Specified by:
metricThrottledRequests
in interfaceITable.Jsii$Default
- Parameters:
props
- properties of a metric.
-
metricThrottledRequests
Deprecated.usemetricThrottledRequestsForOperations
(deprecated) Metric for throttled requests.- Specified by:
metricThrottledRequests
in interfaceITable
-
metricThrottledRequestsForOperations
@Stability(Stable) @NotNull public final IMetric metricThrottledRequestsForOperations(@Nullable OperationsMetricOptions props) Metric for throttled requests.- Specified by:
metricThrottledRequestsForOperations
in interfaceITable
- Specified by:
metricThrottledRequestsForOperations
in interfaceITable.Jsii$Default
- Parameters:
props
- properties of a metric.
-
metricThrottledRequestsForOperations
Metric for throttled requests.- Specified by:
metricThrottledRequestsForOperations
in interfaceITable
-
metricUserErrors
Metric for the user errors.- Specified by:
metricUserErrors
in interfaceITable
- Specified by:
metricUserErrors
in interfaceITable.Jsii$Default
- Parameters:
props
- properties of a metric.
-
metricUserErrors
Metric for the user errors.- Specified by:
metricUserErrors
in interfaceITable
-
metricThrottledRequestsForOperations