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

Class: Aws::Glacier::Types::Grant

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

Overview

Note:

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

{
  grantee: {
    type: "AmazonCustomerByEmail", # required, accepts AmazonCustomerByEmail, CanonicalUser, Group
    display_name: "string",
    uri: "string",
    id: "string",
    email_address: "string",
  },
  permission: "FULL_CONTROL", # accepts FULL_CONTROL, WRITE, WRITE_ACP, READ, READ_ACP
}

Contains information about a grant.

Instance Attribute Summary collapse

Instance Attribute Details

#granteeTypes::Grantee

The grantee.

Returns:



1211
1212
1213
1214
1215
# File 'gems/aws-sdk-glacier/lib/aws-sdk-glacier/types.rb', line 1211

class Grant < Struct.new(
  :grantee,
  :permission)
  include Aws::Structure
end

#permissionString

Specifies the permission given to the grantee.

Returns:

  • (String)


1211
1212
1213
1214
1215
# File 'gems/aws-sdk-glacier/lib/aws-sdk-glacier/types.rb', line 1211

class Grant < Struct.new(
  :grantee,
  :permission)
  include Aws::Structure
end