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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-iot/types.rb

Overview

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)


695
696
697
698
699
700
701
# File 'lib/aws-sdk-iot/types.rb', line 695

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

#thing_nameString

The name of the thing.

Returns:

  • (String)


695
696
697
698
699
700
701
# File 'lib/aws-sdk-iot/types.rb', line 695

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

#thing_principal_typeString

The type of the relation you want to specify when you attach a principal to a thing.

  • ‘EXCLUSIVE_THING` - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.

^ ^

  • ‘NON_EXCLUSIVE_THING` - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

^

Returns:

  • (String)


695
696
697
698
699
700
701
# File 'lib/aws-sdk-iot/types.rb', line 695

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