Skip to content

update_member_certificate_authority async

update_member_certificate_authority(
    certificate_authority_arn: MemberCertificateAuthorityArn,
    *,
    config_overrides: Optional[AsyncACMClientConfig] = None,
    status: Optional[PrivateCaCertificateAuthorityStatus] = None,
    revocation_configuration: Optional[PrivateCaRevocationConfiguration] = None,
) -> UpdateMemberCertificateAuthorityOutput

Updates the status or the revocation configuration of a private certificate authority (CA) in a member account of the caller's organization. AWS Private Certificate Authority (AWS Private CA) applies the rules of its UpdateCertificateAuthority operation, including which status changes and revocation settings it accepts. For details, see UpdateCertificateAuthority in the AWS Private CA API Reference. A parameter you omit is not sent to AWS Private CA, so that setting is unchanged. AWS Private CA writes CRLs to the Amazon S3 bucket named by S3BucketName in its own CrlConfiguration, which you set with AWS Private CA in the member account. 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 authority 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 authority is in the caller's own account. Call the AWS Private CA 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 authority's Region is outside the RegionalScope of the configuration. - The certificate authority's account is not an active member of the organization, or is outside the AccountScope of the configuration. - The Regions enabled for the certificate authority's account are not recorded yet. - AWS Certificate Manager is not authorized to act in the certificate authority'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 AWS Private CA certificate authority, 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 authority ARN whose Region is not enabled for its account, or where AWS Private CA is not available, returns ValidationException. A certificate authority ARN that is too long for the operation to act on, even within the length limit of CertificateAuthorityArn, also returns ValidationException. Errors that AWS Private CA returns in the member account are returned as these errors: - ResourceNotFoundException: AWS Private CA did not find the certificate authority. - ConflictException: AWS Private CA reports a conflict, such as a certificate authority state that does not allow the change. - ValidationException: AWS Private CA rejects the request, or reports that a quota is reached. - ThrottlingException: AWS Private CA throttles the call. Any other error returns InternalServerException.

Parameters:

  • certificate_authority_arn (MemberCertificateAuthorityArn) –

    The ARN of the certificate authority to update.

  • status (Optional[PrivateCaCertificateAuthorityStatus], default: None ) –

    The status to set. If you omit it, the status is unchanged. AWS Private Certificate Authority (AWS Private CA) decides which values it accepts; see UpdateCertificateAuthority in the AWS Private CA API Reference.

  • revocation_configuration (Optional[PrivateCaRevocationConfiguration], default: None ) –

    The revocation configuration to set. If you omit it, the configuration is unchanged.

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:

Disable a certificate authority in a member account The delegated administrator stops the certificate authority in account 444455556666 from issuing certificates.

>>> await client.update_member_certificate_authority(certificate_authority_arn='arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012', status='DISABLED')
Update a certificate authority that does not exist
AWS Private CA in the member account has no certificate authority with this ARN.
>>> await client.update_member_certificate_authority(certificate_authority_arn='arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012', revocation_configuration={'OcspConfiguration': {'Enabled': True}})
Source code in docs_src/capo_acm/_services/async_acm.py
async def update_member_certificate_authority(
    self,
    certificate_authority_arn: "capo_acm.types.member_certificate_authority_arn.MemberCertificateAuthorityArn",
    *,
    config_overrides: Optional[AsyncACMClientConfig] = None,
    status: Optional[
        "capo_acm.types.private_ca_certificate_authority_status.PrivateCaCertificateAuthorityStatus"
    ] = None,
    revocation_configuration: Optional[
        "capo_acm.types.private_ca_revocation_configuration.PrivateCaRevocationConfiguration"
    ] = None,
) -> "capo_acm.types.update_member_certificate_authority_output.UpdateMemberCertificateAuthorityOutput":
    """Updates the status or the revocation configuration of a private certificate authority (CA) in a member account of the caller's organization. AWS Private Certificate Authority (AWS Private CA) applies the rules of its UpdateCertificateAuthority operation, including which status changes and revocation settings it accepts. For details, see UpdateCertificateAuthority in the AWS Private CA API Reference. A parameter you omit is not sent to AWS Private CA, so that setting is unchanged. AWS Private CA writes CRLs to the Amazon S3 bucket named by S3BucketName in its own CrlConfiguration, which you set with AWS Private CA in the member account. 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 authority 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 authority is in the caller's own account. Call the AWS Private CA 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 authority's Region is outside the RegionalScope of the configuration. - The certificate authority's account is not an active member of the organization, or is outside the AccountScope of the configuration. - The Regions enabled for the certificate authority's account are not recorded yet. - AWS Certificate Manager is not authorized to act in the certificate authority'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 AWS Private CA certificate authority, 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 authority ARN whose Region is not enabled for its account, or where AWS Private CA is not available, returns ValidationException. A certificate authority ARN that is too long for the operation to act on, even within the length limit of CertificateAuthorityArn, also returns ValidationException. Errors that AWS Private CA returns in the member account are returned as these errors: - ResourceNotFoundException: AWS Private CA did not find the certificate authority. - ConflictException: AWS Private CA reports a conflict, such as a certificate authority state that does not allow the change. - ValidationException: AWS Private CA rejects the request, or reports that a quota is reached. - ThrottlingException: AWS Private CA throttles the call. Any other error returns InternalServerException.

    Args:
        certificate_authority_arn: The ARN of the certificate authority to update.
        status: The status to set. If you omit it, the status is unchanged. AWS Private Certificate Authority (AWS Private CA) decides which values it accepts; see UpdateCertificateAuthority in the AWS Private CA API Reference.
        revocation_configuration: The revocation configuration to set. If you omit it, the configuration is unchanged.

    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:
        Disable a certificate authority in a member account
        The delegated administrator stops the certificate authority in account 444455556666 from issuing certificates.

        >>> await client.update_member_certificate_authority(certificate_authority_arn='arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012', status='DISABLED')
        Update a certificate authority that does not exist
        AWS Private CA in the member account has no certificate authority with this ARN.

        >>> await client.update_member_certificate_authority(certificate_authority_arn='arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012', revocation_configuration={'OcspConfiguration': {'Enabled': True}})
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_acm.types.update_member_certificate_authority_input.UpdateMemberCertificateAuthorityInput]",
    ) -> AsyncOperationResponse[
        "capo_acm.types.update_member_certificate_authority_output.UpdateMemberCertificateAuthorityOutput"
    ]:
        import capo_acm._operations.certificate_manager.update_member_certificate_authority

        (
            output,
            http_response,
        ) = await capo_acm._operations.certificate_manager.update_member_certificate_authority.async_update_member_certificate_authority(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateMemberCertificateAuthority")
    )
    input_: capo_acm.types.update_member_certificate_authority_input.UpdateMemberCertificateAuthorityInput = {
        "certificate_authority_arn": certificate_authority_arn
    }
    if status is not None:
        input_["status"] = status
    if revocation_configuration is not None:
        input_["revocation_configuration"] = revocation_configuration

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output