CfnAccessPointPropsMixin
- class aws_cdk.mixins_preview.aws_s3.mixins.CfnAccessPointPropsMixin(props, *, strategy=None)
Bases:
MixinThe AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-accesspoint.html
- CloudformationResource:
AWS::S3::AccessPoint
- 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_access_point_props_mixin = s3_mixins.CfnAccessPointPropsMixin(s3_mixins.CfnAccessPointMixinProps( bucket="bucket", bucket_account_id="bucketAccountId", name="name", policy=policy, public_access_block_configuration=s3_mixins.CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty( block_public_acls=False, block_public_policy=False, ignore_public_acls=False, restrict_public_buckets=False ), tags=[CfnTag( key="key", value="value" )], vpc_configuration=s3_mixins.CfnAccessPointPropsMixin.VpcConfigurationProperty( vpc_id="vpcId" ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::S3::AccessPoint.- Parameters:
props (
Union[CfnAccessPointMixinProps,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 = ['bucket', 'bucketAccountId', 'name', 'policy', 'publicAccessBlockConfiguration', 'tags', 'vpcConfiguration']
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 CfnAccessPointPropsMixin.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 bucket.
You can enable the configuration options in any combination. Bucket-level settings work alongside account-level settings (which may inherit from organization-level policies). For more information about when Amazon S3 considers a bucket or 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.CfnAccessPointPropsMixin.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.
VpcConfigurationProperty
- class CfnAccessPointPropsMixin.VpcConfigurationProperty(*, vpc_id=None)
Bases:
objectThe Virtual Private Cloud (VPC) configuration for this access point.
- Parameters:
vpc_id (
Optional[str]) – If this field is specified, the access point will only allow connections from the specified VPC ID.- 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 vpc_configuration_property = s3_mixins.CfnAccessPointPropsMixin.VpcConfigurationProperty( vpc_id="vpcId" )
Attributes
- vpc_id
If this field is specified, the access point will only allow connections from the specified VPC ID.