TablePolicyProps
- class aws_cdk.aws_s3tables_alpha.TablePolicyProps(*, table, removal_policy=None, resource_policy=None)
Bases:
object
(experimental) Parameters for constructing a TablePolicy.
- Parameters:
table (
ITable
) – (experimental) The associated table.removal_policy (
Optional
[RemovalPolicy
]) – (experimental) Policy to apply when the policy is removed from this stack. Default: - RemovalPolicy.DESTROY.resource_policy (
Optional
[PolicyDocument
]) – (experimental) The policy document for the table’s resource policy. Default: undefined An empty iam.PolicyDocument will be initialized
- Stability:
experimental
- 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_s3tables_alpha as s3tables_alpha import aws_cdk as cdk from aws_cdk import aws_iam as iam # policy_document: iam.PolicyDocument # table: s3tables_alpha.Table table_policy_props = s3tables_alpha.TablePolicyProps( table=table, # the properties below are optional removal_policy=cdk.RemovalPolicy.DESTROY, resource_policy=policy_document )
Attributes
- removal_policy
(experimental) Policy to apply when the policy is removed from this stack.
- Default:
RemovalPolicy.DESTROY.
- Stability:
experimental
- resource_policy
(experimental) The policy document for the table’s resource policy.
- Default:
undefined An empty iam.PolicyDocument will be initialized
- Stability:
experimental
- table
(experimental) The associated table.
- Stability:
experimental