aws_sdk_ec2/client/
modify_instance_network_performance_options.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ModifyInstanceNetworkPerformanceOptions`](crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder::set_instance_id):<br>required: **true**<br><p>The ID of the instance to update.</p><br>
    ///   - [`bandwidth_weighting(InstanceBandwidthWeighting)`](crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder::bandwidth_weighting) / [`set_bandwidth_weighting(Option<InstanceBandwidthWeighting>)`](crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder::set_bandwidth_weighting):<br>required: **true**<br><p>Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows:</p> <dl>  <dt>   default  </dt>  <dd>   <p>This option uses the standard bandwidth configuration for your instance type.</p>  </dd>  <dt>   vpc-1  </dt>  <dd>   <p>This option boosts your networking baseline bandwidth and reduces your EBS baseline bandwidth.</p>  </dd>  <dt>   ebs-1  </dt>  <dd>   <p>This option boosts your EBS baseline bandwidth and reduces your networking baseline bandwidth.</p>  </dd> </dl><br>
    ///   - [`dry_run(bool)`](crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
    /// - On success, responds with [`ModifyInstanceNetworkPerformanceOptionsOutput`](crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsOutput) with field(s):
    ///   - [`instance_id(Option<String>)`](crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsOutput::instance_id): <p>The instance ID that was updated.</p>
    ///   - [`bandwidth_weighting(Option<InstanceBandwidthWeighting>)`](crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsOutput::bandwidth_weighting): <p>Contains the updated configuration for bandwidth weighting on the specified instance.</p>
    /// - On failure, responds with [`SdkError<ModifyInstanceNetworkPerformanceOptionsError>`](crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError)
    pub fn modify_instance_network_performance_options(
        &self,
    ) -> crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder {
        crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder::new(
            self.handle.clone(),
        )
    }
}