amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.RegisterCertificate

Description

Registers a device certificate with IoT in the same certificate mode as the signing CA. 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
ToJSON RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.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

AWSRequest RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Associated Types

type AWSResponse RegisterCertificate #

Generic RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Associated Types

type Rep RegisterCertificate :: Type -> Type #

Read RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Show RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

NFData RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Methods

rnf :: RegisterCertificate -> () #

Eq RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Hashable RegisterCertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

type AWSResponse 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "RegisterCertificate'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "caCertificatePem") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "setAsActive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CertificateStatus)) :*: S1 ('MetaSel ('Just "certificatePem") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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

Valid values: ACTIVE | INACTIVE

RegisterCertificate, registerCertificate_status - The status of the register certificate request. Valid values that you can use include ACTIVE, INACTIVE, and REVOKED.

RegisterCertificate, registerCertificate_certificatePem - The certificate data, in PEM format.

Request Lenses

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.

Valid values: ACTIVE | INACTIVE

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

The status of the register certificate request. Valid values that you can use include ACTIVE, INACTIVE, and REVOKED.

Destructuring the Response

data RegisterCertificateResponse Source #

The output from the RegisterCertificate operation.

See: newRegisterCertificateResponse smart constructor.

Constructors

RegisterCertificateResponse' 

Fields

Instances

Instances details
Generic RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Associated Types

type Rep RegisterCertificateResponse :: Type -> Type #

Read RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Show RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

NFData RegisterCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCertificate

Eq 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" '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:

RegisterCertificateResponse, registerCertificateResponse_certificateArn - The certificate ARN.

RegisterCertificateResponse, registerCertificateResponse_certificateId - The certificate identifier.

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

Response Lenses