Class CfnSnapshotBlockPublicAccessPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnSnapshotBlockPublicAccessPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshotBlockPublicAccessPropsMixin>
- Enclosing class:
CfnSnapshotBlockPublicAccessPropsMixin
@Stability(Stable)
public static final class CfnSnapshotBlockPublicAccessPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshotBlockPublicAccessPropsMixin>
A fluent builder for
CfnSnapshotBlockPublicAccessPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) The mode in which to enable block public access for snapshots for the Region.
-
Method Details
-
create
@Stability(Stable) public static CfnSnapshotBlockPublicAccessPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnSnapshotBlockPublicAccessPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnSnapshotBlockPublicAccessPropsMixin.Builder.
-
state
The mode in which to enable block public access for snapshots for the Region.Specify one of the following values:
block-all-sharing- Prevents all public sharing of snapshots in the Region. Users in the account will no longer be able to request new public sharing. Additionally, snapshots that are already publicly shared are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in
block-all-sharingmode, it does not change the permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from be publicly visible and publicly accessible. Therefore, the attributes for these snapshots still indicate that they are publicly shared, even though they are not publicly available.block-new-sharing- Prevents only new public sharing of snapshots in the Region. Users in the account will no longer be able to request new public sharing. However, snapshots that are already publicly shared, remain publicly available.
- Parameters:
state- The mode in which to enable block public access for snapshots for the Region. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshotBlockPublicAccessPropsMixin>- Returns:
- a newly built instance of
CfnSnapshotBlockPublicAccessPropsMixin.
-