Struct aws_sdk_directconnect::client::fluent_builders::CreateBGPPeer [−][src]
pub struct CreateBGPPeer<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to CreateBGPPeer.
Creates a BGP peer on the specified virtual interface.
You must create a BGP peer for the corresponding address family (IPv4/IPv6) in order to access Amazon Web Services resources that also use that address family.
If logical redundancy is not supported by the connection, interconnect, or LAG, the BGP peer cannot be in the same address family as an existing BGP peer on the virtual interface.
When creating a IPv6 BGP peer, omit the Amazon address and customer address. IPv6 addresses are automatically assigned from the Amazon pool of IPv6 addresses; you cannot specify custom IPv6 addresses.
For a public virtual interface, the Autonomous System Number (ASN) must be private or already on the allow list for the virtual interface.
Implementations
impl<C, M, R> CreateBGPPeer<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateBGPPeer<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateBgpPeerOutput, SdkError<CreateBGPPeerError>> where
R::Policy: SmithyRetryPolicy<CreateBgpPeerInputOperationOutputAlias, CreateBgpPeerOutput, CreateBGPPeerError, CreateBgpPeerInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateBgpPeerOutput, SdkError<CreateBGPPeerError>> where
R::Policy: SmithyRetryPolicy<CreateBgpPeerInputOperationOutputAlias, CreateBgpPeerOutput, CreateBGPPeerError, CreateBgpPeerInputOperationRetryAlias>,
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 ID of the virtual interface.
The ID of the virtual interface.
Information about the BGP peer.
Information about the BGP peer.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateBGPPeer<C, M, R>
impl<C, M, R> Unpin for CreateBGPPeer<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateBGPPeer<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
