Struct aws_sdk_ec2::client::fluent_builders::CreateNetworkInterface [−][src]
pub struct CreateNetworkInterface<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateNetworkInterface
.
Creates a network interface in the specified subnet.
For more information about network interfaces, see Elastic Network Interfaces in the Amazon Virtual Private Cloud User Guide.
Implementations
impl<C, M, R> CreateNetworkInterface<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateNetworkInterface<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateNetworkInterfaceOutput, SdkError<CreateNetworkInterfaceError>> where
R::Policy: SmithyRetryPolicy<CreateNetworkInterfaceInputOperationOutputAlias, CreateNetworkInterfaceOutput, CreateNetworkInterfaceError, CreateNetworkInterfaceInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateNetworkInterfaceOutput, SdkError<CreateNetworkInterfaceError>> where
R::Policy: SmithyRetryPolicy<CreateNetworkInterfaceInputOperationOutputAlias, CreateNetworkInterfaceOutput, CreateNetworkInterfaceError, CreateNetworkInterfaceInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A description for the network interface.
A description for the network interface.
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
.
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
.
Appends an item to Groups
.
To override the contents of this collection use set_groups
.
The IDs of one or more security groups.
The IDs of one or more security groups.
The number of IPv6 addresses to assign to a network interface. Amazon EC2
automatically selects the IPv6 addresses from the subnet range. You can't use this
option if specifying specific IPv6 addresses. If your subnet has the AssignIpv6AddressOnCreation
attribute set
to true
, you can specify 0
to override this setting.
The number of IPv6 addresses to assign to a network interface. Amazon EC2
automatically selects the IPv6 addresses from the subnet range. You can't use this
option if specifying specific IPv6 addresses. If your subnet has the AssignIpv6AddressOnCreation
attribute set
to true
, you can specify 0
to override this setting.
Appends an item to Ipv6Addresses
.
To override the contents of this collection use set_ipv6_addresses
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
The primary private IPv4 address of the network interface. If you don't specify an
IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR range. If you
specify an IP address, you cannot indicate any IP addresses specified in
privateIpAddresses
as primary (only one IP address can be designated as
primary).
The primary private IPv4 address of the network interface. If you don't specify an
IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR range. If you
specify an IP address, you cannot indicate any IP addresses specified in
privateIpAddresses
as primary (only one IP address can be designated as
primary).
Appends an item to PrivateIpAddresses
.
To override the contents of this collection use set_private_ip_addresses
.
One or more private IPv4 addresses.
pub fn set_private_ip_addresses(
self,
input: Option<Vec<PrivateIpAddressSpecification>>
) -> Self
pub fn set_private_ip_addresses(
self,
input: Option<Vec<PrivateIpAddressSpecification>>
) -> Self
One or more private IPv4 addresses.
The number of secondary private IPv4 addresses to assign to a network interface. When
you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses
within the subnet's IPv4 CIDR range. You can't specify this option and specify more than
one private IP address using privateIpAddresses
.
The number of IP addresses you can assign to a network interface varies by instance type. For more information, see IP Addresses Per ENI Per Instance Type in the Amazon Virtual Private Cloud User Guide.
The number of secondary private IPv4 addresses to assign to a network interface. When
you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses
within the subnet's IPv4 CIDR range. You can't specify this option and specify more than
one private IP address using privateIpAddresses
.
The number of IP addresses you can assign to a network interface varies by instance type. For more information, see IP Addresses Per ENI Per Instance Type in the Amazon Virtual Private Cloud User Guide.
Appends an item to Ipv4Prefixes
.
To override the contents of this collection use set_ipv4_prefixes
.
One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount
option.
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the Ipv4 Prefixes
option.
The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the Ipv4 Prefixes
option.
Appends an item to Ipv6Prefixes
.
To override the contents of this collection use set_ipv6_prefixes
.
One or more IPv6 prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount
option.
One or more IPv6 prefixes assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount
option.
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the Ipv6Prefixes
option.
The number of IPv6 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the Ipv6Prefixes
option.
Indicates the type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. For more information, see
Elastic Fabric Adapter in the Amazon Elastic Compute Cloud User Guide. To create a trunk network interface, specify
efa
. For more information, see
Network interface trunking in the Amazon Elastic Compute Cloud User Guide.
Indicates the type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. For more information, see
Elastic Fabric Adapter in the Amazon Elastic Compute Cloud User Guide. To create a trunk network interface, specify
efa
. For more information, see
Network interface trunking in the Amazon Elastic Compute Cloud User Guide.
The ID of the subnet to associate with the network interface.
The ID of the subnet to associate with the network interface.
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the new network interface.
The tags to apply to the new network interface.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateNetworkInterface<C, M, R>
impl<C, M, R> Send for CreateNetworkInterface<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateNetworkInterface<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateNetworkInterface<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateNetworkInterface<C, M, R>
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