Skip to content

cancel_signing_profile async

cancel_signing_profile(
    profile_name: ProfileName,
    *,
    config_overrides: Optional[AsyncsignerClientConfig] = None,
) -> None

Changes the state of an ACTIVE signing profile to CANCELED. A canceled profile is still viewable with the ListSigningProfiles operation, but it cannot perform new signing jobs. See Data Retention for more information on scheduled deletion of a canceled signing profile.

Parameters:

  • profile_name (ProfileName) –

    The name of the signing profile to be canceled.

Raises:

Source code in docs_src/capo_signer/_services/async_signer.py
async def cancel_signing_profile(
    self,
    profile_name: "capo_signer.types.profile_name.ProfileName",
    *,
    config_overrides: Optional[AsyncsignerClientConfig] = None,
) -> None:
    """<p>Changes the state of an <code>ACTIVE</code> signing profile to <code>CANCELED</code>. A canceled profile is still viewable with the <code>ListSigningProfiles</code> operation, but it cannot perform new signing jobs. See <a href="https://docs.aws.amazon.com/signer/latest/developerguide/retention.html">Data Retention</a> for more information on scheduled deletion of a canceled signing profile.</p>

    Args:
        profile_name: <p>The name of the signing profile to be canceled.</p>

    Raises:
        capo_signer.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_signer.errors.internal_service_error_exception.InternalServiceErrorException: <p>An internal error occurred.</p>
        capo_signer.errors.resource_not_found_exception.ResourceNotFoundException: <p>A specified resource could not be found.</p>
        capo_signer.errors.too_many_requests_exception.TooManyRequestsException: <p>The allowed number of job-signing requests has been exceeded.</p> <p>This error supersedes the error <code>ThrottlingException</code>.</p>
        capo_signer.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_signer.types.cancel_signing_profile_request.CancelSigningProfileRequest]",
    ) -> AsyncOperationResponse[None]:
        import capo_signer._operations.wallaby_service.cancel_signing_profile

        (
            output,
            http_response,
        ) = await capo_signer._operations.wallaby_service.cancel_signing_profile.async_cancel_signing_profile(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CancelSigningProfile")
    )
    input_: capo_signer.types.cancel_signing_profile_request.CancelSigningProfileRequest = {
        "profile_name": profile_name
    }

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