delete_hsm_client_certificate(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = 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/async_redshift.py
| async def delete_hsm_client_certificate(
self,
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_redshift.types.delete_hsm_client_certificate_message.DeleteHsmClientCertificateMessage]",
) -> AsyncOperationResponse[None]:
import capo_redshift._operations.redshift_service_version20121201.delete_hsm_client_certificate
(
output,
http_response,
) = await capo_redshift._operations.redshift_service_version20121201.delete_hsm_client_certificate.async_delete_hsm_client_certificate(
req.options, req.input
)
return AsyncOperationResponse(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 = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|