OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::AWS::Route Class Reference

#include <awsroute.hpp>

Classes

class  Context
 
class  Info
 

Public Types

enum class  RouteTargetType { INTERFACE_ID , INSTANCE_ID }
 

Public Member Functions

 OPENVPN_EXCEPTION (aws_route_error)
 

Static Public Member Functions

static void set_source_dest_check (Context &ctx, const std::string &network_interface_id, const bool source_dest_check)
 
static void delete_route (Context &ctx, const std::string &route_table_id, const std::string &cidr, bool ipv6)
 
static std::string create_route_table (Context &ctx, const std::string &vpc_id, const std::string &name)
 
static void replace_create_route (Context &ctx, const std::string &route_table_id, const std::string &route, RouteTargetType target_type, const std::string &target_value, bool ipv6)
 
static std::string get_route_table_by_name (Context &ctx, std::string &name)
 

Static Private Member Functions

static void execute_transaction (Context &ctx)
 
static void add_transaction (const Context &ctx, REST::Query &&q)
 
static std::string ec2_uri (const Context &ctx, REST::Query &&q)
 
static std::string ec2_host (const PCQuery::Info &instance_info)
 

Detailed Description

Definition at line 50 of file awsroute.hpp.

Member Enumeration Documentation

◆ RouteTargetType

Enumerator
INTERFACE_ID 
INSTANCE_ID 

Definition at line 55 of file awsroute.hpp.

Member Function Documentation

◆ add_transaction()

static void openvpn::AWS::Route::add_transaction ( const Context ctx,
REST::Query &&  q 
)
inlinestaticprivate

Definition at line 560 of file awsroute.hpp.

Here is the caller graph for this function:

◆ create_route_table()

static std::string openvpn::AWS::Route::create_route_table ( Context ctx,
const std::string &  vpc_id,
const std::string &  name 
)
inlinestatic

Definition at line 337 of file awsroute.hpp.

◆ delete_route()

static void openvpn::AWS::Route::delete_route ( Context ctx,
const std::string &  route_table_id,
const std::string &  cidr,
bool  ipv6 
)
inlinestatic

Definition at line 295 of file awsroute.hpp.

◆ ec2_host()

static std::string openvpn::AWS::Route::ec2_host ( const PCQuery::Info instance_info)
inlinestaticprivate

Definition at line 588 of file awsroute.hpp.

Here is the caller graph for this function:

◆ ec2_uri()

static std::string openvpn::AWS::Route::ec2_uri ( const Context ctx,
REST::Query &&  q 
)
inlinestaticprivate

Definition at line 570 of file awsroute.hpp.

Here is the caller graph for this function:

◆ execute_transaction()

static void openvpn::AWS::Route::execute_transaction ( Context ctx)
inlinestaticprivate

Definition at line 555 of file awsroute.hpp.

Here is the caller graph for this function:

◆ get_route_table_by_name()

static std::string openvpn::AWS::Route::get_route_table_by_name ( Context ctx,
std::string &  name 
)
inlinestatic

Definition at line 517 of file awsroute.hpp.

◆ OPENVPN_EXCEPTION()

openvpn::AWS::Route::OPENVPN_EXCEPTION ( aws_route_error  )

◆ replace_create_route()

static void openvpn::AWS::Route::replace_create_route ( Context ctx,
const std::string &  route_table_id,
const std::string &  route,
RouteTargetType  target_type,
const std::string &  target_value,
bool  ipv6 
)
inlinestatic

Definition at line 403 of file awsroute.hpp.

◆ set_source_dest_check()

static void openvpn::AWS::Route::set_source_dest_check ( Context ctx,
const std::string &  network_interface_id,
const bool  source_dest_check 
)
inlinestatic

Definition at line 214 of file awsroute.hpp.


The documentation for this class was generated from the following file: