@Generated(value="jsii-pacmak/0.11.3 (build 464b8c6)", date="2019-06-19T15:09:58.083Z") @Stability(value=Experimental) public class Table extends software.amazon.awscdk.Resource
| Modifier | Constructor and Description |
|---|---|
|
Table(software.amazon.awscdk.Construct scope,
String id,
TableProps props)
EXPERIMENTAL
|
protected |
Table(software.amazon.jsii.JsiiObject.InitializationMode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalSecondaryIndex(GlobalSecondaryIndexProps props)
Add a global secondary index of table.
|
void |
addLocalSecondaryIndex(LocalSecondaryIndexProps props)
Add a local secondary index of table.
|
IScalableTableAttribute |
autoScaleGlobalSecondaryIndexReadCapacity(String indexName,
EnableScalingProps props)
Enable read capacity scaling for the given GSI.
|
IScalableTableAttribute |
autoScaleGlobalSecondaryIndexWriteCapacity(String indexName,
EnableScalingProps props)
Enable write capacity scaling for the given GSI.
|
IScalableTableAttribute |
autoScaleReadCapacity(EnableScalingProps props)
Enable read capacity scaling for this table.
|
IScalableTableAttribute |
autoScaleWriteCapacity(EnableScalingProps props)
Enable write capacity scaling for this table.
|
String |
getTableArn()
EXPERIMENTAL
|
String |
getTableName()
EXPERIMENTAL
|
String |
getTableStreamArn()
EXPERIMENTAL
|
software.amazon.awscdk.services.iam.Grant |
grant(software.amazon.awscdk.services.iam.IGrantable grantee,
String... actions)
Adds an IAM policy statement associated with this table to an IAM principal's policy.
|
software.amazon.awscdk.services.iam.Grant |
grantFullAccess(software.amazon.awscdk.services.iam.IGrantable grantee)
Permits all DynamoDB operations ("dynamodb:*") to an IAM principal.
|
static software.amazon.awscdk.services.iam.Grant |
grantListStreams(software.amazon.awscdk.services.iam.IGrantable grantee)
Permits an IAM Principal to list all DynamoDB Streams.
|
software.amazon.awscdk.services.iam.Grant |
grantReadData(software.amazon.awscdk.services.iam.IGrantable grantee)
Permits an IAM principal all data read operations from this table: BatchGetItem, GetRecords, GetShardIterator, Query, GetItem, Scan.
|
software.amazon.awscdk.services.iam.Grant |
grantReadWriteData(software.amazon.awscdk.services.iam.IGrantable grantee)
Permits an IAM principal to all data read/write operations to this table.
|
software.amazon.awscdk.services.iam.Grant |
grantStream(software.amazon.awscdk.services.iam.IGrantable grantee,
String... actions)
Adds an IAM policy statement associated with this table's stream to an IAM principal's policy.
|
software.amazon.awscdk.services.iam.Grant |
grantStreamRead(software.amazon.awscdk.services.iam.IGrantable grantee)
Permis an IAM principal all stream data read operations for this table's stream: DescribeStream, GetRecords, GetShardIterator, ListStreams.
|
software.amazon.awscdk.services.iam.Grant |
grantWriteData(software.amazon.awscdk.services.iam.IGrantable grantee)
Permits an IAM principal all data write operations to this table: BatchWriteItem, PutItem, UpdateItem, DeleteItem.
|
protected List<String> |
validate()
Validate the table construct.
|
getNode, isConstruct, prepare, synthesize, toStringjsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetprotected Table(software.amazon.jsii.JsiiObject.InitializationMode mode)
@Stability(value=Experimental)
public Table(software.amazon.awscdk.Construct scope,
String id,
TableProps props)
@Stability(value=Experimental) public static software.amazon.awscdk.services.iam.Grant grantListStreams(software.amazon.awscdk.services.iam.IGrantable grantee)
grantee - The principal (no-op if undefined).@Stability(value=Experimental) public void addGlobalSecondaryIndex(GlobalSecondaryIndexProps props)
props - the property of global secondary index.@Stability(value=Experimental) public void addLocalSecondaryIndex(LocalSecondaryIndexProps props)
props - the property of local secondary index.@Stability(value=Experimental) public IScalableTableAttribute autoScaleGlobalSecondaryIndexReadCapacity(String indexName, EnableScalingProps props)
@Stability(value=Experimental) public IScalableTableAttribute autoScaleGlobalSecondaryIndexWriteCapacity(String indexName, EnableScalingProps props)
@Stability(value=Experimental) public IScalableTableAttribute autoScaleReadCapacity(EnableScalingProps props)
@Stability(value=Experimental) public IScalableTableAttribute autoScaleWriteCapacity(EnableScalingProps props)
@Stability(value=Experimental)
public software.amazon.awscdk.services.iam.Grant grant(software.amazon.awscdk.services.iam.IGrantable grantee,
String... actions)
grantee - The principal (no-op if undefined).actions - The set of actions to allow (i.e. "dynamodb:PutItem", "dynamodb:GetItem", ...).@Stability(value=Experimental) public software.amazon.awscdk.services.iam.Grant grantFullAccess(software.amazon.awscdk.services.iam.IGrantable grantee)
grantee - The principal to grant access to.@Stability(value=Experimental) public software.amazon.awscdk.services.iam.Grant grantReadData(software.amazon.awscdk.services.iam.IGrantable grantee)
grantee - The principal to grant access to.@Stability(value=Experimental) public software.amazon.awscdk.services.iam.Grant grantReadWriteData(software.amazon.awscdk.services.iam.IGrantable grantee)
grantee - The principal to grant access to.@Stability(value=Experimental)
public software.amazon.awscdk.services.iam.Grant grantStream(software.amazon.awscdk.services.iam.IGrantable grantee,
String... actions)
grantee - The principal (no-op if undefined).actions - The set of actions to allow (i.e. "dynamodb:DescribeStream", "dynamodb:GetRecords", ...).@Stability(value=Experimental) public software.amazon.awscdk.services.iam.Grant grantStreamRead(software.amazon.awscdk.services.iam.IGrantable grantee)
grantee - The principal to grant access to.@Stability(value=Experimental) public software.amazon.awscdk.services.iam.Grant grantWriteData(software.amazon.awscdk.services.iam.IGrantable grantee)
grantee - The principal to grant access to.@Stability(value=Experimental) protected List<String> validate()
validate in class software.amazon.awscdk.Construct@Stability(value=Experimental) public String getTableArn()
@Stability(value=Experimental) public String getTableName()
@Stability(value=Experimental) public String getTableStreamArn()
Copyright © 2019. All rights reserved.