Skip to content

delete_hsm_client_certificate

delete_hsm_client_certificate(
    *,
    config_overrides: Optional[RedshiftClientConfig] = None,
    hsm_client_certificate_identifier: Optional[String] = None,
) -> None

Deletes the specified HSM client certificate.

Parameters:

  • hsm_client_certificate_identifier (Optional[String], default: None ) –

    The identifier of the HSM client certificate to be deleted.

Raises:

Source code in docs_src/capo_redshift/_services/redshift.py
def delete_hsm_client_certificate(
    self,
    *,
    config_overrides: Optional[RedshiftClientConfig] = None,
    hsm_client_certificate_identifier: Optional[
        "capo_redshift.types.string.String"
    ] = None,
) -> None:
    """<p>Deletes the specified HSM client certificate.</p>

    Args:
        hsm_client_certificate_identifier: <p>The identifier of the HSM client certificate to be deleted.</p>

    Raises:
        capo_redshift.errors.hsm_client_certificate_not_found_fault.HsmClientCertificateNotFoundFault: <p>There is no Amazon Redshift HSM client certificate with the specified identifier.</p>
        capo_redshift.errors.invalid_hsm_client_certificate_state_fault.InvalidHsmClientCertificateStateFault: <p>The specified HSM client certificate is not in the <code>available</code> state, or it is still in use by one or more Amazon Redshift clusters.</p>
        capo_redshift.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_redshift.types.delete_hsm_client_certificate_message.DeleteHsmClientCertificateMessage]",
    ) -> OperationResponse[None]:
        import capo_redshift._operations.redshift_service_version20121201.delete_hsm_client_certificate

        output, http_response = (
            capo_redshift._operations.redshift_service_version20121201.delete_hsm_client_certificate.delete_hsm_client_certificate(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteHsmClientCertificate")
    )
    input_: capo_redshift.types.delete_hsm_client_certificate_message.DeleteHsmClientCertificateMessage = {}
    if hsm_client_certificate_identifier is not None:
        input_["hsm_client_certificate_identifier"] = (
            hsm_client_certificate_identifier
        )

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output