flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getVpcRouteTable
Explore with Pulumi AI
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Provides details about a specific VPC route table.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const vpcId = config.requireObject("vpcId");
const _default = flexibleengine.getVpcRouteTable({
vpcId: vpcId,
});
const custom = flexibleengine.getVpcRouteTable({
vpcId: vpcId,
name: "demo",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
vpc_id = config.require_object("vpcId")
default = flexibleengine.get_vpc_route_table(vpc_id=vpc_id)
custom = flexibleengine.get_vpc_route_table(vpc_id=vpc_id,
name="demo")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
vpcId := cfg.RequireObject("vpcId")
_, err := flexibleengine.LookupVpcRouteTable(ctx, &flexibleengine.LookupVpcRouteTableArgs{
VpcId: vpcId,
}, nil)
if err != nil {
return err
}
_, err = flexibleengine.LookupVpcRouteTable(ctx, &flexibleengine.LookupVpcRouteTableArgs{
VpcId: vpcId,
Name: pulumi.StringRef("demo"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var vpcId = config.RequireObject<dynamic>("vpcId");
var @default = Flexibleengine.GetVpcRouteTable.Invoke(new()
{
VpcId = vpcId,
});
var custom = Flexibleengine.GetVpcRouteTable.Invoke(new()
{
VpcId = vpcId,
Name = "demo",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetVpcRouteTableArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var vpcId = config.get("vpcId");
final var default = FlexibleengineFunctions.getVpcRouteTable(GetVpcRouteTableArgs.builder()
.vpcId(vpcId)
.build());
final var custom = FlexibleengineFunctions.getVpcRouteTable(GetVpcRouteTableArgs.builder()
.vpcId(vpcId)
.name("demo")
.build());
}
}
configuration:
vpcId:
type: dynamic
variables:
default:
fn::invoke:
function: flexibleengine:getVpcRouteTable
arguments:
vpcId: ${vpcId}
custom:
fn::invoke:
function: flexibleengine:getVpcRouteTable
arguments:
vpcId: ${vpcId}
name: demo
Using getVpcRouteTable
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpcRouteTable(args: GetVpcRouteTableArgs, opts?: InvokeOptions): Promise<GetVpcRouteTableResult>
function getVpcRouteTableOutput(args: GetVpcRouteTableOutputArgs, opts?: InvokeOptions): Output<GetVpcRouteTableResult>
def get_vpc_route_table(id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcRouteTableResult
def get_vpc_route_table_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcRouteTableResult]
func LookupVpcRouteTable(ctx *Context, args *LookupVpcRouteTableArgs, opts ...InvokeOption) (*LookupVpcRouteTableResult, error)
func LookupVpcRouteTableOutput(ctx *Context, args *LookupVpcRouteTableOutputArgs, opts ...InvokeOption) LookupVpcRouteTableResultOutput
> Note: This function is named LookupVpcRouteTable
in the Go SDK.
public static class GetVpcRouteTable
{
public static Task<GetVpcRouteTableResult> InvokeAsync(GetVpcRouteTableArgs args, InvokeOptions? opts = null)
public static Output<GetVpcRouteTableResult> Invoke(GetVpcRouteTableInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcRouteTableResult> getVpcRouteTable(GetVpcRouteTableArgs args, InvokeOptions options)
public static Output<GetVpcRouteTableResult> getVpcRouteTable(GetVpcRouteTableArgs args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getVpcRouteTable:getVpcRouteTable
arguments:
# arguments dictionary
The following arguments are supported:
getVpcRouteTable Result
The following output properties are available:
- Default bool
- (Bool) - Whether the route table is default or not.
- Description string
- (String) - The description about the route.
- Id string
- Name string
- Region string
- Routes
List<Get
Vpc Route Table Route> - (List) - The route object list. The route object is documented below.
- Subnets List<string>
- (List) - An array of one or more subnets associating with the route table.
- Vpc
Id string
- Default bool
- (Bool) - Whether the route table is default or not.
- Description string
- (String) - The description about the route.
- Id string
- Name string
- Region string
- Routes
[]Get
Vpc Route Table Route - (List) - The route object list. The route object is documented below.
- Subnets []string
- (List) - An array of one or more subnets associating with the route table.
- Vpc
Id string
- default_ Boolean
- (Bool) - Whether the route table is default or not.
- description String
- (String) - The description about the route.
- id String
- name String
- region String
- routes
List<Get
Vpc Route Table Route> - (List) - The route object list. The route object is documented below.
- subnets List<String>
- (List) - An array of one or more subnets associating with the route table.
- vpc
Id String
- default boolean
- (Bool) - Whether the route table is default or not.
- description string
- (String) - The description about the route.
- id string
- name string
- region string
- routes
Get
Vpc Route Table Route[] - (List) - The route object list. The route object is documented below.
- subnets string[]
- (List) - An array of one or more subnets associating with the route table.
- vpc
Id string
- default bool
- (Bool) - Whether the route table is default or not.
- description str
- (String) - The description about the route.
- id str
- name str
- region str
- routes
Sequence[Get
Vpc Route Table Route] - (List) - The route object list. The route object is documented below.
- subnets Sequence[str]
- (List) - An array of one or more subnets associating with the route table.
- vpc_
id str
- default Boolean
- (Bool) - Whether the route table is default or not.
- description String
- (String) - The description about the route.
- id String
- name String
- region String
- routes List<Property Map>
- (List) - The route object list. The route object is documented below.
- subnets List<String>
- (List) - An array of one or more subnets associating with the route table.
- vpc
Id String
Supporting Types
GetVpcRouteTableRoute
- Description string
- (String) - The description about the route.
- Destination string
- (String) - The destination address in the CIDR notation format
- Nexthop string
- (String) - The next hop.
- Type string
- (String) - The route type.
- Description string
- (String) - The description about the route.
- Destination string
- (String) - The destination address in the CIDR notation format
- Nexthop string
- (String) - The next hop.
- Type string
- (String) - The route type.
- description String
- (String) - The description about the route.
- destination String
- (String) - The destination address in the CIDR notation format
- nexthop String
- (String) - The next hop.
- type String
- (String) - The route type.
- description string
- (String) - The description about the route.
- destination string
- (String) - The destination address in the CIDR notation format
- nexthop string
- (String) - The next hop.
- type string
- (String) - The route type.
- description str
- (String) - The description about the route.
- destination str
- (String) - The destination address in the CIDR notation format
- nexthop str
- (String) - The next hop.
- type str
- (String) - The route type.
- description String
- (String) - The description about the route.
- destination String
- (String) - The destination address in the CIDR notation format
- nexthop String
- (String) - The next hop.
- type String
- (String) - The route type.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud