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

Class: Aws::EC2::Types::ModifySnapshotAttributeRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing ModifySnapshotAttributeRequest as input to an Aws::Client method, you can use a vanilla 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

Instance Attribute Details

#attributeString

The snapshot attribute to modify.

Only volume creation permissions may be modified at the customer level.

Possible values:

  • productCodes
  • createVolumePermission

Returns:

  • (String)

    The snapshot attribute to modify.

#create_volume_permissionTypes::CreateVolumePermissionModifications

A JSON representation of the snapshot attribute modification.

Returns:

#dry_runBoolean

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.

Returns:

  • (Boolean)

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.

#group_namesArray<String>

The group to modify for the snapshot.

Returns:

  • (Array<String>)

    The group to modify for the snapshot.

#operation_typeString

The type of operation to perform to the attribute.

Possible values:

  • add
  • remove

Returns:

  • (String)

    The type of operation to perform to the attribute.

#snapshot_idString

The ID of the snapshot.

Returns:

  • (String)

    The ID of the snapshot.

#user_idsArray<String>

The account ID to modify for the snapshot.

Returns:

  • (Array<String>)

    The account ID to modify for the snapshot.