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)


1351
1352
1353
1354
1355
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1351

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)


1351
1352
1353
1354
1355
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1351

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