1. Packages
  2. AWS
  3. API Docs
  4. ec2transitgateway
  5. RouteTablePropagation
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.ec2transitgateway.RouteTablePropagation

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages an EC2 Transit Gateway Route Table propagation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ec2transitgateway.RouteTablePropagation("example", {
        transitGatewayAttachmentId: exampleAwsEc2TransitGatewayVpcAttachment.id,
        transitGatewayRouteTableId: exampleAwsEc2TransitGatewayRouteTable.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2transitgateway.RouteTablePropagation("example",
        transit_gateway_attachment_id=example_aws_ec2_transit_gateway_vpc_attachment["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.NewRouteTablePropagation(ctx, "example", &ec2transitgateway.RouteTablePropagationArgs{
    			TransitGatewayAttachmentId: pulumi.Any(exampleAwsEc2TransitGatewayVpcAttachment.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.RouteTablePropagation("example", new()
        {
            TransitGatewayAttachmentId = exampleAwsEc2TransitGatewayVpcAttachment.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.RouteTablePropagation;
    import com.pulumi.aws.ec2transitgateway.RouteTablePropagationArgs;
    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 RouteTablePropagation("example", RouteTablePropagationArgs.builder()
                .transitGatewayAttachmentId(exampleAwsEc2TransitGatewayVpcAttachment.id())
                .transitGatewayRouteTableId(exampleAwsEc2TransitGatewayRouteTable.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ec2transitgateway:RouteTablePropagation
        properties:
          transitGatewayAttachmentId: ${exampleAwsEc2TransitGatewayVpcAttachment.id}
          transitGatewayRouteTableId: ${exampleAwsEc2TransitGatewayRouteTable.id}
    

    Create RouteTablePropagation Resource

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

    Constructor syntax

    new RouteTablePropagation(name: string, args: RouteTablePropagationArgs, opts?: CustomResourceOptions);
    @overload
    def RouteTablePropagation(resource_name: str,
                              args: RouteTablePropagationArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def RouteTablePropagation(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              transit_gateway_attachment_id: Optional[str] = None,
                              transit_gateway_route_table_id: Optional[str] = None)
    func NewRouteTablePropagation(ctx *Context, name string, args RouteTablePropagationArgs, opts ...ResourceOption) (*RouteTablePropagation, error)
    public RouteTablePropagation(string name, RouteTablePropagationArgs args, CustomResourceOptions? opts = null)
    public RouteTablePropagation(String name, RouteTablePropagationArgs args)
    public RouteTablePropagation(String name, RouteTablePropagationArgs args, CustomResourceOptions options)
    
    type: aws:ec2transitgateway:RouteTablePropagation
    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 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.
    args RouteTablePropagationArgs
    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 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.
    name String
    The unique name of the resource.
    args RouteTablePropagationArgs
    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 routeTablePropagationResource = new Aws.Ec2TransitGateway.RouteTablePropagation("routeTablePropagationResource", new()
    {
        TransitGatewayAttachmentId = "string",
        TransitGatewayRouteTableId = "string",
    });
    
    example, err := ec2transitgateway.NewRouteTablePropagation(ctx, "routeTablePropagationResource", &ec2transitgateway.RouteTablePropagationArgs{
    	TransitGatewayAttachmentId: pulumi.String("string"),
    	TransitGatewayRouteTableId: pulumi.String("string"),
    })
    
    var routeTablePropagationResource = new RouteTablePropagation("routeTablePropagationResource", RouteTablePropagationArgs.builder()
        .transitGatewayAttachmentId("string")
        .transitGatewayRouteTableId("string")
        .build());
    
    route_table_propagation_resource = aws.ec2transitgateway.RouteTablePropagation("routeTablePropagationResource",
        transit_gateway_attachment_id="string",
        transit_gateway_route_table_id="string")
    
    const routeTablePropagationResource = new aws.ec2transitgateway.RouteTablePropagation("routeTablePropagationResource", {
        transitGatewayAttachmentId: "string",
        transitGatewayRouteTableId: "string",
    });
    
    type: aws:ec2transitgateway:RouteTablePropagation
    properties:
        transitGatewayAttachmentId: string
        transitGatewayRouteTableId: string
    

    RouteTablePropagation 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 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.
    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.
    transitGatewayAttachmentId String
    Identifier of EC2 Transit Gateway Attachment.
    transitGatewayRouteTableId String
    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 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
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    Identifier of the resource
    resourceType String
    Type of the resource

    Look up Existing RouteTablePropagation Resource

    Get an existing RouteTablePropagation 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?: RouteTablePropagationState, opts?: CustomResourceOptions): RouteTablePropagation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            resource_id: Optional[str] = None,
            resource_type: Optional[str] = None,
            transit_gateway_attachment_id: Optional[str] = None,
            transit_gateway_route_table_id: Optional[str] = None) -> RouteTablePropagation
    func GetRouteTablePropagation(ctx *Context, name string, id IDInput, state *RouteTablePropagationState, opts ...ResourceOption) (*RouteTablePropagation, error)
    public static RouteTablePropagation Get(string name, Input<string> id, RouteTablePropagationState? state, CustomResourceOptions? opts = null)
    public static RouteTablePropagation get(String name, Output<String> id, RouteTablePropagationState 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:
    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.
    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.
    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.

    Import

    Using pulumi import, import aws_ec2_transit_gateway_route_table_propagation using the EC2 Transit Gateway Route Table identifier, an underscore, and the EC2 Transit Gateway Attachment identifier. For example:

    $ pulumi import aws:ec2transitgateway/routeTablePropagation:RouteTablePropagation example tgw-rtb-12345678_tgw-attach-87654321
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.60.0 published on Tuesday, Nov 19, 2024 by Pulumi