// Searches for routes in the specified transit gateway route table.
Searches for routes in the specified transit gateway route table.
// Searches for routes in the specified transit gateway route table .
func (c *Client) SearchTransitGatewayRoutes(ctx context.Context, params *SearchTransitGatewayRoutesInput, optFns ...func(*Options)) (*SearchTransitGatewayRoutesOutput, error) {
	if params == nil {
		params = &SearchTransitGatewayRoutesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "SearchTransitGatewayRoutes", params, optFns, addOperationSearchTransitGatewayRoutesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*SearchTransitGatewayRoutesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) SearchTransitGatewayRoutes ( ctx context . Context , params * SearchTransitGatewayRoutesInput , optFns ... func ( * Options ) ) ( * SearchTransitGatewayRoutesOutput , error ) { if params == nil { params = & SearchTransitGatewayRoutesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationSearchTransitGatewayRoutesMiddlewares ) if err != nil { return nil , err } out := result . ( * SearchTransitGatewayRoutesOutput ) out . ResultMetadata = metadata return out , nil }
Searches for routes in the specified transit gateway route table.
Searches for routes in the specified transit gateway route table .