pub struct CreateConnectPeer { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateConnectPeer
.
Creates a core network Connect peer for a specified core network connect attachment between a core network and an appliance. The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).
Implementations§
source§impl CreateConnectPeer
impl CreateConnectPeer
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateConnectPeer, AwsResponseRetryClassifier>, SdkError<CreateConnectPeerError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateConnectPeer, AwsResponseRetryClassifier>, SdkError<CreateConnectPeerError>>
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<CreateConnectPeerOutput, SdkError<CreateConnectPeerError>>
pub async fn send(
self
) -> Result<CreateConnectPeerOutput, SdkError<CreateConnectPeerError>>
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 connect_attachment_id(self, input: impl Into<String>) -> Self
pub fn connect_attachment_id(self, input: impl Into<String>) -> Self
The ID of the connection attachment.
sourcepub fn set_connect_attachment_id(self, input: Option<String>) -> Self
pub fn set_connect_attachment_id(self, input: Option<String>) -> Self
The ID of the connection attachment.
sourcepub fn core_network_address(self, input: impl Into<String>) -> Self
pub fn core_network_address(self, input: impl Into<String>) -> Self
A Connect peer core network address.
sourcepub fn set_core_network_address(self, input: Option<String>) -> Self
pub fn set_core_network_address(self, input: Option<String>) -> Self
A Connect peer core network address.
sourcepub fn peer_address(self, input: impl Into<String>) -> Self
pub fn peer_address(self, input: impl Into<String>) -> Self
The Connect peer address.
sourcepub fn set_peer_address(self, input: Option<String>) -> Self
pub fn set_peer_address(self, input: Option<String>) -> Self
The Connect peer address.
sourcepub fn bgp_options(self, input: BgpOptions) -> Self
pub fn bgp_options(self, input: BgpOptions) -> Self
The Connect peer BGP options.
sourcepub fn set_bgp_options(self, input: Option<BgpOptions>) -> Self
pub fn set_bgp_options(self, input: Option<BgpOptions>) -> Self
The Connect peer BGP options.
sourcepub fn inside_cidr_blocks(self, input: impl Into<String>) -> Self
pub fn inside_cidr_blocks(self, input: impl Into<String>) -> Self
Appends an item to InsideCidrBlocks
.
To override the contents of this collection use set_inside_cidr_blocks
.
The inside IP addresses used for BGP peering.
sourcepub fn set_inside_cidr_blocks(self, input: Option<Vec<String>>) -> Self
pub fn set_inside_cidr_blocks(self, input: Option<Vec<String>>) -> Self
The inside IP addresses used for BGP peering.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
The tags associated with the peer request.
The tags associated with the peer request.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The client token associated with the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The client token associated with the request.
Trait Implementations§
source§impl Clone for CreateConnectPeer
impl Clone for CreateConnectPeer
source§fn clone(&self) -> CreateConnectPeer
fn clone(&self) -> CreateConnectPeer
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more