aws_sdk_globalaccelerator/client/update_custom_routing_accelerator.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 [`UpdateCustomRoutingAccelerator`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`accelerator_arn(impl Into<String>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::accelerator_arn) / [`set_accelerator_arn(Option<String>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::set_accelerator_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the accelerator to update.</p><br>
7 /// - [`name(impl Into<String>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::set_name):<br>required: **false**<br><p>The name of the accelerator. The name can have a maximum of 64 characters, must contain only alphanumeric characters, periods (.), or hyphens (-), and must not begin or end with a hyphen or period.</p><br>
8 /// - [`ip_address_type(IpAddressType)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::ip_address_type) / [`set_ip_address_type(Option<IpAddressType>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::set_ip_address_type):<br>required: **false**<br><p>The IP address type that an accelerator supports. For a custom routing accelerator, the value must be IPV4.</p><br>
9 /// - [`ip_addresses(impl Into<String>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::ip_addresses) / [`set_ip_addresses(Option<Vec::<String>>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::set_ip_addresses):<br>required: **false**<br><p>The IP addresses for an accelerator.</p><br>
10 /// - [`enabled(bool)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::enabled) / [`set_enabled(Option<bool>)`](crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::set_enabled):<br>required: **false**<br><p>Indicates whether an accelerator is enabled. The value is true or false. The default value is true.</p> <p>If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.</p><br>
11 /// - On success, responds with [`UpdateCustomRoutingAcceleratorOutput`](crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorOutput) with field(s):
12 /// - [`accelerator(Option<CustomRoutingAccelerator>)`](crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorOutput::accelerator): <p>Information about the updated custom routing accelerator.</p>
13 /// - On failure, responds with [`SdkError<UpdateCustomRoutingAcceleratorError>`](crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError)
14 pub fn update_custom_routing_accelerator(
15 &self,
16 ) -> crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder {
17 crate::operation::update_custom_routing_accelerator::builders::UpdateCustomRoutingAcceleratorFluentBuilder::new(self.handle.clone())
18 }
19}