Class BlockPublicAccess.Builder
java.lang.Object
software.amazon.awscdk.services.s3.BlockPublicAccess.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BlockPublicAccess>
- Enclosing class:
BlockPublicAccess
@Stability(Stable)
public static final class BlockPublicAccess.Builder
extends Object
implements software.amazon.jsii.Builder<BlockPublicAccess>
A fluent builder for
BlockPublicAccess
.-
Method Summary
Modifier and TypeMethodDescriptionblockPublicAcls
(Boolean blockPublicAcls) Whether to block public ACLs.blockPublicPolicy
(Boolean blockPublicPolicy) Whether to block public policy.build()
static BlockPublicAccess.Builder
create()
ignorePublicAcls
(Boolean ignorePublicAcls) Whether to ignore public ACLs.restrictPublicBuckets
(Boolean restrictPublicBuckets) Whether to restrict public access.
-
Method Details
-
create
- Returns:
- a new instance of
BlockPublicAccess.Builder
.
-
blockPublicAcls
Whether to block public ACLs.- Parameters:
blockPublicAcls
- Whether to block public ACLs. This parameter is required.- Returns:
this
- See Also:
-
blockPublicPolicy
Whether to block public policy.- Parameters:
blockPublicPolicy
- Whether to block public policy. This parameter is required.- Returns:
this
- See Also:
-
ignorePublicAcls
Whether to ignore public ACLs.- Parameters:
ignorePublicAcls
- Whether to ignore public ACLs. This parameter is required.- Returns:
this
- See Also:
-
restrictPublicBuckets
@Stability(Stable) public BlockPublicAccess.Builder restrictPublicBuckets(Boolean restrictPublicBuckets) Whether to restrict public access.- Parameters:
restrictPublicBuckets
- Whether to restrict public access. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BlockPublicAccess>
- Returns:
- a newly built instance of
BlockPublicAccess
.
-