Skip to content
v2.278.0

CfnSimpleTableProps Struct ​

Properties for defining a CfnSimpleTable.

Example ​

ts
// 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',
  },
};
python
# 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"
    }
)
java
// 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();
csharp
// 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" }
    }
};
go
// 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"),
	},
}

Properties ​

primaryKeyoptionalIResolvable | CfnSimpleTable.PrimaryKeyPropertyprimary_keyoptionaltyping.Union[IResolvable, PrimaryKeyProperty]primaryKeyoptionalIResolvablePrimaryKeyoptionalIResolvablePrimaryKeyoptionalinterface{} #
provisionedThroughputoptionalIResolvable | CfnSimpleTable.ProvisionedThroughputPropertyprovisioned_throughputoptionaltyping.Union[IResolvable, ProvisionedThroughputProperty]provisionedThroughputoptionalIResolvableProvisionedThroughputoptionalIResolvableProvisionedThroughputoptionalinterface{} #
sseSpecificationoptionalIResolvable | CfnSimpleTable.SSESpecificationPropertysse_specificationoptionaltyping.Union[IResolvable, SSESpecificationProperty]sseSpecificationoptionalIResolvableSseSpecificationoptionalIResolvableSseSpecificationoptionalinterface{} #
tableNameoptionalstringtable_nameoptionalstrtableNameoptionalStringTableNameoptionalstringTableNameoptional*string #
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #