Skip to content

cancel_signing_profile

cancel_signing_profile(
    profile_name: ProfileName, *, config_overrides: Optional[signerClientConfig] = 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/signer.py
def cancel_signing_profile(
    self,
    profile_name: "capo_signer.types.profile_name.ProfileName",
    *,
    config_overrides: Optional[signerClientConfig] = 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.
    """

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

        output, http_response = (
            capo_signer._operations.wallaby_service.cancel_signing_profile.cancel_signing_profile(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output