Renews an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization. ACM applies the rules of its RenewCertificate operation, including which certificates it can renew. For details, see RenewCertificate in the AWS Certificate Manager API Reference. The caller must be the organization's management account or its delegated administrator. The operation acts in the member account and Region that the certificate ARN names. It returns AccessDeniedException in these cases, and, except where noted, the message names the unmet condition: - The caller's account is not in an organization, or the organization is not active in AWS Certificate Manager. - The caller is neither the management account nor the delegated administrator. - The certificate is in the caller's own account. Call the ACM operation in that account instead. - The organization has no certificate inventory configuration. - Certificate actions for organizations are turned off. Certificate actions are the operations that act on certificates and certificate authorities in member accounts. Turn them on with LifecycleManagement in PutInventoryConfiguration. - The certificate's Region is outside the RegionalScope of the configuration. - The certificate's account is not an active member of the organization, or is outside the AccountScope of the configuration. - The Regions enabled for the certificate's account are not recorded yet. - AWS Certificate Manager is not authorized to act in the certificate's account, because the account is not in the organization or access setup there has not finished. If member operations are not available in the Region you call, the operation returns AccessDeniedException with the message Unauthorized, before any of the checks above. An ARN that is malformed, does not name an ACM certificate, is in another partition, or names an unknown Region also returns AccessDeniedException with the message Unauthorized. A call outside the organization's home Region returns ResourceNotFoundException, and the message names the home Region. A certificate ARN whose Region is not enabled for its account, or where ACM is not available, returns ValidationException. A certificate ARN that is too long for the operation to act on, even within the length limit of CertificateArn, also returns ValidationException. Errors that ACM returns in the member account are returned as these errors: - ResourceNotFoundException: ACM did not find the certificate. - ConflictException: ACM reports a conflict, such as a certificate state that does not allow the change. - ValidationException: ACM rejects the request, or reports that a quota is reached. - ThrottlingException: ACM throttles the call. Any other error returns InternalServerException.
Parameters:
Raises:
-
AccessDeniedException
–
You do not have access required to perform this action.
-
ConflictException
–
You are trying to update a resource or configuration that is already being created or updated. Wait for the previous operation to finish and try again.
-
InternalServerException
–
The request processing has failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException
–
The specified certificate cannot be found in the caller's account or the caller's account cannot be found.
-
ThrottlingException
–
The request was denied because it exceeded a quota.
-
ValidationException
–
The supplied input failed to satisfy constraints of an Amazon Web Services service.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Examples:
Renew a certificate in a member account
The delegated administrator renews a certificate that account 444455556666 holds in us-west-2.
>>> client.renew_member_certificate(certificate_arn='arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222')
Renew a certificate that does not exist
ACM in the member account has no certificate with this ARN.
>>> client.renew_member_certificate(certificate_arn='arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222')
Source code in docs_src/capo_acm/_services/acm.py
| def renew_member_certificate(
self,
certificate_arn: "capo_acm.types.member_certificate_arn.MemberCertificateArn",
*,
config_overrides: Optional[ACMClientConfig] = None,
) -> "capo_acm.types.renew_member_certificate_output.RenewMemberCertificateOutput":
"""Renews an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization. ACM applies the rules of its RenewCertificate operation, including which certificates it can renew. For details, see RenewCertificate in the AWS Certificate Manager API Reference. The caller must be the organization's management account or its delegated administrator. The operation acts in the member account and Region that the certificate ARN names. It returns AccessDeniedException in these cases, and, except where noted, the message names the unmet condition: - The caller's account is not in an organization, or the organization is not active in AWS Certificate Manager. - The caller is neither the management account nor the delegated administrator. - The certificate is in the caller's own account. Call the ACM operation in that account instead. - The organization has no certificate inventory configuration. - Certificate actions for organizations are turned off. Certificate actions are the operations that act on certificates and certificate authorities in member accounts. Turn them on with LifecycleManagement in PutInventoryConfiguration. - The certificate's Region is outside the RegionalScope of the configuration. - The certificate's account is not an active member of the organization, or is outside the AccountScope of the configuration. - The Regions enabled for the certificate's account are not recorded yet. - AWS Certificate Manager is not authorized to act in the certificate's account, because the account is not in the organization or access setup there has not finished. If member operations are not available in the Region you call, the operation returns AccessDeniedException with the message Unauthorized, before any of the checks above. An ARN that is malformed, does not name an ACM certificate, is in another partition, or names an unknown Region also returns AccessDeniedException with the message Unauthorized. A call outside the organization's home Region returns ResourceNotFoundException, and the message names the home Region. A certificate ARN whose Region is not enabled for its account, or where ACM is not available, returns ValidationException. A certificate ARN that is too long for the operation to act on, even within the length limit of CertificateArn, also returns ValidationException. Errors that ACM returns in the member account are returned as these errors: - ResourceNotFoundException: ACM did not find the certificate. - ConflictException: ACM reports a conflict, such as a certificate state that does not allow the change. - ValidationException: ACM rejects the request, or reports that a quota is reached. - ThrottlingException: ACM throttles the call. Any other error returns InternalServerException.
Args:
certificate_arn: The ARN of the certificate to renew.
Raises:
capo_acm.errors.access_denied_exception.AccessDeniedException: <p>You do not have access required to perform this action.</p>
capo_acm.errors.conflict_exception.ConflictException: <p>You are trying to update a resource or configuration that is already being created or updated. Wait for the previous operation to finish and try again.</p>
capo_acm.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure.</p>
capo_acm.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified certificate cannot be found in the caller's account or the caller's account cannot be found.</p>
capo_acm.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded a quota.</p>
capo_acm.errors.validation_exception.ValidationException: <p>The supplied input failed to satisfy constraints of an Amazon Web Services service.</p>
capo_acm.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Renew a certificate in a member account
The delegated administrator renews a certificate that account 444455556666 holds in us-west-2.
>>> client.renew_member_certificate(certificate_arn='arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222')
Renew a certificate that does not exist
ACM in the member account has no certificate with this ARN.
>>> client.renew_member_certificate(certificate_arn='arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222')
"""
def _handler(
req: "OperationRequest[capo_acm.types.renew_member_certificate_input.RenewMemberCertificateInput]",
) -> OperationResponse[
"capo_acm.types.renew_member_certificate_output.RenewMemberCertificateOutput"
]:
import capo_acm._operations.certificate_manager.renew_member_certificate
output, http_response = (
capo_acm._operations.certificate_manager.renew_member_certificate.renew_member_certificate(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("RenewMemberCertificate")
)
input_: capo_acm.types.renew_member_certificate_input.RenewMemberCertificateInput = {
"certificate_arn": certificate_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|