CfnSimpleTablePropsMixin
- class aws_cdk.mixins_preview.aws_sam.mixins.CfnSimpleTablePropsMixin(props, *, strategy=None)
Bases:
Mixin- See:
- CloudformationResource:
AWS::Serverless::SimpleTable
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_sam import mixins as sam_mixins cfn_simple_table_props_mixin = sam_mixins.CfnSimpleTablePropsMixin(sam_mixins.CfnSimpleTableMixinProps( primary_key=sam_mixins.CfnSimpleTablePropsMixin.PrimaryKeyProperty( name="name", type="type" ), provisioned_throughput=sam_mixins.CfnSimpleTablePropsMixin.ProvisionedThroughputProperty( read_capacity_units=123, write_capacity_units=123 ), sse_specification=sam_mixins.CfnSimpleTablePropsMixin.SSESpecificationProperty( sse_enabled=False ), table_name="tableName", tags={ "tags_key": "tags" } ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Serverless::SimpleTable.- Parameters:
props (
Union[CfnSimpleTableMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['primaryKey', 'provisionedThroughput', 'sseSpecification', 'tableName', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
PrimaryKeyProperty
- class CfnSimpleTablePropsMixin.PrimaryKeyProperty(*, name=None, type=None)
Bases:
object- Parameters:
name (
Optional[str])type (
Optional[str])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_sam import mixins as sam_mixins primary_key_property = sam_mixins.CfnSimpleTablePropsMixin.PrimaryKeyProperty( name="name", type="type" )
Attributes
- name
-
- Type:
see
ProvisionedThroughputProperty
- class CfnSimpleTablePropsMixin.ProvisionedThroughputProperty(*, read_capacity_units=None, write_capacity_units=None)
Bases:
object- Parameters:
read_capacity_units (
Union[int,float,None])write_capacity_units (
Union[int,float,None])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_sam import mixins as sam_mixins provisioned_throughput_property = sam_mixins.CfnSimpleTablePropsMixin.ProvisionedThroughputProperty( read_capacity_units=123, write_capacity_units=123 )
Attributes
- read_capacity_units
-
- Type:
see
SSESpecificationProperty
- class CfnSimpleTablePropsMixin.SSESpecificationProperty(*, sse_enabled=None)
Bases:
object- Parameters:
sse_enabled (
Union[bool,IResolvable,None])- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_sam import mixins as sam_mixins s_sESpecification_property = sam_mixins.CfnSimpleTablePropsMixin.SSESpecificationProperty( sse_enabled=False )
Attributes