#[non_exhaustive]pub struct CreateAcceleratorInput {
pub name: Option<String>,
pub ip_address_type: Option<IpAddressType>,
pub ip_addresses: Option<Vec<String>>,
pub enabled: Option<bool>,
pub idempotency_token: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: 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.
ip_address_type: Option<IpAddressType>
The IP address type that an accelerator supports. For a standard accelerator, the value can be IPV4 or DUAL_STACK.
ip_addresses: Option<Vec<String>>
Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator.
After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global Accelerator assigns each address range to a different network zone, for high availability.
You can specify one or two addresses, separated by a space. Do not include the /32 suffix.
Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new accelerator with the new addresses.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
enabled: 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, an accelerator cannot be deleted. If set to false, the accelerator can be deleted.
idempotency_token: Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.
Create tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
Implementations§
source§impl CreateAcceleratorInput
impl CreateAcceleratorInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
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) -> Option<&IpAddressType>
pub fn 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 ip_addresses(&self) -> Option<&[String]>
pub fn ip_addresses(&self) -> Option<&[String]>
Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose an IPv4 address from your own pool to use for the accelerator's static IPv4 address when you create an accelerator.
After you bring an address range to Amazon Web Services, it appears in your account as an address pool. When you create an accelerator, you can assign one IPv4 address from your range to it. Global Accelerator assigns you a second static IPv4 address from an Amazon IP address range. If you bring two IPv4 address ranges to Amazon Web Services, you can assign one IPv4 address from each range to your accelerator. This restriction is because Global Accelerator assigns each address range to a different network zone, for high availability.
You can specify one or two addresses, separated by a space. Do not include the /32 suffix.
Note that you can't update IP addresses for an existing accelerator. To change them, you must create a new accelerator with the new addresses.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
sourcepub fn enabled(&self) -> Option<bool>
pub fn 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, an accelerator cannot be deleted. If set to false, the accelerator can be deleted.
sourcepub fn idempotency_token(&self) -> Option<&str>
pub fn idempotency_token(&self) -> Option<&str>
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.
Create tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
source§impl CreateAcceleratorInput
impl CreateAcceleratorInput
sourcepub fn builder() -> CreateAcceleratorInputBuilder
pub fn builder() -> CreateAcceleratorInputBuilder
Creates a new builder-style object to manufacture CreateAcceleratorInput
.
Trait Implementations§
source§impl Clone for CreateAcceleratorInput
impl Clone for CreateAcceleratorInput
source§fn clone(&self) -> CreateAcceleratorInput
fn clone(&self) -> CreateAcceleratorInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateAcceleratorInput
impl Debug for CreateAcceleratorInput
source§impl PartialEq<CreateAcceleratorInput> for CreateAcceleratorInput
impl PartialEq<CreateAcceleratorInput> for CreateAcceleratorInput
source§fn eq(&self, other: &CreateAcceleratorInput) -> bool
fn eq(&self, other: &CreateAcceleratorInput) -> bool
self
and other
values to be equal, and is used
by ==
.