1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ModifyHsm`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`hsm_arn(impl Into<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::hsm_arn) / [`set_hsm_arn(Option<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::set_hsm_arn):<br>required: **true**<br><p>The ARN of the HSM to modify.</p><br>
    ///   - [`subnet_id(impl Into<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::subnet_id) / [`set_subnet_id(Option<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::set_subnet_id):<br>required: **false**<br><p>The new identifier of the subnet that the HSM is in. The new subnet must be in the same Availability Zone as the current subnet.</p><br>
    ///   - [`eni_ip(impl Into<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::eni_ip) / [`set_eni_ip(Option<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::set_eni_ip):<br>required: **false**<br><p>The new IP address for the elastic network interface (ENI) attached to the HSM.</p> <p>If the HSM is moved to a different subnet, and an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the new subnet.</p><br>
    ///   - [`iam_role_arn(impl Into<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::iam_role_arn) / [`set_iam_role_arn(Option<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::set_iam_role_arn):<br>required: **false**<br><p>The new IAM role ARN.</p><br>
    ///   - [`external_id(impl Into<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::external_id) / [`set_external_id(Option<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::set_external_id):<br>required: **false**<br><p>The new external ID.</p><br>
    ///   - [`syslog_ip(impl Into<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::syslog_ip) / [`set_syslog_ip(Option<String>)`](crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::set_syslog_ip):<br>required: **false**<br><p>The new IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server.</p><br>
    /// - On success, responds with [`ModifyHsmOutput`](crate::operation::modify_hsm::ModifyHsmOutput) with field(s):
    ///   - [`hsm_arn(Option<String>)`](crate::operation::modify_hsm::ModifyHsmOutput::hsm_arn): <p>The ARN of the HSM.</p>
    /// - On failure, responds with [`SdkError<ModifyHsmError>`](crate::operation::modify_hsm::ModifyHsmError)
    #[deprecated(note = "This API is deprecated.")]
    pub fn modify_hsm(&self) -> crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder {
        crate::operation::modify_hsm::builders::ModifyHsmFluentBuilder::new(self.handle.clone())
    }
}