@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.474Z") @Stability(value=Experimental) public class Table extends Resource implements ITable
| Modifier and Type | Class and Description |
|---|---|
static class |
Table.Builder
(experimental) A fluent builder for
Table. |
software.amazon.jsii.JsiiObject.InitializationModeITable.Jsii$Default, ITable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Table(software.constructs.Construct scope,
String id,
TableProps props) |
protected |
Table(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Table(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalSecondaryIndex(GlobalSecondaryIndexProps props)
(experimental) Add a global secondary index of table.
|
void |
addLocalSecondaryIndex(LocalSecondaryIndexProps props)
(experimental) Add a local secondary index of table.
|
IScalableTableAttribute |
autoScaleGlobalSecondaryIndexReadCapacity(String indexName,
EnableScalingProps props)
(experimental) Enable read capacity scaling for the given GSI.
|
IScalableTableAttribute |
autoScaleGlobalSecondaryIndexWriteCapacity(String indexName,
EnableScalingProps props)
(experimental) Enable write capacity scaling for the given GSI.
|
IScalableTableAttribute |
autoScaleReadCapacity(EnableScalingProps props)
(experimental) Enable read capacity scaling for this table.
|
IScalableTableAttribute |
autoScaleWriteCapacity(EnableScalingProps props)
(experimental) Enable write capacity scaling for this table.
|
static ITable |
fromTableArn(software.constructs.Construct scope,
String id,
String tableArn)
(experimental) Creates a Table construct that represents an external table via table arn.
|
static ITable |
fromTableAttributes(software.constructs.Construct scope,
String id,
TableAttributes attrs)
(experimental) Creates a Table construct that represents an external table.
|
static ITable |
fromTableName(software.constructs.Construct scope,
String id,
String tableName)
(experimental) Creates a Table construct that represents an external table via table name.
|
IKey |
getEncryptionKey()
(experimental) KMS encryption key, if this table uses a customer-managed encryption key.
|
protected Boolean |
getHasIndex()
(experimental) Whether this table has indexes.
|
protected List<String> |
getRegionalArns() |
String |
getTableArn()
(experimental) Arn of the dynamodb table.
|
String |
getTableName()
(experimental) Table name of the dynamodb table.
|
String |
getTableStreamArn()
(experimental) ARN of the table's stream, if there is one.
|
Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Adds an IAM policy statement associated with this table to an IAM principal's policy.
|
Grant |
grantFullAccess(IGrantable grantee)
(experimental) Permits all DynamoDB operations ("dynamodb:*") to an IAM principal.
|
Grant |
grantReadData(IGrantable grantee)
(experimental) Permits an IAM principal all data read operations from this table: BatchGetItem, GetRecords, GetShardIterator, Query, GetItem, Scan.
|
Grant |
grantReadWriteData(IGrantable grantee)
(experimental) Permits an IAM principal to all data read/write operations to this table.
|
Grant |
grantStream(IGrantable grantee,
String... actions)
(experimental) Adds an IAM policy statement associated with this table's stream to an IAM principal's policy.
|
Grant |
grantStreamRead(IGrantable grantee)
(experimental) Permits an IAM principal all stream data read operations for this table's stream: DescribeStream, GetRecords, GetShardIterator, ListStreams.
|
Grant |
grantTableListStreams(IGrantable grantee)
(experimental) Permits an IAM Principal to list streams attached to current dynamodb table.
|
Grant |
grantWriteData(IGrantable grantee)
(experimental) Permits an IAM principal all data write operations to this table: BatchWriteItem, PutItem, UpdateItem, DeleteItem.
|
Metric |
metric(String metricName)
(experimental) Return the given named metric for this Table.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this Table.
|
Metric |
metricConditionalCheckFailedRequests()
(experimental) Metric for the conditional check failed requests this table.
|
Metric |
metricConditionalCheckFailedRequests(MetricOptions props)
(experimental) Metric for the conditional check failed requests this table.
|
Metric |
metricConsumedReadCapacityUnits()
(experimental) Metric for the consumed read capacity units this table.
|
Metric |
metricConsumedReadCapacityUnits(MetricOptions props)
(experimental) Metric for the consumed read capacity units this table.
|
Metric |
metricConsumedWriteCapacityUnits()
(experimental) Metric for the consumed write capacity units this table.
|
Metric |
metricConsumedWriteCapacityUnits(MetricOptions props)
(experimental) Metric for the consumed write capacity units this table.
|
Metric |
metricSuccessfulRequestLatency()
(experimental) Metric for the successful request latency this table.
|
Metric |
metricSuccessfulRequestLatency(MetricOptions props)
(experimental) Metric for the successful request latency this table.
|
IMetric |
metricSystemErrorsForOperations()
(experimental) Metric for the system errors this table.
|
IMetric |
metricSystemErrorsForOperations(SystemErrorsForOperationsMetricOptions props)
(experimental) Metric for the system errors this table.
|
Metric |
metricThrottledRequests()
(experimental) How many requests are throttled on this table.
|
Metric |
metricThrottledRequests(MetricOptions props)
(experimental) How many requests are throttled on this table.
|
Metric |
metricUserErrors()
(experimental) Metric for the user errors.
|
Metric |
metricUserErrors(MetricOptions props)
(experimental) Metric for the user errors.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Table(software.amazon.jsii.JsiiObjectRef objRef)
protected Table(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Table(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
TableProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static ITable fromTableArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String tableArn)
scope - The parent creating construct (usually `this`). This parameter is required.id - The construct's name. This parameter is required.tableArn - The table's ARN. This parameter is required.@Stability(value=Experimental) @NotNull public static ITable fromTableAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TableAttributes attrs)
scope - The parent creating construct (usually `this`). This parameter is required.id - The construct's name. This parameter is required.attrs - A `TableAttributes` object. This parameter is required.@Stability(value=Experimental) @NotNull public static ITable fromTableName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String tableName)
scope - The parent creating construct (usually `this`). This parameter is required.id - The construct's name. This parameter is required.tableName - The table's name. This parameter is required.@Stability(value=Experimental)
public void addGlobalSecondaryIndex(@NotNull
GlobalSecondaryIndexProps props)
props - the property of global secondary index. This parameter is required.@Stability(value=Experimental)
public void addLocalSecondaryIndex(@NotNull
LocalSecondaryIndexProps props)
props - the property of local secondary index. This parameter is required.@Stability(value=Experimental) @NotNull public IScalableTableAttribute autoScaleGlobalSecondaryIndexReadCapacity(@NotNull String indexName, @NotNull EnableScalingProps props)
indexName - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public IScalableTableAttribute autoScaleGlobalSecondaryIndexWriteCapacity(@NotNull String indexName, @NotNull EnableScalingProps props)
indexName - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public IScalableTableAttribute autoScaleReadCapacity(@NotNull EnableScalingProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull public IScalableTableAttribute autoScaleWriteCapacity(@NotNull EnableScalingProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
If encryptionKey is present, appropriate grants to the key needs to be added
separately using the table.encryptionKey.grant* methods.
@Stability(value=Experimental) @NotNull public Grant grantFullAccess(@NotNull IGrantable grantee)
Appropriate grants will also be added to the customer-managed KMS key if one was configured.
grantFullAccess in interface ITablegrantee - The principal to grant access to. This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantReadData(@NotNull IGrantable grantee)
Appropriate grants will also be added to the customer-managed KMS key if one was configured.
grantReadData in interface ITablegrantee - The principal to grant access to. This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantReadWriteData(@NotNull 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 ITablegrantee - The principal to grant access to. This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantStream(@NotNull IGrantable grantee, @NotNull 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 ITablegrantee - 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.@Stability(value=Experimental) @NotNull public Grant grantStreamRead(@NotNull IGrantable grantee)
Appropriate grants will also be added to the customer-managed KMS key if one was configured.
grantStreamRead in interface ITablegrantee - The principal to grant access to. This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantTableListStreams(@NotNull IGrantable grantee)
grantTableListStreams in interface ITablegrantee - The principal (no-op if undefined). This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantWriteData(@NotNull IGrantable grantee)
Appropriate grants will also be added to the customer-managed KMS key if one was configured.
grantWriteData in interface ITablegrantee - The principal to grant access to. This parameter is required.@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
@Stability(value=Experimental) @NotNull public Metric metricConditionalCheckFailedRequests(@Nullable MetricOptions props)
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricConditionalCheckFailedRequests in interface ITableprops - @Stability(value=Experimental) @NotNull public Metric metricConditionalCheckFailedRequests()
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricConditionalCheckFailedRequests in interface ITable@Stability(value=Experimental) @NotNull public Metric metricConsumedReadCapacityUnits(@Nullable MetricOptions props)
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricConsumedReadCapacityUnits in interface ITableprops - @Stability(value=Experimental) @NotNull public Metric metricConsumedReadCapacityUnits()
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricConsumedReadCapacityUnits in interface ITable@Stability(value=Experimental) @NotNull public Metric metricConsumedWriteCapacityUnits(@Nullable MetricOptions props)
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricConsumedWriteCapacityUnits in interface ITableprops - @Stability(value=Experimental) @NotNull public Metric metricConsumedWriteCapacityUnits()
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricConsumedWriteCapacityUnits in interface ITable@Stability(value=Experimental) @NotNull public Metric metricSuccessfulRequestLatency(@Nullable MetricOptions props)
By default, the metric will be calculated as an average over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricSuccessfulRequestLatency in interface ITableprops - @Stability(value=Experimental) @NotNull public Metric metricSuccessfulRequestLatency()
By default, the metric will be calculated as an average over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricSuccessfulRequestLatency in interface ITable@Stability(value=Experimental) @NotNull public IMetric metricSystemErrorsForOperations(@Nullable SystemErrorsForOperationsMetricOptions props)
This will sum errors across all possible operations.
Note that by default, each individual metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricSystemErrorsForOperations in interface ITableprops - @Stability(value=Experimental) @NotNull public IMetric metricSystemErrorsForOperations()
This will sum errors across all possible operations.
Note that by default, each individual metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricSystemErrorsForOperations in interface ITable@Stability(value=Experimental) @NotNull public Metric metricThrottledRequests(@Nullable MetricOptions props)
Default: sum over 5 minutes
metricThrottledRequests in interface ITableprops - @Stability(value=Experimental) @NotNull public Metric metricThrottledRequests()
Default: sum over 5 minutes
metricThrottledRequests in interface ITable@Stability(value=Experimental) @NotNull public Metric metricUserErrors(@Nullable MetricOptions props)
Note that this metric reports user errors across all the tables in the account and region the table resides in.
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricUserErrors in interface ITableprops - @Stability(value=Experimental) @NotNull public Metric metricUserErrors()
Note that this metric reports user errors across all the tables in the account and region the table resides in.
By default, the metric will be calculated as a sum over a period of 5 minutes.
You can customize this by using the statistic and period properties.
metricUserErrors in interface ITable@Stability(value=Experimental) @NotNull protected Boolean getHasIndex()
@Stability(value=Experimental) @NotNull public String getTableArn()
getTableArn in interface ITable@Stability(value=Experimental) @NotNull public String getTableName()
getTableName in interface ITable@Stability(value=Experimental) @Nullable public IKey getEncryptionKey()
getEncryptionKey in interface ITable@Stability(value=Experimental) @Nullable public String getTableStreamArn()
getTableStreamArn in interface ITableCopyright © 2021. All rights reserved.