Struct aws_sdk_ec2::input::AssociateAddressInput [−][src]
#[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>
[EC2-VPC] The allocation ID. This is required for EC2-VPC.
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.
public_ip: Option<String>
[EC2-Classic] The Elastic IP address to associate with the instance. This is required for EC2-Classic.
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
.
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.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateAddress, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateAddress, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<AssociateAddress
>
Creates a new builder-style object to manufacture AssociateAddressInput
[EC2-VPC] The allocation ID. This is required for EC2-VPC.
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.
[EC2-Classic] The Elastic IP address to associate with the instance. This is required for EC2-Classic.
[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.
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
.
[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.
[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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AssociateAddressInput
impl Send for AssociateAddressInput
impl Sync for AssociateAddressInput
impl Unpin for AssociateAddressInput
impl UnwindSafe for AssociateAddressInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more