aws_sdk_cloudhsmv2/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 /// - [`cluster_id(impl Into<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::set_cluster_id):<br>required: **true**<br><p>The identifier (ID) of the cluster that contains the HSM that you are deleting.</p><br>
7 /// - [`hsm_id(impl Into<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::hsm_id) / [`set_hsm_id(Option<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::set_hsm_id):<br>required: **false**<br><p>The identifier (ID) of the HSM that you are deleting.</p><br>
8 /// - [`eni_id(impl Into<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::eni_id) / [`set_eni_id(Option<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::set_eni_id):<br>required: **false**<br><p>The identifier (ID) of the elastic network interface (ENI) of the HSM that you are deleting.</p><br>
9 /// - [`eni_ip(impl Into<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::eni_ip) / [`set_eni_ip(Option<String>)`](crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::set_eni_ip):<br>required: **false**<br><p>The IP address of the elastic network interface (ENI) of the HSM that you are deleting.</p><br>
10 /// - On success, responds with [`DeleteHsmOutput`](crate::operation::delete_hsm::DeleteHsmOutput) with field(s):
11 /// - [`hsm_id(Option<String>)`](crate::operation::delete_hsm::DeleteHsmOutput::hsm_id): <p>The identifier (ID) of the HSM that was deleted.</p>
12 /// - On failure, responds with [`SdkError<DeleteHsmError>`](crate::operation::delete_hsm::DeleteHsmError)
13 pub fn delete_hsm(&self) -> crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder {
14 crate::operation::delete_hsm::builders::DeleteHsmFluentBuilder::new(self.handle.clone())
15 }
16}