VpcEndpointRouteTableAssociation

Manages a VPC Endpoint Route Table Association

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Ec2.VpcEndpointRouteTableAssociation("example", new Aws.Ec2.VpcEndpointRouteTableAssociationArgs
        {
            RouteTableId = aws_route_table.Example.Id,
            VpcEndpointId = aws_vpc_endpoint.Example.Id,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ec2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ec2.NewVpcEndpointRouteTableAssociation(ctx, "example", &ec2.VpcEndpointRouteTableAssociationArgs{
			RouteTableId:  pulumi.Any(aws_route_table.Example.Id),
			VpcEndpointId: pulumi.Any(aws_vpc_endpoint.Example.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

example = aws.ec2.VpcEndpointRouteTableAssociation("example",
    route_table_id=aws_route_table["example"]["id"],
    vpc_endpoint_id=aws_vpc_endpoint["example"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2.VpcEndpointRouteTableAssociation("example", {
    routeTableId: aws_route_table.example.id,
    vpcEndpointId: aws_vpc_endpoint.example.id,
});

Create a VpcEndpointRouteTableAssociation Resource

new VpcEndpointRouteTableAssociation(name: string, args: VpcEndpointRouteTableAssociationArgs, opts?: CustomResourceOptions);
@overload
def VpcEndpointRouteTableAssociation(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     route_table_id: Optional[str] = None,
                                     vpc_endpoint_id: Optional[str] = None)
@overload
def VpcEndpointRouteTableAssociation(resource_name: str,
                                     args: VpcEndpointRouteTableAssociationArgs,
                                     opts: Optional[ResourceOptions] = None)
func NewVpcEndpointRouteTableAssociation(ctx *Context, name string, args VpcEndpointRouteTableAssociationArgs, opts ...ResourceOption) (*VpcEndpointRouteTableAssociation, error)
public VpcEndpointRouteTableAssociation(string name, VpcEndpointRouteTableAssociationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args VpcEndpointRouteTableAssociationArgs
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 VpcEndpointRouteTableAssociationArgs
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 VpcEndpointRouteTableAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VpcEndpointRouteTableAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

VpcEndpointRouteTableAssociation Resource Properties

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

Inputs

The VpcEndpointRouteTableAssociation resource accepts the following input properties:

RouteTableId string
Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
VpcEndpointId string
Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
RouteTableId string
Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
VpcEndpointId string
Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
routeTableId string
Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
vpcEndpointId string
Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
route_table_id str
Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
vpc_endpoint_id str
Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.

Outputs

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

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

Look up an Existing VpcEndpointRouteTableAssociation Resource

Get an existing VpcEndpointRouteTableAssociation 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?: VpcEndpointRouteTableAssociationState, opts?: CustomResourceOptions): VpcEndpointRouteTableAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        route_table_id: Optional[str] = None,
        vpc_endpoint_id: Optional[str] = None) -> VpcEndpointRouteTableAssociation
func GetVpcEndpointRouteTableAssociation(ctx *Context, name string, id IDInput, state *VpcEndpointRouteTableAssociationState, opts ...ResourceOption) (*VpcEndpointRouteTableAssociation, error)
public static VpcEndpointRouteTableAssociation Get(string name, Input<string> id, VpcEndpointRouteTableAssociationState? 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:

RouteTableId string
Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
VpcEndpointId string
Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
RouteTableId string
Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
VpcEndpointId string
Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
routeTableId string
Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
vpcEndpointId string
Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
route_table_id str
Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
vpc_endpoint_id str
Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.

Import

VPC Endpoint Route Table Associations can be imported using vpc_endpoint_id together with route_table_id, e.g.

 $ pulumi import aws:ec2/vpcEndpointRouteTableAssociation:VpcEndpointRouteTableAssociation example vpce-aaaaaaaa/rtb-bbbbbbbb

Package Details

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