1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeHsm`](crate::operation::describe_hsm::builders::DescribeHsmFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`hsm_arn(impl Into<String>)`](crate::operation::describe_hsm::builders::DescribeHsmFluentBuilder::hsm_arn) / [`set_hsm_arn(Option<String>)`](crate::operation::describe_hsm::builders::DescribeHsmFluentBuilder::set_hsm_arn):<br>required: **false**<br><p>The ARN of the HSM. Either the <code>HsmArn</code> or the <code>SerialNumber</code> parameter must be specified.</p><br>
    ///   - [`hsm_serial_number(impl Into<String>)`](crate::operation::describe_hsm::builders::DescribeHsmFluentBuilder::hsm_serial_number) / [`set_hsm_serial_number(Option<String>)`](crate::operation::describe_hsm::builders::DescribeHsmFluentBuilder::set_hsm_serial_number):<br>required: **false**<br><p>The serial number of the HSM. Either the <code>HsmArn</code> or the <code>HsmSerialNumber</code> parameter must be specified.</p><br>
    /// - On success, responds with [`DescribeHsmOutput`](crate::operation::describe_hsm::DescribeHsmOutput) with field(s):
    ///   - [`hsm_arn(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::hsm_arn): <p>The ARN of the HSM.</p>
    ///   - [`status(Option<HsmStatus>)`](crate::operation::describe_hsm::DescribeHsmOutput::status): <p>The status of the HSM.</p>
    ///   - [`status_details(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::status_details): <p>Contains additional information about the status of the HSM.</p>
    ///   - [`availability_zone(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::availability_zone): <p>The Availability Zone that the HSM is in.</p>
    ///   - [`eni_id(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::eni_id): <p>The identifier of the elastic network interface (ENI) attached to the HSM.</p>
    ///   - [`eni_ip(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::eni_ip): <p>The IP address assigned to the HSM's ENI.</p>
    ///   - [`subscription_type(Option<SubscriptionType>)`](crate::operation::describe_hsm::DescribeHsmOutput::subscription_type): <p>Specifies the type of subscription for the HSM.</p> <ul>  <li>   <p><b>PRODUCTION</b> - The HSM is being used in a production environment.</p></li>  <li>   <p><b>TRIAL</b> - The HSM is being used in a product trial.</p></li> </ul>
    ///   - [`subscription_start_date(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::subscription_start_date): <p>The subscription start date.</p>
    ///   - [`subscription_end_date(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::subscription_end_date): <p>The subscription end date.</p>
    ///   - [`vpc_id(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::vpc_id): <p>The identifier of the VPC that the HSM is in.</p>
    ///   - [`subnet_id(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::subnet_id): <p>The identifier of the subnet that the HSM is in.</p>
    ///   - [`iam_role_arn(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::iam_role_arn): <p>The ARN of the IAM role assigned to the HSM.</p>
    ///   - [`serial_number(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::serial_number): <p>The serial number of the HSM.</p>
    ///   - [`vendor_name(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::vendor_name): <p>The name of the HSM vendor.</p>
    ///   - [`hsm_type(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::hsm_type): <p>The HSM model type.</p>
    ///   - [`software_version(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::software_version): <p>The HSM software version.</p>
    ///   - [`ssh_public_key(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::ssh_public_key): <p>The public SSH key.</p>
    ///   - [`ssh_key_last_updated(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::ssh_key_last_updated): <p>The date and time that the SSH key was last updated.</p>
    ///   - [`server_cert_uri(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::server_cert_uri): <p>The URI of the certificate server.</p>
    ///   - [`server_cert_last_updated(Option<String>)`](crate::operation::describe_hsm::DescribeHsmOutput::server_cert_last_updated): <p>The date and time that the server certificate was last updated.</p>
    ///   - [`partitions(Option<Vec::<String>>)`](crate::operation::describe_hsm::DescribeHsmOutput::partitions): <p>The list of partitions on the HSM.</p>
    /// - On failure, responds with [`SdkError<DescribeHsmError>`](crate::operation::describe_hsm::DescribeHsmError)
    #[deprecated(note = "This API is deprecated.")]
    pub fn describe_hsm(&self) -> crate::operation::describe_hsm::builders::DescribeHsmFluentBuilder {
        crate::operation::describe_hsm::builders::DescribeHsmFluentBuilder::new(self.handle.clone())
    }
}