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

Description

Registers a CA certificate with IoT. This CA certificate can then be used to sign device certificates, which can be then registered with IoT. You can register up to 10 CA certificates per Amazon Web Services account that have the same subject field. This enables you to have up to 10 certificate authorities sign your device certificates. If you have more than one CA certificate registered, make sure you pass the CA certificate when you register your device certificates with the RegisterCertificate action.

Requires permission to access the RegisterCACertificate action.

Synopsis

Creating a Request

data RegisterCACertificate Source #

The input to the RegisterCACertificate operation.

See: newRegisterCACertificate smart constructor.

Constructors

RegisterCACertificate' 

Fields

Instances

Instances details
Eq RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Read RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Show RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Generic RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Associated Types

type Rep RegisterCACertificate :: Type -> Type #

NFData RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Methods

rnf :: RegisterCACertificate -> () #

Hashable RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

ToJSON RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

AWSRequest RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Associated Types

type AWSResponse RegisterCACertificate #

ToHeaders RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

ToPath RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

ToQuery RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

type Rep RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

type Rep RegisterCACertificate = D1 ('MetaData "RegisterCACertificate" "Amazonka.IoT.RegisterCACertificate" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "RegisterCACertificate'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "setAsActive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "allowAutoRegistration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "registrationConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RegistrationConfig)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "caCertificate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "verificationCertificate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

newRegisterCACertificate Source #

Create a value of RegisterCACertificate 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:RegisterCACertificate', registerCACertificate_setAsActive - A boolean value that specifies if the CA certificate is set to active.

$sel:allowAutoRegistration:RegisterCACertificate', registerCACertificate_allowAutoRegistration - Allows this CA certificate to be used for auto registration of device certificates.

$sel:registrationConfig:RegisterCACertificate', registerCACertificate_registrationConfig - Information about the registration configuration.

$sel:tags:RegisterCACertificate', registerCACertificate_tags - Metadata which can be used to manage the CA certificate.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

$sel:caCertificate:RegisterCACertificate', registerCACertificate_caCertificate - The CA certificate.

$sel:verificationCertificate:RegisterCACertificate', registerCACertificate_verificationCertificate - The private key verification certificate.

Request Lenses

registerCACertificate_setAsActive :: Lens' RegisterCACertificate (Maybe Bool) Source #

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

registerCACertificate_allowAutoRegistration :: Lens' RegisterCACertificate (Maybe Bool) Source #

Allows this CA certificate to be used for auto registration of device certificates.

registerCACertificate_tags :: Lens' RegisterCACertificate (Maybe [Tag]) Source #

Metadata which can be used to manage the CA certificate.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

Destructuring the Response

data RegisterCACertificateResponse Source #

The output from the RegisterCACertificateResponse operation.

See: newRegisterCACertificateResponse smart constructor.

Constructors

RegisterCACertificateResponse' 

Fields

Instances

Instances details
Eq RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Read RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Show RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Generic RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Associated Types

type Rep RegisterCACertificateResponse :: Type -> Type #

NFData RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

type Rep RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

type Rep RegisterCACertificateResponse = D1 ('MetaData "RegisterCACertificateResponse" "Amazonka.IoT.RegisterCACertificate" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "RegisterCACertificateResponse'" '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))))

newRegisterCACertificateResponse Source #

Create a value of RegisterCACertificateResponse 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:RegisterCACertificateResponse', registerCACertificateResponse_certificateArn - The CA certificate ARN.

$sel:certificateId:RegisterCACertificateResponse', registerCACertificateResponse_certificateId - The CA certificate identifier.

$sel:httpStatus:RegisterCACertificateResponse', registerCACertificateResponse_httpStatus - The response's http status code.

Response Lenses