Struct aws_sdk_globalaccelerator::operation::update_accelerator::builders::UpdateAcceleratorFluentBuilder
source · pub struct UpdateAcceleratorFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateAccelerator
.
Update an accelerator to make changes, such as the following:
-
Change the name of the accelerator.
-
Disable the accelerator so that it no longer accepts or routes traffic, or so that you can delete it.
-
Enable the accelerator, if it is disabled.
-
Change the IP address type to dual-stack if it is IPv4, or change the IP address type to IPv4 if it's dual-stack.
Be aware that static IP addresses remain assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete the accelerator, you lose the static IP addresses that are assigned to it, so you can no longer route traffic by using them.
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on Amazon Web Services CLI commands.
Implementations§
source§impl UpdateAcceleratorFluentBuilder
impl UpdateAcceleratorFluentBuilder
sourcepub fn as_input(&self) -> &UpdateAcceleratorInputBuilder
pub fn as_input(&self) -> &UpdateAcceleratorInputBuilder
Access the UpdateAccelerator as a reference.
sourcepub async fn send(
self
) -> Result<UpdateAcceleratorOutput, SdkError<UpdateAcceleratorError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateAcceleratorOutput, SdkError<UpdateAcceleratorError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateAcceleratorOutput, UpdateAcceleratorError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateAcceleratorOutput, UpdateAcceleratorError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn accelerator_arn(self, input: impl Into<String>) -> Self
pub fn accelerator_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the accelerator to update.
sourcepub fn set_accelerator_arn(self, input: Option<String>) -> Self
pub fn set_accelerator_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the accelerator to update.
sourcepub fn get_accelerator_arn(&self) -> &Option<String>
pub fn get_accelerator_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the accelerator to update.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
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.
sourcepub fn ip_address_type(self, input: IpAddressType) -> Self
pub fn ip_address_type(self, input: IpAddressType) -> Self
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
sourcepub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
pub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
sourcepub fn get_ip_address_type(&self) -> &Option<IpAddressType>
pub fn get_ip_address_type(&self) -> &Option<IpAddressType>
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
Trait Implementations§
source§impl Clone for UpdateAcceleratorFluentBuilder
impl Clone for UpdateAcceleratorFluentBuilder
source§fn clone(&self) -> UpdateAcceleratorFluentBuilder
fn clone(&self) -> UpdateAcceleratorFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more