register_certificate
async
¶
register_certificate(
certificate_pem: CertificatePem,
*,
config_overrides: Optional[AsyncIoTClientConfig] = 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/async_io_t.py
15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 | |