| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data RegisterCACertificate = RegisterCACertificate' {}
- newRegisterCACertificate :: Text -> RegisterCACertificate
- registerCACertificate_allowAutoRegistration :: Lens' RegisterCACertificate (Maybe Bool)
- registerCACertificate_certificateMode :: Lens' RegisterCACertificate (Maybe CertificateMode)
- registerCACertificate_registrationConfig :: Lens' RegisterCACertificate (Maybe RegistrationConfig)
- registerCACertificate_setAsActive :: Lens' RegisterCACertificate (Maybe Bool)
- registerCACertificate_tags :: Lens' RegisterCACertificate (Maybe [Tag])
- registerCACertificate_verificationCertificate :: Lens' RegisterCACertificate (Maybe Text)
- registerCACertificate_caCertificate :: Lens' RegisterCACertificate Text
- data RegisterCACertificateResponse = RegisterCACertificateResponse' {}
- newRegisterCACertificateResponse :: Int -> RegisterCACertificateResponse
- registerCACertificateResponse_certificateArn :: Lens' RegisterCACertificateResponse (Maybe Text)
- registerCACertificateResponse_certificateId :: Lens' RegisterCACertificateResponse (Maybe Text)
- registerCACertificateResponse_httpStatus :: Lens' RegisterCACertificateResponse Int
Creating a Request
data RegisterCACertificate Source #
The input to the RegisterCACertificate operation.
See: newRegisterCACertificate smart constructor.
Constructors
| RegisterCACertificate' | |
Fields
| |
Instances
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_registrationConfig :: Lens' RegisterCACertificate (Maybe RegistrationConfig) Source #
Information about the registration configuration.
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.
registerCACertificate_caCertificate :: Lens' RegisterCACertificate Text Source #
The CA certificate.
Destructuring the Response
data RegisterCACertificateResponse Source #
The output from the RegisterCACertificateResponse operation.
See: newRegisterCACertificateResponse smart constructor.
Constructors
| RegisterCACertificateResponse' | |
Fields
| |
Instances
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
registerCACertificateResponse_certificateArn :: Lens' RegisterCACertificateResponse (Maybe Text) Source #
The CA certificate ARN.
registerCACertificateResponse_certificateId :: Lens' RegisterCACertificateResponse (Maybe Text) Source #
The CA certificate identifier.
registerCACertificateResponse_httpStatus :: Lens' RegisterCACertificateResponse Int Source #
The response's http status code.