RouteTable
Manages an EC2 Transit Gateway Route Table.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ec2TransitGateway.RouteTable("example", new Aws.Ec2TransitGateway.RouteTableArgs
{
TransitGatewayId = aws_ec2_transit_gateway.Example.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2transitgateway"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2transitgateway.NewRouteTable(ctx, "example", &ec2transitgateway.RouteTableArgs{
TransitGatewayId: pulumi.String(aws_ec2_transit_gateway.Example.Id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.RouteTable("example", transit_gateway_id=aws_ec2_transit_gateway["example"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2transitgateway.RouteTable("example", {
transitGatewayId: aws_ec2_transit_gateway_example.id,
});Create a RouteTable Resource
new RouteTable(name: string, args: RouteTableArgs, opts?: CustomResourceOptions);def RouteTable(resource_name, opts=None, tags=None, transit_gateway_id=None, __props__=None);func NewRouteTable(ctx *Context, name string, args RouteTableArgs, opts ...ResourceOption) (*RouteTable, error)public RouteTable(string name, RouteTableArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RouteTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RouteTableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RouteTable Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RouteTable resource accepts the following input properties:
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- Dictionary<string, string>
Key-value tags for the EC2 Transit Gateway Route Table.
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- map[string]string
Key-value tags for the EC2 Transit Gateway Route Table.
- transit
Gateway stringId Identifier of EC2 Transit Gateway.
- {[key: string]: string}
Key-value tags for the EC2 Transit Gateway Route Table.
- transit_
gateway_ strid Identifier of EC2 Transit Gateway.
- Dict[str, str]
Key-value tags for the EC2 Transit Gateway Route Table.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteTable resource produces the following output properties:
- Default
Association boolRoute Table Boolean whether this is the default association route table for the EC2 Transit Gateway.
- Default
Propagation boolRoute Table Boolean whether this is the default propagation route table for the EC2 Transit Gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Default
Association boolRoute Table Boolean whether this is the default association route table for the EC2 Transit Gateway.
- Default
Propagation boolRoute Table Boolean whether this is the default propagation route table for the EC2 Transit Gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- default
Association booleanRoute Table Boolean whether this is the default association route table for the EC2 Transit Gateway.
- default
Propagation booleanRoute Table Boolean whether this is the default propagation route table for the EC2 Transit Gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- default_
association_ boolroute_ table Boolean whether this is the default association route table for the EC2 Transit Gateway.
- default_
propagation_ boolroute_ table Boolean whether this is the default propagation route table for the EC2 Transit Gateway.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing RouteTable Resource
Get an existing RouteTable resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RouteTableState, opts?: CustomResourceOptions): RouteTablestatic get(resource_name, id, opts=None, default_association_route_table=None, default_propagation_route_table=None, tags=None, transit_gateway_id=None, __props__=None);func GetRouteTable(ctx *Context, name string, id IDInput, state *RouteTableState, opts ...ResourceOption) (*RouteTable, error)public static RouteTable Get(string name, Input<string> id, RouteTableState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Default
Association boolRoute Table Boolean whether this is the default association route table for the EC2 Transit Gateway.
- Default
Propagation boolRoute Table Boolean whether this is the default propagation route table for the EC2 Transit Gateway.
- Dictionary<string, string>
Key-value tags for the EC2 Transit Gateway Route Table.
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- Default
Association boolRoute Table Boolean whether this is the default association route table for the EC2 Transit Gateway.
- Default
Propagation boolRoute Table Boolean whether this is the default propagation route table for the EC2 Transit Gateway.
- map[string]string
Key-value tags for the EC2 Transit Gateway Route Table.
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- default
Association booleanRoute Table Boolean whether this is the default association route table for the EC2 Transit Gateway.
- default
Propagation booleanRoute Table Boolean whether this is the default propagation route table for the EC2 Transit Gateway.
- {[key: string]: string}
Key-value tags for the EC2 Transit Gateway Route Table.
- transit
Gateway stringId Identifier of EC2 Transit Gateway.
- default_
association_ boolroute_ table Boolean whether this is the default association route table for the EC2 Transit Gateway.
- default_
propagation_ boolroute_ table Boolean whether this is the default propagation route table for the EC2 Transit Gateway.
- Dict[str, str]
Key-value tags for the EC2 Transit Gateway Route Table.
- transit_
gateway_ strid Identifier of EC2 Transit Gateway.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.