Class: Aws::IoT::Types::AttachThingPrincipalRequest

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

{
  thing_name: "ThingName", # required
  principal: "Principal", # required
}

The input for the AttachThingPrincipal operation.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#principalString

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

Returns:

  • (String)


855
856
857
858
859
860
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 855

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

#thing_nameString

The name of the thing.

Returns:

  • (String)


855
856
857
858
859
860
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 855

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