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

Description

Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key. You can also call CreateKeysAndCertificate over MQTT from a device, for more information, see Provisioning MQTT API.

Note This is the only time IoT issues the private key for this certificate, so it is important to keep it in a secure location.

Requires permission to access the CreateKeysAndCertificate action.

Synopsis

Creating a Request

data CreateKeysAndCertificate Source #

The input for the CreateKeysAndCertificate operation.

Requires permission to access the CreateKeysAndCertificateRequest action.

See: newCreateKeysAndCertificate smart constructor.

Constructors

CreateKeysAndCertificate' 

Fields

Instances

Instances details
Eq CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

Read CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

Show CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

Generic CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

Associated Types

type Rep CreateKeysAndCertificate :: Type -> Type #

NFData CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

Hashable CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

ToJSON CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

AWSRequest CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

ToHeaders CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

ToPath CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

ToQuery CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificate Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

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

Defined in Amazonka.IoT.CreateKeysAndCertificate

newCreateKeysAndCertificate :: CreateKeysAndCertificate Source #

Create a value of CreateKeysAndCertificate 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:setAsActive:CreateKeysAndCertificate', createKeysAndCertificate_setAsActive - Specifies whether the certificate is active.

Request Lenses

createKeysAndCertificate_setAsActive :: Lens' CreateKeysAndCertificate (Maybe Bool) Source #

Specifies whether the certificate is active.

Destructuring the Response

data CreateKeysAndCertificateResponse Source #

The output of the CreateKeysAndCertificate operation.

See: newCreateKeysAndCertificateResponse smart constructor.

Constructors

CreateKeysAndCertificateResponse' 

Fields

Instances

Instances details
Eq CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

Show CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

Generic CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

Associated Types

type Rep CreateKeysAndCertificateResponse :: Type -> Type #

NFData CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificateResponse = D1 ('MetaData "CreateKeysAndCertificateResponse" "Amazonka.IoT.CreateKeysAndCertificate" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateKeysAndCertificateResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "keyPair") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KeyPair)) :*: S1 ('MetaSel ('Just "certificatePem") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (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)))))

newCreateKeysAndCertificateResponse Source #

Create a value of CreateKeysAndCertificateResponse 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:keyPair:CreateKeysAndCertificateResponse', createKeysAndCertificateResponse_keyPair - The generated key pair.

$sel:certificatePem:CreateKeysAndCertificateResponse', createKeysAndCertificateResponse_certificatePem - The certificate data, in PEM format.

$sel:certificateArn:CreateKeysAndCertificateResponse', createKeysAndCertificateResponse_certificateArn - The ARN of the certificate.

$sel:certificateId:CreateKeysAndCertificateResponse', createKeysAndCertificateResponse_certificateId - The ID of the certificate. IoT issues a default subject name for the certificate (for example, IoT Certificate).

$sel:httpStatus:CreateKeysAndCertificateResponse', createKeysAndCertificateResponse_httpStatus - The response's http status code.

Response Lenses

createKeysAndCertificateResponse_certificateId :: Lens' CreateKeysAndCertificateResponse (Maybe Text) Source #

The ID of the certificate. IoT issues a default subject name for the certificate (for example, IoT Certificate).