register_certificate
¶
register_certificate(
certificate_pem: CertificatePem,
*,
config_overrides: Optional[IoTClientConfig] = None,
ca_certificate_pem: Optional[CertificatePem] = None,
set_as_active: Optional[SetAsActiveFlag] = None,
status: Optional[CertificateStatus] = None,
) -> RegisterCertificateResponse
Registers a device certificate with IoT in the same certificate mode as the signing CA. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.
Requires permission to access the RegisterCertificate action.
Parameters:
-
certificate_pem(CertificatePem) –The certificate data, in PEM format.
-
ca_certificate_pem(Optional[CertificatePem], default:None) –The CA certificate used to sign the device certificate being registered.
-
set_as_active(Optional[SetAsActiveFlag], default:None) –A boolean value that specifies if the certificate is set to active.
Valid values:
ACTIVE | INACTIVE -
status(Optional[CertificateStatus], default:None) –The status of the register certificate request. Valid values that you can use include
ACTIVE,INACTIVE, andREVOKED.
Raises:
-
CertificateConflictException–Unable to verify the CA certificate used to sign the device certificate you are attempting to register. This is happens when you have registered more than one CA certificate that has the same subject field and public key.
-
CertificateStateException–The certificate operation is not allowed.
-
CertificateValidationException–The certificate is invalid.
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceAlreadyExistsException–The resource already exists.
-
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
15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 | |