Interface CfnSnapshotBlockPublicAccessMixinProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnSnapshotBlockPublicAccessMixinProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:58.631Z") @Stability(Stable) public interface CfnSnapshotBlockPublicAccessMixinProps extends software.amazon.jsii.JsiiSerializable
Properties for CfnSnapshotBlockPublicAccessPropsMixin.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.ec2.*;
 CfnSnapshotBlockPublicAccessMixinProps cfnSnapshotBlockPublicAccessMixinProps = CfnSnapshotBlockPublicAccessMixinProps.builder()
         .state("state")
         .build();
 

See Also:
  • Method Details

    • getState

      @Stability(Stable) @Nullable default String getState()
      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-sharing mode, 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.

      See Also:
    • builder

      @Stability(Stable) static CfnSnapshotBlockPublicAccessMixinProps.Builder builder()
      Returns:
      a CfnSnapshotBlockPublicAccessMixinProps.Builder of CfnSnapshotBlockPublicAccessMixinProps