Class: Aws::EC2::Types::EnableSnapshotBlockPublicAccessRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::EnableSnapshotBlockPublicAccessRequest
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#state ⇒ String
The mode in which to enable block public access for snapshots for the Region.
Instance Attribute Details
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action,
without actually making the request, and provides an error response.
If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
33909 33910 33911 33912 33913 33914 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33909 class EnableSnapshotBlockPublicAccessRequest < Struct.new( :state, :dry_run) SENSITIVE = [] include Aws::Structure end |
#state ⇒ String
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.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.
unblocked
is not a valid value for
EnableSnapshotBlockPublicAccess.
33909 33910 33911 33912 33913 33914 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33909 class EnableSnapshotBlockPublicAccessRequest < Struct.new( :state, :dry_run) SENSITIVE = [] include Aws::Structure end |