#[non_exhaustive]pub struct AssociateAddressInput {
pub allocation_id: Option<String>,
pub instance_id: Option<String>,
pub public_ip: Option<String>,
pub allow_reassociation: Option<bool>,
pub dry_run: Option<bool>,
pub network_interface_id: Option<String>,
pub private_ip_address: Option<String>,
}
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.allocation_id: Option<String>
The allocation ID. This is required.
instance_id: Option<String>
The ID of the instance. The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.
public_ip: Option<String>
Deprecated.
allow_reassociation: Option<bool>
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
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
.
network_interface_id: Option<String>
The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
You can specify either the instance ID or the network interface ID, but not both.
private_ip_address: Option<String>
The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
Implementations§
source§impl AssociateAddressInput
impl AssociateAddressInput
sourcepub fn allocation_id(&self) -> Option<&str>
pub fn allocation_id(&self) -> Option<&str>
The allocation ID. This is required.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance. The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.
sourcepub fn allow_reassociation(&self) -> Option<bool>
pub fn allow_reassociation(&self) -> Option<bool>
Reassociation is automatic, but you can specify false to ensure the operation fails if the Elastic IP address is already associated with another resource.
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 network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
You can specify either the instance ID or the network interface ID, but not both.
sourcepub fn private_ip_address(&self) -> Option<&str>
pub fn private_ip_address(&self) -> Option<&str>
The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
source§impl AssociateAddressInput
impl AssociateAddressInput
sourcepub fn builder() -> AssociateAddressInputBuilder
pub fn builder() -> AssociateAddressInputBuilder
Creates a new builder-style object to manufacture AssociateAddressInput
.
Trait Implementations§
source§impl Clone for AssociateAddressInput
impl Clone for AssociateAddressInput
source§fn clone(&self) -> AssociateAddressInput
fn clone(&self) -> AssociateAddressInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssociateAddressInput
impl Debug for AssociateAddressInput
source§impl PartialEq for AssociateAddressInput
impl PartialEq for AssociateAddressInput
source§fn eq(&self, other: &AssociateAddressInput) -> bool
fn eq(&self, other: &AssociateAddressInput) -> bool
self
and other
values to be equal, and is used
by ==
.