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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#policy_nameString

The name of the policy to detach.

Returns:

  • (String)


8188
8189
8190
8191
8192
8193
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 8188

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

#principalString

The principal.

Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).

Returns:

  • (String)


8188
8189
8190
8191
8192
8193
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 8188

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