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

Class: Aws::IoT::Types::AttachPolicyRequest

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

Overview

Note:

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

{
  policy_name: "PolicyName", # required
  target: "PolicyTarget", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#policy_nameString

The name of the policy to attach.

Returns:

  • (String)


301
302
303
304
305
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 301

class AttachPolicyRequest < Struct.new(
  :policy_name,
  :target)
  include Aws::Structure
end

#targetString

The identity to which the policy is attached.

Returns:

  • (String)


301
302
303
304
305
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 301

class AttachPolicyRequest < Struct.new(
  :policy_name,
  :target)
  include Aws::Structure
end