Class CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty>
- Enclosing interface:
CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockPublicAcls(Boolean blockPublicAcls) blockPublicAcls(IResolvable blockPublicAcls) blockPublicPolicy(Boolean blockPublicPolicy) blockPublicPolicy(IResolvable blockPublicPolicy) build()Builds the configured instance.ignorePublicAcls(Boolean ignorePublicAcls) ignorePublicAcls(IResolvable ignorePublicAcls) restrictPublicBuckets(Boolean restrictPublicBuckets) restrictPublicBuckets(IResolvable restrictPublicBuckets)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockPublicAcls
@Stability(Stable) public CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.Builder blockPublicAcls(Boolean blockPublicAcls) Sets the value ofCfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.getBlockPublicAcls()- Parameters:
blockPublicAcls- Specifies whether Amazon S3 should block public access control lists (ACLs) for buckets in this account. Setting this element toTRUEcauses the following behavior:PutBucketAclandPutObjectAclcalls 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.
This property is not supported for Amazon S3 on Outposts.
- Returns:
this
-
blockPublicAcls
@Stability(Stable) public CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.Builder blockPublicAcls(IResolvable blockPublicAcls) Sets the value ofCfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.getBlockPublicAcls()- Parameters:
blockPublicAcls- Specifies whether Amazon S3 should block public access control lists (ACLs) for buckets in this account. Setting this element toTRUEcauses the following behavior:PutBucketAclandPutObjectAclcalls 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.
This property is not supported for Amazon S3 on Outposts.
- Returns:
this
-
blockPublicPolicy
@Stability(Stable) public CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.Builder blockPublicPolicy(Boolean blockPublicPolicy) Sets the value ofCfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.getBlockPublicPolicy()- Parameters:
blockPublicPolicy- Specifies whether Amazon S3 should block public bucket policies for buckets in this account. 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.
This property is not supported for Amazon S3 on Outposts.
- Returns:
this
-
blockPublicPolicy
@Stability(Stable) public CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.Builder blockPublicPolicy(IResolvable blockPublicPolicy) Sets the value ofCfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.getBlockPublicPolicy()- Parameters:
blockPublicPolicy- Specifies whether Amazon S3 should block public bucket policies for buckets in this account. 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.
This property is not supported for Amazon S3 on Outposts.
- Returns:
this
-
ignorePublicAcls
@Stability(Stable) public CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.Builder ignorePublicAcls(Boolean ignorePublicAcls) Sets the value ofCfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.getIgnorePublicAcls()- Parameters:
ignorePublicAcls- Specifies whether Amazon S3 should ignore public ACLs for buckets in this account. Setting this element toTRUEcauses Amazon S3 to ignore all public ACLs on buckets in this account and any objects that they contain.Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.
This property is not supported for Amazon S3 on Outposts.
- Returns:
this
-
ignorePublicAcls
@Stability(Stable) public CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.Builder ignorePublicAcls(IResolvable ignorePublicAcls) Sets the value ofCfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.getIgnorePublicAcls()- Parameters:
ignorePublicAcls- Specifies whether Amazon S3 should ignore public ACLs for buckets in this account. Setting this element toTRUEcauses Amazon S3 to ignore all public ACLs on buckets in this account and any objects that they contain.Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.
This property is not supported for Amazon S3 on Outposts.
- Returns:
this
-
restrictPublicBuckets
@Stability(Stable) public CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.Builder restrictPublicBuckets(Boolean restrictPublicBuckets) Sets the value ofCfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.getRestrictPublicBuckets()- Parameters:
restrictPublicBuckets- Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account. Setting this element toTRUErestricts access to buckets with public policies to only AWS service principals and authorized users within this account.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.
This property is not supported for Amazon S3 on Outposts.
- Returns:
this
-
restrictPublicBuckets
@Stability(Stable) public CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.Builder restrictPublicBuckets(IResolvable restrictPublicBuckets) Sets the value ofCfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty.getRestrictPublicBuckets()- Parameters:
restrictPublicBuckets- Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account. Setting this element toTRUErestricts access to buckets with public policies to only AWS service principals and authorized users within this account.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.
This property is not supported for Amazon S3 on Outposts.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty>- Returns:
- a new instance of
CfnAccessPointPropsMixin.PublicAccessBlockConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-