register_ca_certificate
¶
register_ca_certificate(
ca_certificate: CertificatePem,
*,
config_overrides: Optional[IoTClientConfig] = None,
verification_certificate: Optional[CertificatePem] = None,
set_as_active: Optional[SetAsActive] = None,
allow_auto_registration: Optional[AllowAutoRegistration] = None,
registration_config: Optional[RegistrationConfig] = None,
tags: Optional[TagList] = None,
certificate_mode: Optional[CertificateMode] = None,
) -> RegisterCACertificateResponse
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.
Parameters:
-
ca_certificate(CertificatePem) –The CA certificate.
-
verification_certificate(Optional[CertificatePem], default:None) –The private key verification certificate. If
certificateModeisSNI_ONLY, theverificationCertificatefield must be empty. IfcertificateModeisDEFAULTor not provided, theverificationCertificatefield must not be empty. -
set_as_active(Optional[SetAsActive], default:None) –A boolean value that specifies if the CA certificate is set to active.
Valid values:
ACTIVE | INACTIVE -
allow_auto_registration(Optional[AllowAutoRegistration], default:None) –Allows this CA certificate to be used for auto registration of device certificates.
-
registration_config(Optional[RegistrationConfig], default:None) –Information about the registration configuration.
-
tags(Optional[TagList], default:None) –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..."
-
certificate_mode(Optional[CertificateMode], default:None) –Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the
verificationCertificatefield is not provided, setcertificateModeto beSNI_ONLY. If theverificationCertificatefield is provided, setcertificateModeto beDEFAULT. WhencertificateModeis not provided, it defaults toDEFAULT. 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.
Raises:
-
CertificateValidationException–The certificate is invalid.
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
RegistrationCodeValidationException–The registration code is invalid.
-
ResourceAlreadyExistsException–The resource already exists.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 | |