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.RegisterCertificate

Description

Registers a device certificate with IoT. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.

Requires permission to access the RegisterCertificate action.

Synopsis

Creating a Request

data RegisterCertificate Source #

The input to the RegisterCertificate operation.

See: newRegisterCertificate smart constructor.

Constructors

RegisterCertificate' 

Fields

Instances

Instances details
Eq RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Read RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Show RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Generic RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Associated Types

type Rep RegisterCertificate :: Type -> Type #

NFData RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Methods

rnf :: RegisterCertificate -> () #

Hashable RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

ToJSON RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

AWSRequest RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Associated Types

type AWSResponse RegisterCertificate #

ToHeaders RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

ToPath RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

ToQuery RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

type Rep RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

type Rep RegisterCertificate = D1 ('MetaData "RegisterCertificate" "Amazonka.IoT.RegisterCertificate" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "RegisterCertificate'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CertificateStatus)) :*: S1 ('MetaSel ('Just "caCertificatePem") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "setAsActive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "certificatePem") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

newRegisterCertificate Source #

Create a value of RegisterCertificate 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:status:RegisterCertificate', registerCertificate_status - The status of the register certificate request.

$sel:caCertificatePem:RegisterCertificate', registerCertificate_caCertificatePem - The CA certificate used to sign the device certificate being registered.

$sel:setAsActive:RegisterCertificate', registerCertificate_setAsActive - A boolean value that specifies if the certificate is set to active.

$sel:certificatePem:RegisterCertificate', registerCertificate_certificatePem - The certificate data, in PEM format.

Request Lenses

registerCertificate_status :: Lens' RegisterCertificate (Maybe CertificateStatus) Source #

The status of the register certificate request.

registerCertificate_caCertificatePem :: Lens' RegisterCertificate (Maybe Text) Source #

The CA certificate used to sign the device certificate being registered.

registerCertificate_setAsActive :: Lens' RegisterCertificate (Maybe Bool) Source #

A boolean value that specifies if the certificate is set to active.

Destructuring the Response

data RegisterCertificateResponse Source #

The output from the RegisterCertificate operation.

See: newRegisterCertificateResponse smart constructor.

Constructors

RegisterCertificateResponse' 

Fields

Instances

Instances details
Eq RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Read RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Show RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Generic RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Associated Types

type Rep RegisterCertificateResponse :: Type -> Type #

NFData RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

type Rep RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

type Rep RegisterCertificateResponse = D1 ('MetaData "RegisterCertificateResponse" "Amazonka.IoT.RegisterCertificate" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "RegisterCertificateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "certificateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "certificateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newRegisterCertificateResponse Source #

Create a value of RegisterCertificateResponse 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:certificateArn:RegisterCertificateResponse', registerCertificateResponse_certificateArn - The certificate ARN.

$sel:certificateId:RegisterCertificateResponse', registerCertificateResponse_certificateId - The certificate identifier.

$sel:httpStatus:RegisterCertificateResponse', registerCertificateResponse_httpStatus - The response's http status code.

Response Lenses