CfnSimpleTableProps

class aws_cdk.aws_sam.CfnSimpleTableProps(*, primary_key=None, provisioned_throughput=None, sse_specification=None, table_name=None, tags=None)

Bases: object

Properties for defining a AWS::Serverless::SimpleTable.

Parameters
Link

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlesssimpletable

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.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"
    }
)

Attributes

primary_key

AWS::Serverless::SimpleTable.PrimaryKey.

Link

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#primary-key-object

Return type

Union[IResolvable, PrimaryKeyProperty, None]

provisioned_throughput

AWS::Serverless::SimpleTable.ProvisionedThroughput.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html

Return type

Union[IResolvable, ProvisionedThroughputProperty, None]

sse_specification

AWS::Serverless::SimpleTable.SSESpecification.

Link

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlesssimpletable

Return type

Union[IResolvable, SSESpecificationProperty, None]

table_name

AWS::Serverless::SimpleTable.TableName.

Link

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlesssimpletable

Return type

Optional[str]

tags

AWS::Serverless::SimpleTable.Tags.

Link

https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlesssimpletable

Return type

Optional[Mapping[str, str]]