pub struct Builder { /* private fields */ }
Expand description
A builder for RouteAnalysisCompletion
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn result_code(self, input: RouteAnalysisCompletionResultCode) -> Self
pub fn result_code(self, input: RouteAnalysisCompletionResultCode) -> Self
The result of the analysis. If the status is NOT_CONNECTED
, check the reason code.
sourcepub fn set_result_code(
self,
input: Option<RouteAnalysisCompletionResultCode>
) -> Self
pub fn set_result_code(
self,
input: Option<RouteAnalysisCompletionResultCode>
) -> Self
The result of the analysis. If the status is NOT_CONNECTED
, check the reason code.
sourcepub fn reason_code(self, input: RouteAnalysisCompletionReasonCode) -> Self
pub fn reason_code(self, input: RouteAnalysisCompletionReasonCode) -> Self
The reason code. Available only if a connection is not found.
-
BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND
- Found a black hole route with the destination CIDR block. -
CYCLIC_PATH_DETECTED
- Found the same resource multiple times while traversing the path. -
INACTIVE_ROUTE_FOR_DESTINATION_FOUND
- Found an inactive route with the destination CIDR block. -
MAX_HOPS_EXCEEDED
- Analysis exceeded 64 hops without finding the destination. -
ROUTE_NOT_FOUND
- Cannot find a route table with the destination CIDR block. -
TGW_ATTACH_ARN_NO_MATCH
- Found an attachment, but not with the correct destination ARN. -
TGW_ATTACH_NOT_FOUND
- Cannot find an attachment. -
TGW_ATTACH_NOT_IN_TGW
- Found an attachment, but not to the correct transit gateway. -
TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND
- The state of the route table association is not associated.
sourcepub fn set_reason_code(
self,
input: Option<RouteAnalysisCompletionReasonCode>
) -> Self
pub fn set_reason_code(
self,
input: Option<RouteAnalysisCompletionReasonCode>
) -> Self
The reason code. Available only if a connection is not found.
-
BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND
- Found a black hole route with the destination CIDR block. -
CYCLIC_PATH_DETECTED
- Found the same resource multiple times while traversing the path. -
INACTIVE_ROUTE_FOR_DESTINATION_FOUND
- Found an inactive route with the destination CIDR block. -
MAX_HOPS_EXCEEDED
- Analysis exceeded 64 hops without finding the destination. -
ROUTE_NOT_FOUND
- Cannot find a route table with the destination CIDR block. -
TGW_ATTACH_ARN_NO_MATCH
- Found an attachment, but not with the correct destination ARN. -
TGW_ATTACH_NOT_FOUND
- Cannot find an attachment. -
TGW_ATTACH_NOT_IN_TGW
- Found an attachment, but not to the correct transit gateway. -
TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND
- The state of the route table association is not associated.
sourcepub fn reason_context(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn reason_context(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to reason_context
.
To override the contents of this collection use set_reason_context
.
Additional information about the path. Available only if a connection is not found.
sourcepub fn set_reason_context(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_reason_context(self, input: Option<HashMap<String, String>>) -> Self
Additional information about the path. Available only if a connection is not found.
sourcepub fn build(self) -> RouteAnalysisCompletion
pub fn build(self) -> RouteAnalysisCompletion
Consumes the builder and constructs a RouteAnalysisCompletion
.