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

Class: Aws::IoT::Types::DetachPolicyRequest

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 DetachPolicyRequest data as a hash:

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

Instance Attribute Summary collapse

Instance Attribute Details

#policy_nameString

The policy to detach.

Returns:

  • (String)


2866
2867
2868
2869
2870
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 2866

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

#targetString

The target from which the policy will be detached.

Returns:

  • (String)


2866
2867
2868
2869
2870
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 2866

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