aws_sdk_cloudhsmv2/client/create_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 [`CreateHsm`](crate::operation::create_hsm::builders::CreateHsmFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`cluster_id(impl Into<String>)`](crate::operation::create_hsm::builders::CreateHsmFluentBuilder::cluster_id) / [`set_cluster_id(Option<String>)`](crate::operation::create_hsm::builders::CreateHsmFluentBuilder::set_cluster_id):<br>required: **true**<br><p>The identifier (ID) of the HSM's cluster. To find the cluster ID, use <code>DescribeClusters</code>.</p><br>
7 /// - [`availability_zone(impl Into<String>)`](crate::operation::create_hsm::builders::CreateHsmFluentBuilder::availability_zone) / [`set_availability_zone(Option<String>)`](crate::operation::create_hsm::builders::CreateHsmFluentBuilder::set_availability_zone):<br>required: **true**<br><p>The Availability Zone where you are creating the HSM. To find the cluster's Availability Zones, use <code>DescribeClusters</code>.</p><br>
8 /// - [`ip_address(impl Into<String>)`](crate::operation::create_hsm::builders::CreateHsmFluentBuilder::ip_address) / [`set_ip_address(Option<String>)`](crate::operation::create_hsm::builders::CreateHsmFluentBuilder::set_ip_address):<br>required: **false**<br><p>The HSM's IP address. If you specify an IP address, use an available address from the subnet that maps to the Availability Zone where you are creating the HSM. If you don't specify an IP address, one is chosen for you from that subnet.</p><br>
9 /// - On success, responds with [`CreateHsmOutput`](crate::operation::create_hsm::CreateHsmOutput) with field(s):
10 /// - [`hsm(Option<Hsm>)`](crate::operation::create_hsm::CreateHsmOutput::hsm): <p>Information about the HSM that was created.</p>
11 /// - On failure, responds with [`SdkError<CreateHsmError>`](crate::operation::create_hsm::CreateHsmError)
12 pub fn create_hsm(&self) -> crate::operation::create_hsm::builders::CreateHsmFluentBuilder {
13 crate::operation::create_hsm::builders::CreateHsmFluentBuilder::new(self.handle.clone())
14 }
15}