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

Class: Aws::IoT::Types::DetachPrincipalPolicyRequest

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

{
  policy_name: "PolicyName", # required
  principal: "Principal", # required
}

The input for the DetachPrincipalPolicy operation.

Instance Attribute Summary collapse

Instance Attribute Details

#policy_nameString

The name of the policy to detach.

Returns:

  • (String)


2488
2489
2490
2491
2492
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 2488

class DetachPrincipalPolicyRequest < Struct.new(
  :policy_name,
  :principal)
  include Aws::Structure
end

#principalString

The principal.

If the principal is a certificate, specify the certificate ARN. If the principal is an Amazon Cognito identity, specify the identity ID.

Returns:

  • (String)


2488
2489
2490
2491
2492
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 2488

class DetachPrincipalPolicyRequest < Struct.new(
  :policy_name,
  :principal)
  include Aws::Structure
end