Class: Aws::EC2::Types::ModifySnapshotAttributeRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ModifySnapshotAttributeRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass ModifySnapshotAttributeRequest data as a hash:
{
attribute: "productCodes", # accepts productCodes, createVolumePermission
create_volume_permission: {
add: [
{
group: "all", # accepts all
user_id: "String",
},
],
remove: [
{
group: "all", # accepts all
user_id: "String",
},
],
},
group_names: ["String"],
operation_type: "add", # accepts add, remove
snapshot_id: "String", # required
user_ids: ["String"],
dry_run: false,
}
Contains the parameters for ModifySnapshotAttribute.
Instance Attribute Summary collapse
-
#attribute ⇒ String
The snapshot attribute to modify.
-
#create_volume_permission ⇒ Types::CreateVolumePermissionModifications
A JSON representation of the snapshot attribute modification.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#group_names ⇒ Array<String>
The group to modify for the snapshot.
-
#operation_type ⇒ String
The type of operation to perform to the attribute.
-
#snapshot_id ⇒ String
The ID of the snapshot.
-
#user_ids ⇒ Array<String>
The account ID to modify for the snapshot.
Instance Attribute Details
#attribute ⇒ String
The snapshot attribute to modify.
<note markdown=“1”> Only volume creation permissions may be modified at the customer level.
</note>
16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 |
# File 'lib/aws-sdk-ec2/types.rb', line 16693 class ModifySnapshotAttributeRequest < Struct.new( :attribute, :create_volume_permission, :group_names, :operation_type, :snapshot_id, :user_ids, :dry_run) include Aws::Structure end |
#create_volume_permission ⇒ Types::CreateVolumePermissionModifications
A JSON representation of the snapshot attribute modification.
16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 |
# File 'lib/aws-sdk-ec2/types.rb', line 16693 class ModifySnapshotAttributeRequest < Struct.new( :attribute, :create_volume_permission, :group_names, :operation_type, :snapshot_id, :user_ids, :dry_run) include Aws::Structure end |
#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`.
16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 |
# File 'lib/aws-sdk-ec2/types.rb', line 16693 class ModifySnapshotAttributeRequest < Struct.new( :attribute, :create_volume_permission, :group_names, :operation_type, :snapshot_id, :user_ids, :dry_run) include Aws::Structure end |
#group_names ⇒ Array<String>
The group to modify for the snapshot.
16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 |
# File 'lib/aws-sdk-ec2/types.rb', line 16693 class ModifySnapshotAttributeRequest < Struct.new( :attribute, :create_volume_permission, :group_names, :operation_type, :snapshot_id, :user_ids, :dry_run) include Aws::Structure end |
#operation_type ⇒ String
The type of operation to perform to the attribute.
16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 |
# File 'lib/aws-sdk-ec2/types.rb', line 16693 class ModifySnapshotAttributeRequest < Struct.new( :attribute, :create_volume_permission, :group_names, :operation_type, :snapshot_id, :user_ids, :dry_run) include Aws::Structure end |
#snapshot_id ⇒ String
The ID of the snapshot.
16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 |
# File 'lib/aws-sdk-ec2/types.rb', line 16693 class ModifySnapshotAttributeRequest < Struct.new( :attribute, :create_volume_permission, :group_names, :operation_type, :snapshot_id, :user_ids, :dry_run) include Aws::Structure end |
#user_ids ⇒ Array<String>
The account ID to modify for the snapshot.
16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 |
# File 'lib/aws-sdk-ec2/types.rb', line 16693 class ModifySnapshotAttributeRequest < Struct.new( :attribute, :create_volume_permission, :group_names, :operation_type, :snapshot_id, :user_ids, :dry_run) include Aws::Structure end |