libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.AttachThingPrincipal

Description

Attaches the specified principal to the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.

Requires permission to access the AttachThingPrincipal action.

Synopsis

Creating a Request

data AttachThingPrincipal Source #

The input for the AttachThingPrincipal operation.

See: newAttachThingPrincipal smart constructor.

Constructors

AttachThingPrincipal' 

Fields

  • thingName :: Text

    The name of the thing.

  • principal :: Text

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

Instances

Instances details
Eq AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Read AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Show AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Generic AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Associated Types

type Rep AttachThingPrincipal :: Type -> Type #

NFData AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Methods

rnf :: AttachThingPrincipal -> () #

Hashable AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

ToJSON AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

AWSRequest AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Associated Types

type AWSResponse AttachThingPrincipal #

ToHeaders AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

ToPath AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

ToQuery AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

type Rep AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

type Rep AttachThingPrincipal = D1 ('MetaData "AttachThingPrincipal" "Amazonka.IoT.AttachThingPrincipal" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "AttachThingPrincipal'" 'PrefixI 'True) (S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "principal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse AttachThingPrincipal Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

newAttachThingPrincipal Source #

Create a value of AttachThingPrincipal with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:thingName:AttachThingPrincipal', attachThingPrincipal_thingName - The name of the thing.

$sel:principal:AttachThingPrincipal', attachThingPrincipal_principal - The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.

Request Lenses

attachThingPrincipal_principal :: Lens' AttachThingPrincipal Text Source #

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

Destructuring the Response

data AttachThingPrincipalResponse Source #

The output from the AttachThingPrincipal operation.

See: newAttachThingPrincipalResponse smart constructor.

Constructors

AttachThingPrincipalResponse' 

Fields

Instances

Instances details
Eq AttachThingPrincipalResponse Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Read AttachThingPrincipalResponse Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Show AttachThingPrincipalResponse Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Generic AttachThingPrincipalResponse Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

Associated Types

type Rep AttachThingPrincipalResponse :: Type -> Type #

NFData AttachThingPrincipalResponse Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

type Rep AttachThingPrincipalResponse Source # 
Instance details

Defined in Amazonka.IoT.AttachThingPrincipal

type Rep AttachThingPrincipalResponse = D1 ('MetaData "AttachThingPrincipalResponse" "Amazonka.IoT.AttachThingPrincipal" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "AttachThingPrincipalResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAttachThingPrincipalResponse Source #

Create a value of AttachThingPrincipalResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:AttachThingPrincipalResponse', attachThingPrincipalResponse_httpStatus - The response's http status code.

Response Lenses