#[non_exhaustive]pub struct AllocateAddressInput {
pub domain: Option<DomainType>,
pub address: Option<String>,
pub public_ipv4_pool: Option<String>,
pub network_border_group: Option<String>,
pub customer_owned_ipv4_pool: Option<String>,
pub dry_run: Option<bool>,
pub tag_specifications: Option<Vec<TagSpecification>>,
}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.domain: Option<DomainType>The network (vpc).
address: Option<String>The Elastic IP address to recover or an IPv4 address from an address pool.
public_ipv4_pool: Option<String>The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool. To specify a specific address from the address pool, use the Address parameter instead.
network_border_group: Option<String>A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups.
Use DescribeAvailabilityZones to view the network border groups.
customer_owned_ipv4_pool: Option<String>The ID of a customer-owned address pool. Use this parameter to let Amazon EC2 select an address from the address pool. Alternatively, specify a specific address from the address pool.
dry_run: Option<bool>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
tag_specifications: Option<Vec<TagSpecification>>The tags to assign to the Elastic IP address.
Implementations§
source§impl AllocateAddressInput
impl AllocateAddressInput
sourcepub fn domain(&self) -> Option<&DomainType>
pub fn domain(&self) -> Option<&DomainType>
The network (vpc).
sourcepub fn address(&self) -> Option<&str>
pub fn address(&self) -> Option<&str>
The Elastic IP address to recover or an IPv4 address from an address pool.
sourcepub fn public_ipv4_pool(&self) -> Option<&str>
pub fn public_ipv4_pool(&self) -> Option<&str>
The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool. To specify a specific address from the address pool, use the Address parameter instead.
sourcepub fn network_border_group(&self) -> Option<&str>
pub fn network_border_group(&self) -> Option<&str>
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups.
Use DescribeAvailabilityZones to view the network border groups.
sourcepub fn customer_owned_ipv4_pool(&self) -> Option<&str>
pub fn customer_owned_ipv4_pool(&self) -> Option<&str>
The ID of a customer-owned address pool. Use this parameter to let Amazon EC2 select an address from the address pool. Alternatively, specify a specific address from the address pool.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn tag_specifications(&self) -> &[TagSpecification]
pub fn tag_specifications(&self) -> &[TagSpecification]
The tags to assign to the Elastic IP address.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tag_specifications.is_none().
source§impl AllocateAddressInput
impl AllocateAddressInput
sourcepub fn builder() -> AllocateAddressInputBuilder
pub fn builder() -> AllocateAddressInputBuilder
Creates a new builder-style object to manufacture AllocateAddressInput.
Trait Implementations§
source§impl Clone for AllocateAddressInput
impl Clone for AllocateAddressInput
source§fn clone(&self) -> AllocateAddressInput
fn clone(&self) -> AllocateAddressInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AllocateAddressInput
impl Debug for AllocateAddressInput
source§impl PartialEq for AllocateAddressInput
impl PartialEq for AllocateAddressInput
source§fn eq(&self, other: &AllocateAddressInput) -> bool
fn eq(&self, other: &AllocateAddressInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AllocateAddressInput
Auto Trait Implementations§
impl Freeze for AllocateAddressInput
impl RefUnwindSafe for AllocateAddressInput
impl Send for AllocateAddressInput
impl Sync for AllocateAddressInput
impl Unpin for AllocateAddressInput
impl UnwindSafe for AllocateAddressInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more