1. Packages
  2. AWS
  3. API Docs
  4. ec2transitgateway
  5. DefaultRouteTablePropagation
AWS v6.59.1 published on Tuesday, Nov 12, 2024 by Pulumi

aws.ec2transitgateway.DefaultRouteTablePropagation

Explore with Pulumi AI

aws logo
AWS v6.59.1 published on Tuesday, Nov 12, 2024 by Pulumi

    Resource for managing an AWS EC2 (Elastic Compute Cloud) Transit Gateway Default Route Table Propagation.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ec2transitgateway.DefaultRouteTablePropagation("example", {
        transitGatewayId: exampleAwsEc2TransitGateway.id,
        transitGatewayRouteTableId: exampleAwsEc2TransitGatewayRouteTable.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2transitgateway.DefaultRouteTablePropagation("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.NewDefaultRouteTablePropagation(ctx, "example", &ec2transitgateway.DefaultRouteTablePropagationArgs{
    			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.DefaultRouteTablePropagation("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.DefaultRouteTablePropagation;
    import com.pulumi.aws.ec2transitgateway.DefaultRouteTablePropagationArgs;
    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 DefaultRouteTablePropagation("example", DefaultRouteTablePropagationArgs.builder()
                .transitGatewayId(exampleAwsEc2TransitGateway.id())
                .transitGatewayRouteTableId(exampleAwsEc2TransitGatewayRouteTable.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ec2transitgateway:DefaultRouteTablePropagation
        properties:
          transitGatewayId: ${exampleAwsEc2TransitGateway.id}
          transitGatewayRouteTableId: ${exampleAwsEc2TransitGatewayRouteTable.id}
    

    Create DefaultRouteTablePropagation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DefaultRouteTablePropagation(name: string, args: DefaultRouteTablePropagationArgs, opts?: CustomResourceOptions);
    @overload
    def DefaultRouteTablePropagation(resource_name: str,
                                     args: DefaultRouteTablePropagationArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def DefaultRouteTablePropagation(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     transit_gateway_id: Optional[str] = None,
                                     transit_gateway_route_table_id: Optional[str] = None,
                                     timeouts: Optional[DefaultRouteTablePropagationTimeoutsArgs] = None)
    func NewDefaultRouteTablePropagation(ctx *Context, name string, args DefaultRouteTablePropagationArgs, opts ...ResourceOption) (*DefaultRouteTablePropagation, error)
    public DefaultRouteTablePropagation(string name, DefaultRouteTablePropagationArgs args, CustomResourceOptions? opts = null)
    public DefaultRouteTablePropagation(String name, DefaultRouteTablePropagationArgs args)
    public DefaultRouteTablePropagation(String name, DefaultRouteTablePropagationArgs args, CustomResourceOptions options)
    
    type: aws:ec2transitgateway:DefaultRouteTablePropagation
    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 DefaultRouteTablePropagationArgs
    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 DefaultRouteTablePropagationArgs
    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 DefaultRouteTablePropagationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefaultRouteTablePropagationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefaultRouteTablePropagationArgs
    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 defaultRouteTablePropagationResource = new Aws.Ec2TransitGateway.DefaultRouteTablePropagation("defaultRouteTablePropagationResource", new()
    {
        TransitGatewayId = "string",
        TransitGatewayRouteTableId = "string",
        Timeouts = new Aws.Ec2TransitGateway.Inputs.DefaultRouteTablePropagationTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ec2transitgateway.NewDefaultRouteTablePropagation(ctx, "defaultRouteTablePropagationResource", &ec2transitgateway.DefaultRouteTablePropagationArgs{
    	TransitGatewayId:           pulumi.String("string"),
    	TransitGatewayRouteTableId: pulumi.String("string"),
    	Timeouts: &ec2transitgateway.DefaultRouteTablePropagationTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var defaultRouteTablePropagationResource = new DefaultRouteTablePropagation("defaultRouteTablePropagationResource", DefaultRouteTablePropagationArgs.builder()
        .transitGatewayId("string")
        .transitGatewayRouteTableId("string")
        .timeouts(DefaultRouteTablePropagationTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    default_route_table_propagation_resource = aws.ec2transitgateway.DefaultRouteTablePropagation("defaultRouteTablePropagationResource",
        transit_gateway_id="string",
        transit_gateway_route_table_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const defaultRouteTablePropagationResource = new aws.ec2transitgateway.DefaultRouteTablePropagation("defaultRouteTablePropagationResource", {
        transitGatewayId: "string",
        transitGatewayRouteTableId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:ec2transitgateway:DefaultRouteTablePropagation
    properties:
        timeouts:
            create: string
            delete: string
            update: string
        transitGatewayId: string
        transitGatewayRouteTableId: string
    

    DefaultRouteTablePropagation 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 DefaultRouteTablePropagation resource accepts the following input properties:

    TransitGatewayId string
    ID of the Transit Gateway to change the default association route table on.
    TransitGatewayRouteTableId string
    ID of the Transit Gateway Route Table to be made the default association route table.
    Timeouts DefaultRouteTablePropagationTimeouts
    TransitGatewayId string
    ID of the Transit Gateway to change the default association route table on.
    TransitGatewayRouteTableId string
    ID of the Transit Gateway Route Table to be made the default association route table.
    Timeouts DefaultRouteTablePropagationTimeoutsArgs
    transitGatewayId String
    ID of the Transit Gateway to change the default association route table on.
    transitGatewayRouteTableId String
    ID of the Transit Gateway Route Table to be made the default association route table.
    timeouts DefaultRouteTablePropagationTimeouts
    transitGatewayId string
    ID of the Transit Gateway to change the default association route table on.
    transitGatewayRouteTableId string
    ID of the Transit Gateway Route Table to be made the default association route table.
    timeouts DefaultRouteTablePropagationTimeouts
    transit_gateway_id str
    ID of the Transit Gateway to change the default association route table on.
    transit_gateway_route_table_id str
    ID of the Transit Gateway Route Table to be made the default association route table.
    timeouts DefaultRouteTablePropagationTimeoutsArgs
    transitGatewayId String
    ID of the Transit Gateway to change the default association route table on.
    transitGatewayRouteTableId String
    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 DefaultRouteTablePropagation resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    OriginalDefaultRouteTableId string
    Id string
    The provider-assigned unique ID for this managed resource.
    OriginalDefaultRouteTableId string
    id String
    The provider-assigned unique ID for this managed resource.
    originalDefaultRouteTableId String
    id string
    The provider-assigned unique ID for this managed resource.
    originalDefaultRouteTableId string
    id str
    The provider-assigned unique ID for this managed resource.
    original_default_route_table_id str
    id String
    The provider-assigned unique ID for this managed resource.
    originalDefaultRouteTableId String

    Look up Existing DefaultRouteTablePropagation Resource

    Get an existing DefaultRouteTablePropagation 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?: DefaultRouteTablePropagationState, opts?: CustomResourceOptions): DefaultRouteTablePropagation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            original_default_route_table_id: Optional[str] = None,
            timeouts: Optional[DefaultRouteTablePropagationTimeoutsArgs] = None,
            transit_gateway_id: Optional[str] = None,
            transit_gateway_route_table_id: Optional[str] = None) -> DefaultRouteTablePropagation
    func GetDefaultRouteTablePropagation(ctx *Context, name string, id IDInput, state *DefaultRouteTablePropagationState, opts ...ResourceOption) (*DefaultRouteTablePropagation, error)
    public static DefaultRouteTablePropagation Get(string name, Input<string> id, DefaultRouteTablePropagationState? state, CustomResourceOptions? opts = null)
    public static DefaultRouteTablePropagation get(String name, Output<String> id, DefaultRouteTablePropagationState 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.
    The following state arguments are supported:
    OriginalDefaultRouteTableId string
    Timeouts DefaultRouteTablePropagationTimeouts
    TransitGatewayId string
    ID of the Transit Gateway to change the default association route table on.
    TransitGatewayRouteTableId string
    ID of the Transit Gateway Route Table to be made the default association route table.
    OriginalDefaultRouteTableId string
    Timeouts DefaultRouteTablePropagationTimeoutsArgs
    TransitGatewayId string
    ID of the Transit Gateway to change the default association route table on.
    TransitGatewayRouteTableId string
    ID of the Transit Gateway Route Table to be made the default association route table.
    originalDefaultRouteTableId String
    timeouts DefaultRouteTablePropagationTimeouts
    transitGatewayId String
    ID of the Transit Gateway to change the default association route table on.
    transitGatewayRouteTableId String
    ID of the Transit Gateway Route Table to be made the default association route table.
    originalDefaultRouteTableId string
    timeouts DefaultRouteTablePropagationTimeouts
    transitGatewayId string
    ID of the Transit Gateway to change the default association route table on.
    transitGatewayRouteTableId string
    ID of the Transit Gateway Route Table to be made the default association route table.
    original_default_route_table_id str
    timeouts DefaultRouteTablePropagationTimeoutsArgs
    transit_gateway_id str
    ID of the Transit Gateway to change the default association route table on.
    transit_gateway_route_table_id str
    ID of the Transit Gateway Route Table to be made the default association route table.
    originalDefaultRouteTableId String
    timeouts Property Map
    transitGatewayId String
    ID of the Transit Gateway to change the default association route table on.
    transitGatewayRouteTableId String
    ID of the Transit Gateway Route Table to be made the default association route table.

    Supporting Types

    DefaultRouteTablePropagationTimeouts, DefaultRouteTablePropagationTimeoutsArgs

    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.
    aws logo
    AWS v6.59.1 published on Tuesday, Nov 12, 2024 by Pulumi