Class: Aws::RAM::Types::AssociateResourceShareRequest

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

Overview

Note:

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

{
  resource_share_arn: "String", # required
  resource_arns: ["String"],
  principals: ["String"],
  client_token: "String",
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Returns:

  • (String)


174
175
176
177
178
179
180
181
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/types.rb', line 174

class AssociateResourceShareRequest < Struct.new(
  :resource_share_arn,
  :resource_arns,
  :principals,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#principalsArray<String>

The principals to associate with the resource share. The possible values are:

  • An Amazon Web Services account ID

  • An Amazon Resource Name (ARN) of an organization in Organizations

  • An ARN of an organizational unit (OU) in Organizations

  • An ARN of an IAM role

  • An ARN of an IAM user

Not all resource types can be shared with IAM roles and IAM users. For more information, see Sharing with IAM roles and IAM users in the Resource Access Manager User Guide.

Returns:

  • (Array<String>)


174
175
176
177
178
179
180
181
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/types.rb', line 174

class AssociateResourceShareRequest < Struct.new(
  :resource_share_arn,
  :resource_arns,
  :principals,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#resource_arnsArray<String>

The Amazon Resource Names (ARNs) of the resources.

Returns:

  • (Array<String>)


174
175
176
177
178
179
180
181
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/types.rb', line 174

class AssociateResourceShareRequest < Struct.new(
  :resource_share_arn,
  :resource_arns,
  :principals,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#resource_share_arnString

The Amazon Resource Name (ARN) of the resource share.

Returns:

  • (String)


174
175
176
177
178
179
180
181
# File 'gems/aws-sdk-ram/lib/aws-sdk-ram/types.rb', line 174

class AssociateResourceShareRequest < Struct.new(
  :resource_share_arn,
  :resource_arns,
  :principals,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end