You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EC2::Types::CreateVolumePermissionModifications

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass CreateVolumePermissionModifications data as a hash:

{
  add: [
    {
      group: "all", # accepts all
      user_id: "String",
    },
  ],
  remove: [
    {
      group: "all", # accepts all
      user_id: "String",
    },
  ],
}

Describes modifications to the permissions for a volume.

Instance Attribute Summary collapse

Instance Attribute Details

#addArray<Types::CreateVolumePermission>

Adds a specific AWS account ID or group to a volume's list of create volume permissions.

Returns:



3934
3935
3936
3937
3938
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 3934

class CreateVolumePermissionModifications < Struct.new(
  :add,
  :remove)
  include Aws::Structure
end

#removeArray<Types::CreateVolumePermission>

Removes a specific AWS account ID or group from a volume's list of create volume permissions.

Returns:



3934
3935
3936
3937
3938
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 3934

class CreateVolumePermissionModifications < Struct.new(
  :add,
  :remove)
  include Aws::Structure
end