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

Description

Registers a CA certificate with Amazon Web Services IoT Core. There is no limit to the number of CA certificates you can register in your Amazon Web Services account. You can register up to 10 CA certificates with the same CA subject field per Amazon Web Services account.

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

  • allowAutoRegistration :: Maybe Bool

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

  • certificateMode :: Maybe CertificateMode

    Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the verificationCertificate field is not provided, set certificateMode to be SNI_ONLY. If the verificationCertificate field is provided, set certificateMode to be DEFAULT. When certificateMode is not provided, it defaults to DEFAULT. All the device certificates that are registered using this CA will be registered in the same certificate mode as the CA. For more information about certificate mode for device certificates, see certificate mode.

  • registrationConfig :: Maybe RegistrationConfig

    Information about the registration configuration.

  • setAsActive :: Maybe Bool

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

    Valid values: ACTIVE | INACTIVE

  • tags :: Maybe [Tag]

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

  • verificationCertificate :: Maybe Text

    The private key verification certificate. If certificateMode is SNI_ONLY, the verificationCertificate field must be empty. If certificateMode is DEFAULT or not provided, the verificationCertificate field must not be empty.

  • caCertificate :: Text

    The CA certificate.

Instances

Instances details
ToJSON RegisterCACertificate Source # 
Instance details

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

AWSRequest RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Associated Types

type AWSResponse RegisterCACertificate #

Generic RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Associated Types

type Rep RegisterCACertificate :: Type -> Type #

Read RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Show RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

NFData RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Methods

rnf :: RegisterCACertificate -> () #

Eq RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Hashable RegisterCACertificate Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

type AWSResponse 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "RegisterCACertificate'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "allowAutoRegistration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "certificateMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CertificateMode)) :*: S1 ('MetaSel ('Just "registrationConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RegistrationConfig)))) :*: ((S1 ('MetaSel ('Just "setAsActive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "verificationCertificate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "caCertificate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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:allowAutoRegistration:RegisterCACertificate', registerCACertificate_allowAutoRegistration - Allows this CA certificate to be used for auto registration of device certificates.

RegisterCACertificate, registerCACertificate_certificateMode - Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the verificationCertificate field is not provided, set certificateMode to be SNI_ONLY. If the verificationCertificate field is provided, set certificateMode to be DEFAULT. When certificateMode is not provided, it defaults to DEFAULT. All the device certificates that are registered using this CA will be registered in the same certificate mode as the CA. For more information about certificate mode for device certificates, see certificate mode.

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

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

Valid values: ACTIVE | INACTIVE

$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:verificationCertificate:RegisterCACertificate', registerCACertificate_verificationCertificate - The private key verification certificate. If certificateMode is SNI_ONLY, the verificationCertificate field must be empty. If certificateMode is DEFAULT or not provided, the verificationCertificate field must not be empty.

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

Request Lenses

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

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

registerCACertificate_certificateMode :: Lens' RegisterCACertificate (Maybe CertificateMode) Source #

Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the verificationCertificate field is not provided, set certificateMode to be SNI_ONLY. If the verificationCertificate field is provided, set certificateMode to be DEFAULT. When certificateMode is not provided, it defaults to DEFAULT. All the device certificates that are registered using this CA will be registered in the same certificate mode as the CA. For more information about certificate mode for device certificates, see certificate mode.

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

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

Valid values: ACTIVE | INACTIVE

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

registerCACertificate_verificationCertificate :: Lens' RegisterCACertificate (Maybe Text) Source #

The private key verification certificate. If certificateMode is SNI_ONLY, the verificationCertificate field must be empty. If certificateMode is DEFAULT or not provided, the verificationCertificate field must not be empty.

Destructuring the Response

data RegisterCACertificateResponse Source #

The output from the RegisterCACertificateResponse operation.

See: newRegisterCACertificateResponse smart constructor.

Constructors

RegisterCACertificateResponse' 

Fields

Instances

Instances details
Generic RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Associated Types

type Rep RegisterCACertificateResponse :: Type -> Type #

Read RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

Show RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

NFData RegisterCACertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.RegisterCACertificate

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

RegisterCACertificateResponse, registerCACertificateResponse_certificateArn - The CA certificate ARN.

RegisterCACertificateResponse, registerCACertificateResponse_certificateId - The CA certificate identifier.

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

Response Lenses