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

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

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

Overview

Note:

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

    The name of the policy to attach.

#targetString

The identity to which the policy is attached.

Returns:

  • (String)

    The [identity][1] to which the policy is attached.