@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:16.841Z") @Stability(value=Stable) public class CfnGlobalTable extends CfnResource implements IInspectable
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.*;
CfnGlobalTable cfnGlobalTable = CfnGlobalTable.Builder.create(this, "MyCfnGlobalTable")
.attributeDefinitions(List.of(AttributeDefinitionProperty.builder()
.attributeName("attributeName")
.attributeType("attributeType")
.build()))
.keySchema(List.of(KeySchemaProperty.builder()
.attributeName("attributeName")
.keyType("keyType")
.build()))
.replicas(List.of(ReplicaSpecificationProperty.builder()
.region("region")
// the properties below are optional
.contributorInsightsSpecification(ContributorInsightsSpecificationProperty.builder()
.enabled(false)
.build())
.globalSecondaryIndexes(List.of(ReplicaGlobalSecondaryIndexSpecificationProperty.builder()
.indexName("indexName")
// the properties below are optional
.contributorInsightsSpecification(ContributorInsightsSpecificationProperty.builder()
.enabled(false)
.build())
.readProvisionedThroughputSettings(ReadProvisionedThroughputSettingsProperty.builder()
.readCapacityAutoScalingSettings(CapacityAutoScalingSettingsProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build())
// the properties below are optional
.seedCapacity(123)
.build())
.readCapacityUnits(123)
.build())
.build()))
.pointInTimeRecoverySpecification(PointInTimeRecoverySpecificationProperty.builder()
.pointInTimeRecoveryEnabled(false)
.build())
.readProvisionedThroughputSettings(ReadProvisionedThroughputSettingsProperty.builder()
.readCapacityAutoScalingSettings(CapacityAutoScalingSettingsProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build())
// the properties below are optional
.seedCapacity(123)
.build())
.readCapacityUnits(123)
.build())
.sseSpecification(ReplicaSSESpecificationProperty.builder()
.kmsMasterKeyId("kmsMasterKeyId")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
// the properties below are optional
.billingMode("billingMode")
.globalSecondaryIndexes(List.of(GlobalSecondaryIndexProperty.builder()
.indexName("indexName")
.keySchema(List.of(KeySchemaProperty.builder()
.attributeName("attributeName")
.keyType("keyType")
.build()))
.projection(ProjectionProperty.builder()
.nonKeyAttributes(List.of("nonKeyAttributes"))
.projectionType("projectionType")
.build())
// the properties below are optional
.writeProvisionedThroughputSettings(WriteProvisionedThroughputSettingsProperty.builder()
.writeCapacityAutoScalingSettings(CapacityAutoScalingSettingsProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build())
// the properties below are optional
.seedCapacity(123)
.build())
.build())
.build()))
.localSecondaryIndexes(List.of(LocalSecondaryIndexProperty.builder()
.indexName("indexName")
.keySchema(List.of(KeySchemaProperty.builder()
.attributeName("attributeName")
.keyType("keyType")
.build()))
.projection(ProjectionProperty.builder()
.nonKeyAttributes(List.of("nonKeyAttributes"))
.projectionType("projectionType")
.build())
.build()))
.sseSpecification(SSESpecificationProperty.builder()
.sseEnabled(false)
// the properties below are optional
.sseType("sseType")
.build())
.streamSpecification(StreamSpecificationProperty.builder()
.streamViewType("streamViewType")
.build())
.tableName("tableName")
.timeToLiveSpecification(TimeToLiveSpecificationProperty.builder()
.enabled(false)
// the properties below are optional
.attributeName("attributeName")
.build())
.writeProvisionedThroughputSettings(WriteProvisionedThroughputSettingsProperty.builder()
.writeCapacityAutoScalingSettings(CapacityAutoScalingSettingsProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build())
// the properties below are optional
.seedCapacity(123)
.build())
.build())
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnGlobalTable(software.constructs.Construct scope,
String id,
CfnGlobalTableProps props)
Create a new `AWS::DynamoDB::GlobalTable`.
|
protected |
CfnGlobalTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnGlobalTable(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn() |
Object |
getAttributeDefinitions()
`AWS::DynamoDB::GlobalTable.AttributeDefinitions`.
|
String |
getAttrStreamArn() |
String |
getAttrTableId() |
String |
getBillingMode()
`AWS::DynamoDB::GlobalTable.BillingMode`.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getGlobalSecondaryIndexes()
`AWS::DynamoDB::GlobalTable.GlobalSecondaryIndexes`.
|
Object |
getKeySchema()
`AWS::DynamoDB::GlobalTable.KeySchema`.
|
Object |
getLocalSecondaryIndexes()
`AWS::DynamoDB::GlobalTable.LocalSecondaryIndexes`.
|
Object |
getReplicas()
`AWS::DynamoDB::GlobalTable.Replicas`.
|
Object |
getSseSpecification()
`AWS::DynamoDB::GlobalTable.SSESpecification`.
|
Object |
getStreamSpecification()
`AWS::DynamoDB::GlobalTable.StreamSpecification`.
|
String |
getTableName()
`AWS::DynamoDB::GlobalTable.TableName`.
|
Object |
getTimeToLiveSpecification()
`AWS::DynamoDB::GlobalTable.TimeToLiveSpecification`.
|
Object |
getWriteProvisionedThroughputSettings()
`AWS::DynamoDB::GlobalTable.WriteProvisionedThroughputSettings`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAttributeDefinitions(IResolvable value)
`AWS::DynamoDB::GlobalTable.AttributeDefinitions`.
|
void |
setAttributeDefinitions(List<Object> value)
`AWS::DynamoDB::GlobalTable.AttributeDefinitions`.
|
void |
setBillingMode(String value)
`AWS::DynamoDB::GlobalTable.BillingMode`.
|
void |
setGlobalSecondaryIndexes(IResolvable value)
`AWS::DynamoDB::GlobalTable.GlobalSecondaryIndexes`.
|
void |
setGlobalSecondaryIndexes(List<Object> value)
`AWS::DynamoDB::GlobalTable.GlobalSecondaryIndexes`.
|
void |
setKeySchema(IResolvable value)
`AWS::DynamoDB::GlobalTable.KeySchema`.
|
void |
setKeySchema(List<Object> value)
`AWS::DynamoDB::GlobalTable.KeySchema`.
|
void |
setLocalSecondaryIndexes(IResolvable value)
`AWS::DynamoDB::GlobalTable.LocalSecondaryIndexes`.
|
void |
setLocalSecondaryIndexes(List<Object> value)
`AWS::DynamoDB::GlobalTable.LocalSecondaryIndexes`.
|
void |
setReplicas(IResolvable value)
`AWS::DynamoDB::GlobalTable.Replicas`.
|
void |
setReplicas(List<Object> value)
`AWS::DynamoDB::GlobalTable.Replicas`.
|
void |
setSseSpecification(CfnGlobalTable.SSESpecificationProperty value)
`AWS::DynamoDB::GlobalTable.SSESpecification`.
|
void |
setSseSpecification(IResolvable value)
`AWS::DynamoDB::GlobalTable.SSESpecification`.
|
void |
setStreamSpecification(CfnGlobalTable.StreamSpecificationProperty value)
`AWS::DynamoDB::GlobalTable.StreamSpecification`.
|
void |
setStreamSpecification(IResolvable value)
`AWS::DynamoDB::GlobalTable.StreamSpecification`.
|
void |
setTableName(String value)
`AWS::DynamoDB::GlobalTable.TableName`.
|
void |
setTimeToLiveSpecification(CfnGlobalTable.TimeToLiveSpecificationProperty value)
`AWS::DynamoDB::GlobalTable.TimeToLiveSpecification`.
|
void |
setTimeToLiveSpecification(IResolvable value)
`AWS::DynamoDB::GlobalTable.TimeToLiveSpecification`.
|
void |
setWriteProvisionedThroughputSettings(CfnGlobalTable.WriteProvisionedThroughputSettingsProperty value)
`AWS::DynamoDB::GlobalTable.WriteProvisionedThroughputSettings`.
|
void |
setWriteProvisionedThroughputSettings(IResolvable value)
`AWS::DynamoDB::GlobalTable.WriteProvisionedThroughputSettings`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnGlobalTable(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGlobalTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnGlobalTable(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnGlobalTableProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public Object getAttributeDefinitions()
@Stability(value=Stable)
public void setAttributeDefinitions(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setAttributeDefinitions(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public String getAttrStreamArn()
@Stability(value=Stable) @NotNull public String getAttrTableId()
@Stability(value=Stable) @Nullable public String getBillingMode()
@Stability(value=Stable)
public void setBillingMode(@Nullable
String value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getGlobalSecondaryIndexes()
@Stability(value=Stable)
public void setGlobalSecondaryIndexes(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setGlobalSecondaryIndexes(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public Object getKeySchema()
@Stability(value=Stable)
public void setKeySchema(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setKeySchema(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public Object getLocalSecondaryIndexes()
@Stability(value=Stable)
public void setLocalSecondaryIndexes(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setLocalSecondaryIndexes(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public Object getReplicas()
@Stability(value=Stable)
public void setReplicas(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setReplicas(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public Object getSseSpecification()
@Stability(value=Stable)
public void setSseSpecification(@Nullable
CfnGlobalTable.SSESpecificationProperty value)
@Stability(value=Stable)
public void setSseSpecification(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getStreamSpecification()
@Stability(value=Stable)
public void setStreamSpecification(@Nullable
CfnGlobalTable.StreamSpecificationProperty value)
@Stability(value=Stable)
public void setStreamSpecification(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getTableName()
@Stability(value=Stable)
public void setTableName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getTimeToLiveSpecification()
@Stability(value=Stable)
public void setTimeToLiveSpecification(@Nullable
CfnGlobalTable.TimeToLiveSpecificationProperty value)
@Stability(value=Stable)
public void setTimeToLiveSpecification(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getWriteProvisionedThroughputSettings()
@Stability(value=Stable)
public void setWriteProvisionedThroughputSettings(@Nullable
CfnGlobalTable.WriteProvisionedThroughputSettingsProperty value)
@Stability(value=Stable)
public void setWriteProvisionedThroughputSettings(@Nullable
IResolvable value)
Copyright © 2021. All rights reserved.