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

Class: Aws::IoT::Types::AttachPrincipalPolicyRequest

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

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

The input for the AttachPrincipalPolicy operation.

Instance Attribute Summary collapse

Instance Attribute Details

#policy_nameString

The policy name.

Returns:

  • (String)


326
327
328
329
330
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 326

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

#principalString

The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.

Returns:

  • (String)


326
327
328
329
330
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 326

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