primaryKeyoptionalIResolvable | CfnSimpleTable.primary_keyoptionaltyping.Union[IResolvable, PrimaryKeyProperty]primaryKeyoptionalIResolvablePrimaryKeyoptionalIResolvablePrimaryKeyoptionalinterface{} #Properties for defining a CfnSimpleTable.
| Source | Generated at build time |
|---|
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
const cfnSimpleTableProps: sam.CfnSimpleTableProps = {
primaryKey: {
type: 'type',
// the properties below are optional
name: 'name',
},
provisionedThroughput: {
writeCapacityUnits: 123,
// the properties below are optional
readCapacityUnits: 123,
},
sseSpecification: {
sseEnabled: false,
},
tableName: 'tableName',
tags: {
tagsKey: 'tags',
},
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sam as sam
cfn_simple_table_props = sam.CfnSimpleTableProps(
primary_key=sam.CfnSimpleTable.PrimaryKeyProperty(
type="type",
# the properties below are optional
name="name"
),
provisioned_throughput=sam.CfnSimpleTable.ProvisionedThroughputProperty(
write_capacity_units=123,
# the properties below are optional
read_capacity_units=123
),
sse_specification=sam.CfnSimpleTable.SSESpecificationProperty(
sse_enabled=False
),
table_name="tableName",
tags={
"tags_key": "tags"
}
)
// 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.*;
CfnSimpleTableProps cfnSimpleTableProps = CfnSimpleTableProps.builder()
.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();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SAM;
var cfnSimpleTableProps = new CfnSimpleTableProps {
PrimaryKey = new PrimaryKeyProperty {
Type = "type",
// the properties below are optional
Name = "name"
},
ProvisionedThroughput = new ProvisionedThroughputProperty {
WriteCapacityUnits = 123,
// the properties below are optional
ReadCapacityUnits = 123
},
SseSpecification = new SSESpecificationProperty {
SseEnabled = false
},
TableName = "tableName",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSimpleTableProps := &CfnSimpleTableProps{
PrimaryKey: &PrimaryKeyProperty{
Type: jsii.String("type"),
// the properties below are optional
Name: jsii.String("name"),
},
ProvisionedThroughput: &ProvisionedThroughputProperty{
WriteCapacityUnits: jsii.Number(123),
// the properties below are optional
ReadCapacityUnits: jsii.Number(123),
},
SseSpecification: &SSESpecificationProperty{
SseEnabled: jsii.Boolean(false),
},
TableName: jsii.String("tableName"),
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
}
primaryKey?optionalIResolvable | CfnSimpleTable.primary_key?optionaltyping.Union[IResolvable, PrimaryKeyProperty]primaryKey?optionalIResolvablePrimaryKey?optionalIResolvablePrimaryKey?optionalinterface{} #provisionedThroughput?optionalIResolvable | CfnSimpleTable.provisioned_throughput?optionaltyping.Union[IResolvable, ProvisionedThroughputProperty]provisionedThroughput?optionalIResolvableProvisionedThroughput?optionalIResolvableProvisionedThroughput?optionalinterface{} #sseSpecification?optionalIResolvable | CfnSimpleTable.sse_specification?optionaltyping.Union[IResolvable, SSESpecificationProperty]sseSpecification?optionalIResolvableSseSpecification?optionalIResolvableSseSpecification?optionalinterface{} #tableName?optionalstringtable_name?optionalstrtableName?optionalStringTableName?optionalstringTableName?optional*string #tags?optional{ [key: string]: string }tags?optionaltyping.Mapping[str, str]tags?optionalMap<String, String>Tags?optionalIDictionary<string, string>Tags?optional*map[string]*string #