RouteTablePropagation

Manages an EC2 Transit Gateway Route Table propagation.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Ec2TransitGateway.RouteTablePropagation("example", new Aws.Ec2TransitGateway.RouteTablePropagationArgs
        {
            TransitGatewayAttachmentId = aws_ec2_transit_gateway_vpc_attachment.Example.Id,
            TransitGatewayRouteTableId = aws_ec2_transit_gateway_route_table.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.NewRouteTablePropagation(ctx, "example", &ec2transitgateway.RouteTablePropagationArgs{
            TransitGatewayAttachmentId: pulumi.String(aws_ec2_transit_gateway_vpc_attachment.Example.Id),
            TransitGatewayRouteTableId: pulumi.String(aws_ec2_transit_gateway_route_table.Example.Id),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.ec2transitgateway.RouteTablePropagation("example",
    transit_gateway_attachment_id=aws_ec2_transit_gateway_vpc_attachment["example"]["id"],
    transit_gateway_route_table_id=aws_ec2_transit_gateway_route_table["example"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.RouteTablePropagation("example", {
    transitGatewayAttachmentId: aws_ec2_transit_gateway_vpc_attachment_example.id,
    transitGatewayRouteTableId: aws_ec2_transit_gateway_route_table_example.id,
});

Create a RouteTablePropagation Resource

def RouteTablePropagation(resource_name, opts=None, transit_gateway_attachment_id=None, transit_gateway_route_table_id=None, __props__=None);
name string
The unique name of the resource.
args RouteTablePropagationArgs
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 RouteTablePropagationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RouteTablePropagationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

RouteTablePropagation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The RouteTablePropagation resource accepts the following input properties:

TransitGatewayAttachmentId string

Identifier of EC2 Transit Gateway Attachment.

TransitGatewayRouteTableId string

Identifier of EC2 Transit Gateway Route Table.

TransitGatewayAttachmentId string

Identifier of EC2 Transit Gateway Attachment.

TransitGatewayRouteTableId string

Identifier of EC2 Transit Gateway Route Table.

transitGatewayAttachmentId string

Identifier of EC2 Transit Gateway Attachment.

transitGatewayRouteTableId string

Identifier of EC2 Transit Gateway Route Table.

transit_gateway_attachment_id str

Identifier of EC2 Transit Gateway Attachment.

transit_gateway_route_table_id str

Identifier of EC2 Transit Gateway Route Table.

Outputs

All input properties are implicitly available as output properties. Additionally, the RouteTablePropagation resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
ResourceId string

Identifier of the resource

ResourceType string

Type of the resource

Id string
The provider-assigned unique ID for this managed resource.
ResourceId string

Identifier of the resource

ResourceType string

Type of the resource

id string
The provider-assigned unique ID for this managed resource.
resourceId string

Identifier of the resource

resourceType string

Type of the resource

id str
The provider-assigned unique ID for this managed resource.
resource_id str

Identifier of the resource

resource_type str

Type of the resource

Look up an Existing RouteTablePropagation Resource

Get an existing RouteTablePropagation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, resource_id=None, resource_type=None, transit_gateway_attachment_id=None, transit_gateway_route_table_id=None, __props__=None);
func GetRouteTablePropagation(ctx *Context, name string, id IDInput, state *RouteTablePropagationState, opts ...ResourceOption) (*RouteTablePropagation, error)
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:

ResourceId string

Identifier of the resource

ResourceType string

Type of the resource

TransitGatewayAttachmentId string

Identifier of EC2 Transit Gateway Attachment.

TransitGatewayRouteTableId string

Identifier of EC2 Transit Gateway Route Table.

ResourceId string

Identifier of the resource

ResourceType string

Type of the resource

TransitGatewayAttachmentId string

Identifier of EC2 Transit Gateway Attachment.

TransitGatewayRouteTableId string

Identifier of EC2 Transit Gateway Route Table.

resourceId string

Identifier of the resource

resourceType string

Type of the resource

transitGatewayAttachmentId string

Identifier of EC2 Transit Gateway Attachment.

transitGatewayRouteTableId string

Identifier of EC2 Transit Gateway Route Table.

resource_id str

Identifier of the resource

resource_type str

Type of the resource

transit_gateway_attachment_id str

Identifier of EC2 Transit Gateway Attachment.

transit_gateway_route_table_id str

Identifier of EC2 Transit Gateway Route Table.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.