pub struct CreateDirectConnectGateway { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDirectConnectGateway
.
Creates a Direct Connect gateway, which is an intermediate object that enables you to connect a set of virtual interfaces and virtual private gateways. A Direct Connect gateway is global and visible in any Amazon Web Services Region after it is created. The virtual interfaces and virtual private gateways that are connected through a Direct Connect gateway can be in different Amazon Web Services Regions. This enables you to connect to a VPC in any Region, regardless of the Region in which the virtual interfaces are located, and pass traffic between them.
Implementations
sourceimpl CreateDirectConnectGateway
impl CreateDirectConnectGateway
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateDirectConnectGateway, AwsResponseRetryClassifier>, SdkError<CreateDirectConnectGatewayError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateDirectConnectGateway, AwsResponseRetryClassifier>, SdkError<CreateDirectConnectGatewayError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateDirectConnectGatewayOutput, SdkError<CreateDirectConnectGatewayError>>
pub async fn send(
self
) -> Result<CreateDirectConnectGatewayOutput, SdkError<CreateDirectConnectGatewayError>>
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.
sourcepub fn direct_connect_gateway_name(self, input: impl Into<String>) -> Self
pub fn direct_connect_gateway_name(self, input: impl Into<String>) -> Self
The name of the Direct Connect gateway.
sourcepub fn set_direct_connect_gateway_name(self, input: Option<String>) -> Self
pub fn set_direct_connect_gateway_name(self, input: Option<String>) -> Self
The name of the Direct Connect gateway.
sourcepub fn amazon_side_asn(self, input: i64) -> Self
pub fn amazon_side_asn(self, input: i64) -> Self
The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.
sourcepub fn set_amazon_side_asn(self, input: Option<i64>) -> Self
pub fn set_amazon_side_asn(self, input: Option<i64>) -> Self
The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.
Trait Implementations
sourceimpl Clone for CreateDirectConnectGateway
impl Clone for CreateDirectConnectGateway
sourcefn clone(&self) -> CreateDirectConnectGateway
fn clone(&self) -> CreateDirectConnectGateway
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more