aws_sdk_cloudhsm/client/delete_hsm.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DeleteHsm`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`hsm_arn(impl Into<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::hsm_arn) / [`set_hsm_arn(Option<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::set_hsm_arn):<br>required: **true**<br><p>The ARN of the HSM to delete.</p><br>
7 /// - On success, responds with [`DeleteHsmOutput`](crate::operation::delete_hsm::DeleteHsmOutput) with field(s):
8 /// - [`status(String)`](crate::operation::delete_hsm::DeleteHsmOutput::status): <p>The status of the operation.</p>
9 /// - On failure, responds with [`SdkError<DeleteHsmError>`](crate::operation::delete_hsm::DeleteHsmError)
10 #[deprecated(note = "This API is deprecated.")]
11 pub fn delete_hsm(&self) -> crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder {
12 crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::new(self.handle.clone())
13 }
14}