Struct aws_sdk_networkmanager::client::fluent_builders::AssociateCustomerGateway [−][src]
pub struct AssociateCustomerGateway<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to AssociateCustomerGateway
.
Associates a customer gateway with a device and optionally, with a link. If you specify a link, it must be associated with the specified device.
You can only associate customer gateways that are connected to a VPN attachment on a
transit gateway. The transit gateway must be registered in your global network. When
you register a transit gateway, customer gateways that are connected to the transit
gateway are automatically included in the global network. To list customer gateways
that are connected to a transit gateway, use the DescribeVpnConnections EC2 API and filter by
transit-gateway-id
.
You cannot associate a customer gateway with more than one device and link.
Implementations
impl<C, M, R> AssociateCustomerGateway<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> AssociateCustomerGateway<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<AssociateCustomerGatewayOutput, SdkError<AssociateCustomerGatewayError>> where
R::Policy: SmithyRetryPolicy<AssociateCustomerGatewayInputOperationOutputAlias, AssociateCustomerGatewayOutput, AssociateCustomerGatewayError, AssociateCustomerGatewayInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<AssociateCustomerGatewayOutput, SdkError<AssociateCustomerGatewayError>> where
R::Policy: SmithyRetryPolicy<AssociateCustomerGatewayInputOperationOutputAlias, AssociateCustomerGatewayOutput, AssociateCustomerGatewayError, AssociateCustomerGatewayInputOperationRetryAlias>,
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.
The Amazon Resource Name (ARN) of the customer gateway.
The Amazon Resource Name (ARN) of the customer gateway.
The ID of the global network.
The ID of the global network.
The ID of the device.
The ID of the link.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for AssociateCustomerGateway<C, M, R>
impl<C, M, R> Send for AssociateCustomerGateway<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for AssociateCustomerGateway<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for AssociateCustomerGateway<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for AssociateCustomerGateway<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