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

Class: Aws::WorkDocs::Types::SharePrincipal

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

Overview

Note:

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

{
  id: "IdType", # required
  type: "USER", # required, accepts USER, GROUP, INVITE, ANONYMOUS, ORGANIZATION
  role: "VIEWER", # required, accepts VIEWER, CONTRIBUTOR, OWNER, COOWNER
}

Describes the recipient type and ID, if available.

Instance Attribute Summary collapse

Instance Attribute Details

#idString

The ID of the recipient.

Returns:

  • (String)


2239
2240
2241
2242
2243
2244
# File 'gems/aws-sdk-workdocs/lib/aws-sdk-workdocs/types.rb', line 2239

class SharePrincipal < Struct.new(
  :id,
  :type,
  :role)
  include Aws::Structure
end

#roleString

The role of the recipient.

Returns:

  • (String)


2239
2240
2241
2242
2243
2244
# File 'gems/aws-sdk-workdocs/lib/aws-sdk-workdocs/types.rb', line 2239

class SharePrincipal < Struct.new(
  :id,
  :type,
  :role)
  include Aws::Structure
end

#typeString

The type of the recipient.

Returns:

  • (String)


2239
2240
2241
2242
2243
2244
# File 'gems/aws-sdk-workdocs/lib/aws-sdk-workdocs/types.rb', line 2239

class SharePrincipal < Struct.new(
  :id,
  :type,
  :role)
  include Aws::Structure
end