@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:40.098Z") public class CfnSimpleTable 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.sam.*; CfnSimpleTable cfnSimpleTable = CfnSimpleTable.Builder.create(this, "MyCfnSimpleTable") .primaryKey(PrimaryKeyProperty.builder() .type("type") // the properties below are optional .name("name") .build()) .provisionedThroughput(ProvisionedThroughputProperty.builder() .writeCapacityUnits(123) // the properties below are optional .readCapacityUnits(123) .build()) .sseSpecification(SSESpecificationProperty.builder() .sseEnabled(false) .build()) .tableName("tableName") .tags(Map.of( "tagsKey", "tags")) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnSimpleTable.Builder
A fluent builder for
CfnSimpleTable . |
static interface |
CfnSimpleTable.PrimaryKeyProperty
Example:
|
static interface |
CfnSimpleTable.ProvisionedThroughputProperty
Example:
|
static interface |
CfnSimpleTable.SSESpecificationProperty
Example:
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
static java.lang.String |
REQUIRED_TRANSFORM
The `Transform` a template must use in order to use this resource.
|
Modifier | Constructor and Description |
---|---|
|
CfnSimpleTable(Construct scope,
java.lang.String id)
Create a new `AWS::Serverless::SimpleTable`.
|
|
CfnSimpleTable(Construct scope,
java.lang.String id,
CfnSimpleTableProps props)
Create a new `AWS::Serverless::SimpleTable`.
|
protected |
CfnSimpleTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSimpleTable(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getPrimaryKey()
`AWS::Serverless::SimpleTable.PrimaryKey`.
|
java.lang.Object |
getProvisionedThroughput()
`AWS::Serverless::SimpleTable.ProvisionedThroughput`.
|
java.lang.Object |
getSseSpecification()
`AWS::Serverless::SimpleTable.SSESpecification`.
|
java.lang.String |
getTableName()
`AWS::Serverless::SimpleTable.TableName`.
|
TagManager |
getTags()
`AWS::Serverless::SimpleTable.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setPrimaryKey(CfnSimpleTable.PrimaryKeyProperty value)
`AWS::Serverless::SimpleTable.PrimaryKey`.
|
void |
setPrimaryKey(IResolvable value)
`AWS::Serverless::SimpleTable.PrimaryKey`.
|
void |
setProvisionedThroughput(CfnSimpleTable.ProvisionedThroughputProperty value)
`AWS::Serverless::SimpleTable.ProvisionedThroughput`.
|
void |
setProvisionedThroughput(IResolvable value)
`AWS::Serverless::SimpleTable.ProvisionedThroughput`.
|
void |
setSseSpecification(CfnSimpleTable.SSESpecificationProperty value)
`AWS::Serverless::SimpleTable.SSESpecification`.
|
void |
setSseSpecification(IResolvable value)
`AWS::Serverless::SimpleTable.SSESpecification`.
|
void |
setTableName(java.lang.String value)
`AWS::Serverless::SimpleTable.TableName`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
public static final java.lang.String REQUIRED_TRANSFORM
protected CfnSimpleTable(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSimpleTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnSimpleTable(Construct scope, java.lang.String id, CfnSimpleTableProps 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.public CfnSimpleTable(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.Object getPrimaryKey()
public void setPrimaryKey(IResolvable value)
public void setPrimaryKey(CfnSimpleTable.PrimaryKeyProperty value)
public java.lang.Object getProvisionedThroughput()
public void setProvisionedThroughput(IResolvable value)
public void setProvisionedThroughput(CfnSimpleTable.ProvisionedThroughputProperty value)
public java.lang.Object getSseSpecification()
public void setSseSpecification(IResolvable value)
public void setSseSpecification(CfnSimpleTable.SSESpecificationProperty value)
public java.lang.String getTableName()
public void setTableName(java.lang.String value)