CfnMultiRegionAccessPointPolicyPropsMixin
- class aws_cdk.mixins_preview.aws_s3.mixins.CfnMultiRegionAccessPointPolicyPropsMixin(props, *, strategy=None)
Bases:
MixinApplies an Amazon S3 access policy to an Amazon S3 Multi-Region Access Point.
It is not possible to delete an access policy for a Multi-Region Access Point from the CloudFormation template. When you attempt to delete the policy, CloudFormation updates the policy using
DeletionPolicy:RetainandUpdateReplacePolicy:Retain. CloudFormation updates the policy to only allow access to the account that created the bucket.- See:
- CloudformationResource:
AWS::S3::MultiRegionAccessPointPolicy
- 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_s3 import mixins as s3_mixins # policy: Any cfn_multi_region_access_point_policy_props_mixin = s3_mixins.CfnMultiRegionAccessPointPolicyPropsMixin(s3_mixins.CfnMultiRegionAccessPointPolicyMixinProps( mrap_name="mrapName", policy=policy ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::S3::MultiRegionAccessPointPolicy.- Parameters:
props (
Union[CfnMultiRegionAccessPointPolicyMixinProps,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 = ['mrapName', 'policy']
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
PolicyStatusProperty
- class CfnMultiRegionAccessPointPolicyPropsMixin.PolicyStatusProperty(*, is_public=None)
Bases:
objectThe container element for a bucket’s policy status.
- Parameters:
is_public (
Optional[str]) – The policy status for this bucket.TRUEindicates that this bucket is public.FALSEindicates that the bucket is not public.- 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_s3 import mixins as s3_mixins policy_status_property = s3_mixins.CfnMultiRegionAccessPointPolicyPropsMixin.PolicyStatusProperty( is_public="isPublic" )
Attributes
- is_public
The policy status for this bucket.
TRUEindicates that this bucket is public.FALSEindicates that the bucket is not public.