Skip to main content

CreateRouteBody

Type Alias CreateRouteBody 

Source
pub type CreateRouteBody = RouteCreateRequestInput;

Aliased Type§

pub struct CreateRouteBody {
    pub description: Option<String>,
    pub destination_cidr: String,
    pub next_hop_ip: Option<Nullable<String>>,
    pub target_internet_gateway: Option<String>,
    pub target_nat_gateway: Option<String>,
    pub target_egress_only_gateway: Option<String>,
    pub tags: Option<BTreeMap<String, String>>,
}

Fields§

§description: Option<String>§destination_cidr: String§next_hop_ip: Option<Nullable<String>>

Unicast next hop inside this VPC’s CIDR (same IP family as destination_cidr). Not for internet egress — use a gateway target id instead.

§target_internet_gateway: Option<String>

Gateway UUID, CRN or exact account-scoped name. Must belong to the route table VPC and match the destination_cidr address family. Exactly one route target is required.

§target_nat_gateway: Option<String>

Gateway UUID, CRN or exact account-scoped name. Must belong to the route table VPC and match the destination_cidr address family. Exactly one route target is required.

§target_egress_only_gateway: Option<String>

Gateway UUID, CRN or exact account-scoped name. Must belong to the route table VPC and match the destination_cidr address family. Exactly one route target is required.

§tags: Option<BTreeMap<String, String>>