aws_sdk_ec2/client/modify_instance_network_performance_options.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 [`ModifyInstanceNetworkPerformanceOptions`](crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`ModifyInstanceNetworkPerformanceOptionsOutput`](crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsOutput) with field(s):
10 /// - [`instance_id(Option<String>)`](crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsOutput::instance_id): <p>The instance ID that was updated.</p>
11 /// - [`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>
12 /// - On failure, responds with [`SdkError<ModifyInstanceNetworkPerformanceOptionsError>`](crate::operation::modify_instance_network_performance_options::ModifyInstanceNetworkPerformanceOptionsError)
13 pub fn modify_instance_network_performance_options(
14 &self,
15 ) -> crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder {
16 crate::operation::modify_instance_network_performance_options::builders::ModifyInstanceNetworkPerformanceOptionsFluentBuilder::new(
17 self.handle.clone(),
18 )
19 }
20}