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 CfnSimpleTable.

Parameters:
  • primary_key (Union[IResolvable, PrimaryKeyProperty, Dict[str, Any], None]) – AWS::Serverless::SimpleTable.PrimaryKey.

  • provisioned_throughput (Union[IResolvable, ProvisionedThroughputProperty, Dict[str, Any], None]) – AWS::Serverless::SimpleTable.ProvisionedThroughput.

  • sse_specification (Union[IResolvable, SSESpecificationProperty, Dict[str, Any], None]) – AWS::Serverless::SimpleTable.SSESpecification.

  • table_name (Optional[str]) – AWS::Serverless::SimpleTable.TableName.

  • tags (Optional[Mapping[str, str]]) – AWS::Serverless::SimpleTable.Tags.

Link:

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

ExampleMetadata:

fixture=_generated

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

provisioned_throughput

AWS::Serverless::SimpleTable.ProvisionedThroughput.

Link:

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

sse_specification

AWS::Serverless::SimpleTable.SSESpecification.

Link:

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

table_name

AWS::Serverless::SimpleTable.TableName.

Link:

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

tags

AWS::Serverless::SimpleTable.Tags.

Link:

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