public static final class ITable.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ITable.Jsii$Default
ITable.Jsii$Default, ITable.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
IKey |
getEncryptionKey()
Optional KMS encryption key associated with this table.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
ConstructNode |
getNode()
The construct tree node for this construct.
|
Stack |
getStack()
The stack in which this resource is defined.
|
java.lang.String |
getTableArn()
Arn of the dynamodb table.
|
java.lang.String |
getTableName()
Table name of the dynamodb table.
|
java.lang.String |
getTableStreamArn()
ARN of the table's stream, if there is one.
|
Grant |
grant(IGrantable grantee,
java.lang.String... actions)
Adds an IAM policy statement associated with this table to an IAM principal's policy.
|
Grant |
grantFullAccess(IGrantable grantee)
Permits all DynamoDB operations ("dynamodb:*") to an IAM principal.
|
Grant |
grantReadData(IGrantable grantee)
Permits an IAM principal all data read operations from this table: BatchGetItem, GetRecords, GetShardIterator, Query, GetItem, Scan.
|
Grant |
grantReadWriteData(IGrantable grantee)
Permits an IAM principal to all data read/write operations to this table.
|
Grant |
grantStream(IGrantable grantee,
java.lang.String... actions)
Adds an IAM policy statement associated with this table's stream to an IAM principal's policy.
|
Grant |
grantStreamRead(IGrantable grantee)
Permits an IAM principal all stream data read operations for this table's stream: DescribeStream, GetRecords, GetShardIterator, ListStreams.
|
Grant |
grantTableListStreams(IGrantable grantee)
Permits an IAM Principal to list streams attached to current dynamodb table.
|
Grant |
grantWriteData(IGrantable grantee)
Permits an IAM principal all data write operations to this table: BatchWriteItem, PutItem, UpdateItem, DeleteItem.
|
Metric |
metric(java.lang.String metricName)
Metric for the number of Errors executing all Lambdas.
|
Metric |
metric(java.lang.String metricName,
MetricOptions props)
Metric for the number of Errors executing all Lambdas.
|
Metric |
metricConditionalCheckFailedRequests()
Metric for the conditional check failed requests.
|
Metric |
metricConditionalCheckFailedRequests(MetricOptions props)
Metric for the conditional check failed requests.
|
Metric |
metricConsumedReadCapacityUnits()
Metric for the consumed read capacity units.
|
Metric |
metricConsumedReadCapacityUnits(MetricOptions props)
Metric for the consumed read capacity units.
|
Metric |
metricConsumedWriteCapacityUnits()
Metric for the consumed write capacity units.
|
Metric |
metricConsumedWriteCapacityUnits(MetricOptions props)
Metric for the consumed write capacity units.
|
Metric |
metricSuccessfulRequestLatency()
Metric for the successful request latency.
|
Metric |
metricSuccessfulRequestLatency(MetricOptions props)
Metric for the successful request latency.
|
Metric |
metricSystemErrors()
Deprecated.
use `metricSystemErrorsForOperations`
|
Metric |
metricSystemErrors(MetricOptions props)
Deprecated.
use `metricSystemErrorsForOperations`
|
IMetric |
metricSystemErrorsForOperations()
Metric for the system errors this table.
|
IMetric |
metricSystemErrorsForOperations(SystemErrorsForOperationsMetricOptions props)
Metric for the system errors this table.
|
Metric |
metricThrottledRequests()
Metric for throttled requests.
|
Metric |
metricThrottledRequests(MetricOptions props)
Metric for throttled requests.
|
Metric |
metricUserErrors()
Metric for the user errors.
|
Metric |
metricUserErrors(MetricOptions props)
Metric for the user errors.
|
public final ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
getNode
in interface ITable.Jsii$Default
public final ResourceEnvironment getEnv()
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.
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
getEnv
in interface ITable.Jsii$Default
public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
getStack
in interface ITable.Jsii$Default
public final java.lang.String getTableArn()
getTableArn
in interface ITable
getTableArn
in interface ITable.Jsii$Default
public final java.lang.String getTableName()
getTableName
in interface ITable
getTableName
in interface ITable.Jsii$Default
public final IKey getEncryptionKey()
getEncryptionKey
in interface ITable
getEncryptionKey
in interface ITable.Jsii$Default
public final java.lang.String getTableStreamArn()
getTableStreamArn
in interface ITable
getTableStreamArn
in interface ITable.Jsii$Default
public final void applyRemovalPolicy(RemovalPolicy policy)
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
).
applyRemovalPolicy
in interface IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
applyRemovalPolicy
in interface ITable.Jsii$Default
policy
- This parameter is required.public final Grant grant(IGrantable grantee, java.lang.String... actions)
If encryptionKey
is present, appropriate grants to the key needs to be added
separately using the table.encryptionKey.grant*
methods.
grant
in interface ITable
grant
in interface ITable.Jsii$Default
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.public final Grant grantFullAccess(IGrantable grantee)
Appropriate grants will also be added to the customer-managed KMS key if one was configured.
grantFullAccess
in interface ITable
grantFullAccess
in interface ITable.Jsii$Default
grantee
- The principal to grant access to. This parameter is required.public final Grant grantReadData(IGrantable grantee)
Appropriate grants will also be added to the customer-managed KMS key if one was configured.
grantReadData
in interface ITable
grantReadData
in interface ITable.Jsii$Default
grantee
- The principal to grant access to. This parameter is required.public final Grant grantReadWriteData(IGrantable grantee)
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.
grantReadWriteData
in interface ITable
grantReadWriteData
in interface ITable.Jsii$Default
grantee
- The principal to grant access to. This parameter is required.public final Grant grantStream(IGrantable grantee, java.lang.String... actions)
If encryptionKey
is present, appropriate grants to the key needs to be added
separately using the table.encryptionKey.grant*
methods.
grantStream
in interface ITable
grantStream
in interface ITable.Jsii$Default
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.public final Grant grantStreamRead(IGrantable grantee)
Appropriate grants will also be added to the customer-managed KMS key if one was configured.
grantStreamRead
in interface ITable
grantStreamRead
in interface ITable.Jsii$Default
grantee
- The principal to grant access to. This parameter is required.public final Grant grantTableListStreams(IGrantable grantee)
grantTableListStreams
in interface ITable
grantTableListStreams
in interface ITable.Jsii$Default
grantee
- The principal (no-op if undefined). This parameter is required.public final Grant grantWriteData(IGrantable grantee)
Appropriate grants will also be added to the customer-managed KMS key if one was configured.
grantWriteData
in interface ITable
grantWriteData
in interface ITable.Jsii$Default
grantee
- The principal to grant access to. This parameter is required.public final Metric metric(java.lang.String metricName, MetricOptions props)
metric
in interface ITable
metric
in interface ITable.Jsii$Default
metricName
- This parameter is required.props
- public final Metric metric(java.lang.String metricName)
public final Metric metricConditionalCheckFailedRequests(MetricOptions props)
metricConditionalCheckFailedRequests
in interface ITable
metricConditionalCheckFailedRequests
in interface ITable.Jsii$Default
props
- properties of a metric.public final Metric metricConditionalCheckFailedRequests()
metricConditionalCheckFailedRequests
in interface ITable
public final Metric metricConsumedReadCapacityUnits(MetricOptions props)
metricConsumedReadCapacityUnits
in interface ITable
metricConsumedReadCapacityUnits
in interface ITable.Jsii$Default
props
- properties of a metric.public final Metric metricConsumedReadCapacityUnits()
metricConsumedReadCapacityUnits
in interface ITable
public final Metric metricConsumedWriteCapacityUnits(MetricOptions props)
metricConsumedWriteCapacityUnits
in interface ITable
metricConsumedWriteCapacityUnits
in interface ITable.Jsii$Default
props
- properties of a metric.public final Metric metricConsumedWriteCapacityUnits()
metricConsumedWriteCapacityUnits
in interface ITable
public final Metric metricSuccessfulRequestLatency(MetricOptions props)
metricSuccessfulRequestLatency
in interface ITable
metricSuccessfulRequestLatency
in interface ITable.Jsii$Default
props
- properties of a metric.public final Metric metricSuccessfulRequestLatency()
metricSuccessfulRequestLatency
in interface ITable
@Deprecated public final Metric metricSystemErrors(MetricOptions props)
metricSystemErrors
in interface ITable
metricSystemErrors
in interface ITable.Jsii$Default
props
- properties of a metric.@Deprecated public final Metric metricSystemErrors()
metricSystemErrors
in interface ITable
public final IMetric metricSystemErrorsForOperations(SystemErrorsForOperationsMetricOptions props)
metricSystemErrorsForOperations
in interface ITable
metricSystemErrorsForOperations
in interface ITable.Jsii$Default
props
- properties of a metric.public final IMetric metricSystemErrorsForOperations()
metricSystemErrorsForOperations
in interface ITable
public final Metric metricThrottledRequests(MetricOptions props)
metricThrottledRequests
in interface ITable
metricThrottledRequests
in interface ITable.Jsii$Default
props
- properties of a metric.public final Metric metricThrottledRequests()
metricThrottledRequests
in interface ITable
public final Metric metricUserErrors(MetricOptions props)
metricUserErrors
in interface ITable
metricUserErrors
in interface ITable.Jsii$Default
props
- properties of a metric.public final Metric metricUserErrors()
metricUserErrors
in interface ITable