Skip to content

update_acme_endpoint async

update_acme_endpoint(
    acme_endpoint_arn: AcmeEndpointArn,
    *,
    config_overrides: Optional[AsyncACMClientConfig] = None,
    authorization_behavior: Optional[AcmeAuthorizationBehavior] = None,
    contact: Optional[AcmeContact] = None,
    certificate_authority: Optional[CertificateAuthority] = None,
) -> None

Updates the configuration of an existing ACME endpoint. You can change the authorization behavior, contact requirement, or certificate authority settings.

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.

Source code in docs_src/capo_acm/_services/async_acm.py
async def update_acme_endpoint(
    self,
    acme_endpoint_arn: "capo_acm.types.acme_endpoint_arn.AcmeEndpointArn",
    *,
    config_overrides: Optional[AsyncACMClientConfig] = None,
    authorization_behavior: Optional[
        "capo_acm.types.acme_authorization_behavior.AcmeAuthorizationBehavior"
    ] = None,
    contact: Optional["capo_acm.types.acme_contact.AcmeContact"] = None,
    certificate_authority: Optional[
        "capo_acm.types.certificate_authority.CertificateAuthority"
    ] = None,
) -> None:
    """<p>Updates the configuration of an existing ACME endpoint. You can change the authorization behavior, contact requirement, or certificate authority settings.</p>

    Args:
        acme_endpoint_arn: <p>The Amazon Resource Name (ARN) of the ACME endpoint to update.</p>
        authorization_behavior: <p>The updated authorization behavior.</p>
        contact: <p>The updated contact requirement.</p>
        certificate_authority: <p>The updated certificate authority configuration.</p>

    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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_acm.types.update_acme_endpoint_request.UpdateAcmeEndpointRequest]",
    ) -> AsyncOperationResponse[None]:
        import capo_acm._operations.certificate_manager.update_acme_endpoint

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateAcmeEndpoint")
    )
    input_: capo_acm.types.update_acme_endpoint_request.UpdateAcmeEndpointRequest = {
        "acme_endpoint_arn": acme_endpoint_arn
    }
    if authorization_behavior is not None:
        input_["authorization_behavior"] = authorization_behavior
    if contact is not None:
        input_["contact"] = contact
    if certificate_authority is not None:
        input_["certificate_authority"] = certificate_authority

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