CfnMultiRegionAccessPointPropsMixin
- class aws_cdk.mixins_preview.aws_s3.mixins.CfnMultiRegionAccessPointPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::S3::MultiRegionAccessPointresource creates an Amazon S3 Multi-Region Access Point.To learn more about Multi-Region Access Points, see Multi-Region Access Points in Amazon S3 in the in the Amazon S3 User Guide .
- See:
- CloudformationResource:
AWS::S3::MultiRegionAccessPoint
- 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 cfn_multi_region_access_point_props_mixin = s3_mixins.CfnMultiRegionAccessPointPropsMixin(s3_mixins.CfnMultiRegionAccessPointMixinProps( name="name", public_access_block_configuration=s3_mixins.CfnMultiRegionAccessPointPropsMixin.PublicAccessBlockConfigurationProperty( block_public_acls=False, block_public_policy=False, ignore_public_acls=False, restrict_public_buckets=False ), regions=[s3_mixins.CfnMultiRegionAccessPointPropsMixin.RegionProperty( bucket="bucket", bucket_account_id="bucketAccountId" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::S3::MultiRegionAccessPoint.- Parameters:
props (
Union[CfnMultiRegionAccessPointMixinProps,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 = ['name', 'publicAccessBlockConfiguration', 'regions']
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
PublicAccessBlockConfigurationProperty
- class CfnMultiRegionAccessPointPropsMixin.PublicAccessBlockConfigurationProperty(*, block_public_acls=None, block_public_policy=None, ignore_public_acls=None, restrict_public_buckets=None)
Bases:
objectThe PublicAccessBlock configuration that you want to apply to this Amazon S3 Multi-Region Access Point.
You can enable the configuration options in any combination. For more information about when Amazon S3 considers an object public, see The Meaning of “Public” in the Amazon S3 User Guide .
- Parameters:
block_public_acls (
Union[bool,IResolvable,None]) – Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. Setting this element toTRUEcauses the following behavior: - PUT Bucket ACL and PUT Object ACL calls fail if the specified ACL is public. - PUT Object calls fail if the request includes a public ACL. - PUT Bucket calls fail if the request includes a public ACL. Enabling this setting doesn’t affect existing policies or ACLs.block_public_policy (
Union[bool,IResolvable,None]) – Specifies whether Amazon S3 should block public bucket policies for this bucket. Setting this element toTRUEcauses Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access. Enabling this setting doesn’t affect existing bucket policies.ignore_public_acls (
Union[bool,IResolvable,None]) – Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. Setting this element toTRUEcauses Amazon S3 to ignore all public ACLs on this bucket and objects in this bucket. Enabling this setting doesn’t affect the persistence of any existing ACLs and doesn’t prevent new public ACLs from being set.restrict_public_buckets (
Union[bool,IResolvable,None]) – Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element toTRUErestricts access to this bucket to only AWS service principals and authorized users within this account if the bucket has a public policy. Enabling this setting doesn’t affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.
- 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 public_access_block_configuration_property = s3_mixins.CfnMultiRegionAccessPointPropsMixin.PublicAccessBlockConfigurationProperty( block_public_acls=False, block_public_policy=False, ignore_public_acls=False, restrict_public_buckets=False )
Attributes
- block_public_acls
Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket.
Setting this element to
TRUEcauses the following behavior:PUT Bucket ACL and PUT Object ACL calls fail if the specified ACL is public.
PUT Object calls fail if the request includes a public ACL.
PUT Bucket calls fail if the request includes a public ACL.
Enabling this setting doesn’t affect existing policies or ACLs.
- block_public_policy
Specifies whether Amazon S3 should block public bucket policies for this bucket.
Setting this element to
TRUEcauses Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access.Enabling this setting doesn’t affect existing bucket policies.
- ignore_public_acls
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
Setting this element to
TRUEcauses Amazon S3 to ignore all public ACLs on this bucket and objects in this bucket.Enabling this setting doesn’t affect the persistence of any existing ACLs and doesn’t prevent new public ACLs from being set.
- restrict_public_buckets
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
Setting this element to
TRUErestricts access to this bucket to only AWS service principals and authorized users within this account if the bucket has a public policy.Enabling this setting doesn’t affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.
RegionProperty
- class CfnMultiRegionAccessPointPropsMixin.RegionProperty(*, bucket=None, bucket_account_id=None)
Bases:
objectA bucket associated with a specific Region when creating Multi-Region Access Points.
- Parameters:
bucket (
Optional[str]) – The name of the associated bucket for the Region.bucket_account_id (
Optional[str]) – The AWS account ID that owns the Amazon S3 bucket that’s associated with this Multi-Region Access Point.
- 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 region_property = s3_mixins.CfnMultiRegionAccessPointPropsMixin.RegionProperty( bucket="bucket", bucket_account_id="bucketAccountId" )
Attributes
- bucket
The name of the associated bucket for the Region.
- bucket_account_id
The AWS account ID that owns the Amazon S3 bucket that’s associated with this Multi-Region Access Point.