Struct rusoto_ec2::AssociateAddressRequest
source · [−]pub struct AssociateAddressRequest {
pub allocation_id: Option<String>,
pub allow_reassociation: Option<bool>,
pub dry_run: Option<bool>,
pub instance_id: Option<String>,
pub network_interface_id: Option<String>,
pub private_ip_address: Option<String>,
pub public_ip: Option<String>,
}
Fields
allocation_id: Option<String>
[EC2-VPC] The allocation ID. This is required for EC2-VPC.
allow_reassociation: Option<bool>
[EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic IP address that is already associated with an instance or network interface to be reassociated with the specified instance or network interface. Otherwise, the operation fails. In a VPC in an EC2-VPC-only account, reassociation is automatic, therefore 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
.
instance_id: Option<String>
The ID of the instance. The instance must have exactly one attached network interface. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. For EC2-Classic, you must specify an instance ID and the instance must be in the running state.
network_interface_id: Option<String>
[EC2-VPC] The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID.
For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both.
private_ip_address: Option<String>
[EC2-VPC] 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.
public_ip: Option<String>
[EC2-Classic] The Elastic IP address to associate with the instance. This is required for EC2-Classic.
Trait Implementations
sourceimpl Clone for AssociateAddressRequest
impl Clone for AssociateAddressRequest
sourcefn clone(&self) -> AssociateAddressRequest
fn clone(&self) -> AssociateAddressRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AssociateAddressRequest
impl Debug for AssociateAddressRequest
sourceimpl Default for AssociateAddressRequest
impl Default for AssociateAddressRequest
sourcefn default() -> AssociateAddressRequest
fn default() -> AssociateAddressRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<AssociateAddressRequest> for AssociateAddressRequest
impl PartialEq<AssociateAddressRequest> for AssociateAddressRequest
sourcefn eq(&self, other: &AssociateAddressRequest) -> bool
fn eq(&self, other: &AssociateAddressRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AssociateAddressRequest) -> bool
fn ne(&self, other: &AssociateAddressRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for AssociateAddressRequest
Auto Trait Implementations
impl RefUnwindSafe for AssociateAddressRequest
impl Send for AssociateAddressRequest
impl Sync for AssociateAddressRequest
impl Unpin for AssociateAddressRequest
impl UnwindSafe for AssociateAddressRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more