aws.ec2transitgateway.DefaultRouteTableAssociation
Explore with Pulumi AI
Resource for managing an AWS EC2 (Elastic Compute Cloud) Transit Gateway Default Route Table Association.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2transitgateway.DefaultRouteTableAssociation("example", {
transitGatewayId: exampleAwsEc2TransitGateway.id,
transitGatewayRouteTableId: exampleAwsEc2TransitGatewayRouteTable.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.DefaultRouteTableAssociation("example",
transit_gateway_id=example_aws_ec2_transit_gateway["id"],
transit_gateway_route_table_id=example_aws_ec2_transit_gateway_route_table["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2transitgateway.NewDefaultRouteTableAssociation(ctx, "example", &ec2transitgateway.DefaultRouteTableAssociationArgs{
TransitGatewayId: pulumi.Any(exampleAwsEc2TransitGateway.Id),
TransitGatewayRouteTableId: pulumi.Any(exampleAwsEc2TransitGatewayRouteTable.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2TransitGateway.DefaultRouteTableAssociation("example", new()
{
TransitGatewayId = exampleAwsEc2TransitGateway.Id,
TransitGatewayRouteTableId = exampleAwsEc2TransitGatewayRouteTable.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.DefaultRouteTableAssociation;
import com.pulumi.aws.ec2transitgateway.DefaultRouteTableAssociationArgs;
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) {
var example = new DefaultRouteTableAssociation("example", DefaultRouteTableAssociationArgs.builder()
.transitGatewayId(exampleAwsEc2TransitGateway.id())
.transitGatewayRouteTableId(exampleAwsEc2TransitGatewayRouteTable.id())
.build());
}
}
resources:
example:
type: aws:ec2transitgateway:DefaultRouteTableAssociation
properties:
transitGatewayId: ${exampleAwsEc2TransitGateway.id}
transitGatewayRouteTableId: ${exampleAwsEc2TransitGatewayRouteTable.id}
Create DefaultRouteTableAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DefaultRouteTableAssociation(name: string, args: DefaultRouteTableAssociationArgs, opts?: CustomResourceOptions);
@overload
def DefaultRouteTableAssociation(resource_name: str,
args: DefaultRouteTableAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DefaultRouteTableAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
transit_gateway_id: Optional[str] = None,
transit_gateway_route_table_id: Optional[str] = None,
timeouts: Optional[DefaultRouteTableAssociationTimeoutsArgs] = None)
func NewDefaultRouteTableAssociation(ctx *Context, name string, args DefaultRouteTableAssociationArgs, opts ...ResourceOption) (*DefaultRouteTableAssociation, error)
public DefaultRouteTableAssociation(string name, DefaultRouteTableAssociationArgs args, CustomResourceOptions? opts = null)
public DefaultRouteTableAssociation(String name, DefaultRouteTableAssociationArgs args)
public DefaultRouteTableAssociation(String name, DefaultRouteTableAssociationArgs args, CustomResourceOptions options)
type: aws:ec2transitgateway:DefaultRouteTableAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DefaultRouteTableAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DefaultRouteTableAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DefaultRouteTableAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultRouteTableAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DefaultRouteTableAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var defaultRouteTableAssociationResource = new Aws.Ec2TransitGateway.DefaultRouteTableAssociation("defaultRouteTableAssociationResource", new()
{
TransitGatewayId = "string",
TransitGatewayRouteTableId = "string",
Timeouts = new Aws.Ec2TransitGateway.Inputs.DefaultRouteTableAssociationTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := ec2transitgateway.NewDefaultRouteTableAssociation(ctx, "defaultRouteTableAssociationResource", &ec2transitgateway.DefaultRouteTableAssociationArgs{
TransitGatewayId: pulumi.String("string"),
TransitGatewayRouteTableId: pulumi.String("string"),
Timeouts: &ec2transitgateway.DefaultRouteTableAssociationTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var defaultRouteTableAssociationResource = new DefaultRouteTableAssociation("defaultRouteTableAssociationResource", DefaultRouteTableAssociationArgs.builder()
.transitGatewayId("string")
.transitGatewayRouteTableId("string")
.timeouts(DefaultRouteTableAssociationTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
default_route_table_association_resource = aws.ec2transitgateway.DefaultRouteTableAssociation("defaultRouteTableAssociationResource",
transit_gateway_id="string",
transit_gateway_route_table_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const defaultRouteTableAssociationResource = new aws.ec2transitgateway.DefaultRouteTableAssociation("defaultRouteTableAssociationResource", {
transitGatewayId: "string",
transitGatewayRouteTableId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: aws:ec2transitgateway:DefaultRouteTableAssociation
properties:
timeouts:
create: string
delete: string
update: string
transitGatewayId: string
transitGatewayRouteTableId: string
DefaultRouteTableAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DefaultRouteTableAssociation resource accepts the following input properties:
- Transit
Gateway stringId - ID of the Transit Gateway to change the default association route table on.
- Transit
Gateway stringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
- Timeouts
Default
Route Table Association Timeouts
- Transit
Gateway stringId - ID of the Transit Gateway to change the default association route table on.
- Transit
Gateway stringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
- Timeouts
Default
Route Table Association Timeouts Args
- transit
Gateway StringId - ID of the Transit Gateway to change the default association route table on.
- transit
Gateway StringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
- timeouts
Default
Route Table Association Timeouts
- transit
Gateway stringId - ID of the Transit Gateway to change the default association route table on.
- transit
Gateway stringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
- timeouts
Default
Route Table Association Timeouts
- transit_
gateway_ strid - ID of the Transit Gateway to change the default association route table on.
- transit_
gateway_ strroute_ table_ id - ID of the Transit Gateway Route Table to be made the default association route table.
- timeouts
Default
Route Table Association Timeouts Args
- transit
Gateway StringId - ID of the Transit Gateway to change the default association route table on.
- transit
Gateway StringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DefaultRouteTableAssociation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Original
Default stringRoute Table Id
- Id string
- The provider-assigned unique ID for this managed resource.
- Original
Default stringRoute Table Id
- id String
- The provider-assigned unique ID for this managed resource.
- original
Default StringRoute Table Id
- id string
- The provider-assigned unique ID for this managed resource.
- original
Default stringRoute Table Id
- id str
- The provider-assigned unique ID for this managed resource.
- original_
default_ strroute_ table_ id
- id String
- The provider-assigned unique ID for this managed resource.
- original
Default StringRoute Table Id
Look up Existing DefaultRouteTableAssociation Resource
Get an existing DefaultRouteTableAssociation 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?: DefaultRouteTableAssociationState, opts?: CustomResourceOptions): DefaultRouteTableAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
original_default_route_table_id: Optional[str] = None,
timeouts: Optional[DefaultRouteTableAssociationTimeoutsArgs] = None,
transit_gateway_id: Optional[str] = None,
transit_gateway_route_table_id: Optional[str] = None) -> DefaultRouteTableAssociation
func GetDefaultRouteTableAssociation(ctx *Context, name string, id IDInput, state *DefaultRouteTableAssociationState, opts ...ResourceOption) (*DefaultRouteTableAssociation, error)
public static DefaultRouteTableAssociation Get(string name, Input<string> id, DefaultRouteTableAssociationState? state, CustomResourceOptions? opts = null)
public static DefaultRouteTableAssociation get(String name, Output<String> id, DefaultRouteTableAssociationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Original
Default stringRoute Table Id - Timeouts
Default
Route Table Association Timeouts - Transit
Gateway stringId - ID of the Transit Gateway to change the default association route table on.
- Transit
Gateway stringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
- Original
Default stringRoute Table Id - Timeouts
Default
Route Table Association Timeouts Args - Transit
Gateway stringId - ID of the Transit Gateway to change the default association route table on.
- Transit
Gateway stringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
- original
Default StringRoute Table Id - timeouts
Default
Route Table Association Timeouts - transit
Gateway StringId - ID of the Transit Gateway to change the default association route table on.
- transit
Gateway StringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
- original
Default stringRoute Table Id - timeouts
Default
Route Table Association Timeouts - transit
Gateway stringId - ID of the Transit Gateway to change the default association route table on.
- transit
Gateway stringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
- original_
default_ strroute_ table_ id - timeouts
Default
Route Table Association Timeouts Args - transit_
gateway_ strid - ID of the Transit Gateway to change the default association route table on.
- transit_
gateway_ strroute_ table_ id - ID of the Transit Gateway Route Table to be made the default association route table.
- original
Default StringRoute Table Id - timeouts Property Map
- transit
Gateway StringId - ID of the Transit Gateway to change the default association route table on.
- transit
Gateway StringRoute Table Id - ID of the Transit Gateway Route Table to be made the default association route table.
Supporting Types
DefaultRouteTableAssociationTimeouts, DefaultRouteTableAssociationTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.