Struct aws_sdk_directconnect::operation::start_bgp_failover_test::builders::StartBgpFailoverTestFluentBuilder
source · pub struct StartBgpFailoverTestFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to StartBgpFailoverTest.
Starts the virtual interface failover test that verifies your configuration meets your resiliency requirements by placing the BGP peering session in the DOWN state. You can then send traffic to verify that there are no outages.
You can run the test on public, private, transit, and hosted virtual interfaces.
You can use ListVirtualInterfaceTestHistory to view the virtual interface test history.
If you need to stop the test before the test interval completes, use StopBgpFailoverTest.
Implementations§
source§impl StartBgpFailoverTestFluentBuilder
impl StartBgpFailoverTestFluentBuilder
sourcepub fn as_input(&self) -> &StartBgpFailoverTestInputBuilder
pub fn as_input(&self) -> &StartBgpFailoverTestInputBuilder
Access the StartBgpFailoverTest as a reference.
sourcepub async fn send(
self
) -> Result<StartBgpFailoverTestOutput, SdkError<StartBgpFailoverTestError, HttpResponse>>
pub async fn send( self ) -> Result<StartBgpFailoverTestOutput, SdkError<StartBgpFailoverTestError, HttpResponse>>
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 async fn customize(
self
) -> Result<CustomizableOperation<StartBgpFailoverTestOutput, StartBgpFailoverTestError>, SdkError<StartBgpFailoverTestError>>
pub async fn customize( self ) -> Result<CustomizableOperation<StartBgpFailoverTestOutput, StartBgpFailoverTestError>, SdkError<StartBgpFailoverTestError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn virtual_interface_id(self, input: impl Into<String>) -> Self
pub fn virtual_interface_id(self, input: impl Into<String>) -> Self
The ID of the virtual interface you want to test.
sourcepub fn set_virtual_interface_id(self, input: Option<String>) -> Self
pub fn set_virtual_interface_id(self, input: Option<String>) -> Self
The ID of the virtual interface you want to test.
sourcepub fn get_virtual_interface_id(&self) -> &Option<String>
pub fn get_virtual_interface_id(&self) -> &Option<String>
The ID of the virtual interface you want to test.
sourcepub fn bgp_peers(self, input: impl Into<String>) -> Self
pub fn bgp_peers(self, input: impl Into<String>) -> Self
Appends an item to bgpPeers.
To override the contents of this collection use set_bgp_peers.
The BGP peers to place in the DOWN state.
sourcepub fn set_bgp_peers(self, input: Option<Vec<String>>) -> Self
pub fn set_bgp_peers(self, input: Option<Vec<String>>) -> Self
The BGP peers to place in the DOWN state.
sourcepub fn get_bgp_peers(&self) -> &Option<Vec<String>>
pub fn get_bgp_peers(&self) -> &Option<Vec<String>>
The BGP peers to place in the DOWN state.
sourcepub fn test_duration_in_minutes(self, input: i32) -> Self
pub fn test_duration_in_minutes(self, input: i32) -> Self
The time in minutes that the virtual interface failover test will last.
Maximum value: 4,320 minutes (72 hours).
Default: 180 minutes (3 hours).
sourcepub fn set_test_duration_in_minutes(self, input: Option<i32>) -> Self
pub fn set_test_duration_in_minutes(self, input: Option<i32>) -> Self
The time in minutes that the virtual interface failover test will last.
Maximum value: 4,320 minutes (72 hours).
Default: 180 minutes (3 hours).
sourcepub fn get_test_duration_in_minutes(&self) -> &Option<i32>
pub fn get_test_duration_in_minutes(&self) -> &Option<i32>
The time in minutes that the virtual interface failover test will last.
Maximum value: 4,320 minutes (72 hours).
Default: 180 minutes (3 hours).
Trait Implementations§
source§impl Clone for StartBgpFailoverTestFluentBuilder
impl Clone for StartBgpFailoverTestFluentBuilder
source§fn clone(&self) -> StartBgpFailoverTestFluentBuilder
fn clone(&self) -> StartBgpFailoverTestFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more