aws.ec2.VpcEndpointRouteTableAssociation
Explore with Pulumi AI
Manages a VPC Endpoint Route Table Association
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2.VpcEndpointRouteTableAssociation("example", {
routeTableId: exampleAwsRouteTable.id,
vpcEndpointId: exampleAwsVpcEndpoint.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.VpcEndpointRouteTableAssociation("example",
route_table_id=example_aws_route_table["id"],
vpc_endpoint_id=example_aws_vpc_endpoint["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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(exampleAwsRouteTable.Id),
VpcEndpointId: pulumi.Any(exampleAwsVpcEndpoint.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.Ec2.VpcEndpointRouteTableAssociation("example", new()
{
RouteTableId = exampleAwsRouteTable.Id,
VpcEndpointId = exampleAwsVpcEndpoint.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpcEndpointRouteTableAssociation;
import com.pulumi.aws.ec2.VpcEndpointRouteTableAssociationArgs;
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 VpcEndpointRouteTableAssociation("example", VpcEndpointRouteTableAssociationArgs.builder()
.routeTableId(exampleAwsRouteTable.id())
.vpcEndpointId(exampleAwsVpcEndpoint.id())
.build());
}
}
resources:
example:
type: aws:ec2:VpcEndpointRouteTableAssociation
properties:
routeTableId: ${exampleAwsRouteTable.id}
vpcEndpointId: ${exampleAwsVpcEndpoint.id}
Create VpcEndpointRouteTableAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcEndpointRouteTableAssociation(name: string, args: VpcEndpointRouteTableAssociationArgs, opts?: CustomResourceOptions);
@overload
def VpcEndpointRouteTableAssociation(resource_name: str,
args: VpcEndpointRouteTableAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcEndpointRouteTableAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
route_table_id: Optional[str] = None,
vpc_endpoint_id: Optional[str] = None)
func NewVpcEndpointRouteTableAssociation(ctx *Context, name string, args VpcEndpointRouteTableAssociationArgs, opts ...ResourceOption) (*VpcEndpointRouteTableAssociation, error)
public VpcEndpointRouteTableAssociation(string name, VpcEndpointRouteTableAssociationArgs args, CustomResourceOptions? opts = null)
public VpcEndpointRouteTableAssociation(String name, VpcEndpointRouteTableAssociationArgs args)
public VpcEndpointRouteTableAssociation(String name, VpcEndpointRouteTableAssociationArgs args, CustomResourceOptions options)
type: aws:ec2:VpcEndpointRouteTableAssociation
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 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.
- name String
- The unique name of the resource.
- args VpcEndpointRouteTableAssociationArgs
- 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 vpcEndpointRouteTableAssociationResource = new Aws.Ec2.VpcEndpointRouteTableAssociation("vpcEndpointRouteTableAssociationResource", new()
{
RouteTableId = "string",
VpcEndpointId = "string",
});
example, err := ec2.NewVpcEndpointRouteTableAssociation(ctx, "vpcEndpointRouteTableAssociationResource", &ec2.VpcEndpointRouteTableAssociationArgs{
RouteTableId: pulumi.String("string"),
VpcEndpointId: pulumi.String("string"),
})
var vpcEndpointRouteTableAssociationResource = new VpcEndpointRouteTableAssociation("vpcEndpointRouteTableAssociationResource", VpcEndpointRouteTableAssociationArgs.builder()
.routeTableId("string")
.vpcEndpointId("string")
.build());
vpc_endpoint_route_table_association_resource = aws.ec2.VpcEndpointRouteTableAssociation("vpcEndpointRouteTableAssociationResource",
route_table_id="string",
vpc_endpoint_id="string")
const vpcEndpointRouteTableAssociationResource = new aws.ec2.VpcEndpointRouteTableAssociation("vpcEndpointRouteTableAssociationResource", {
routeTableId: "string",
vpcEndpointId: "string",
});
type: aws:ec2:VpcEndpointRouteTableAssociation
properties:
routeTableId: string
vpcEndpointId: string
VpcEndpointRouteTableAssociation 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 VpcEndpointRouteTableAssociation resource accepts the following input properties:
- Route
Table stringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- Vpc
Endpoint stringId - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- Route
Table stringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- Vpc
Endpoint stringId - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- route
Table StringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- vpc
Endpoint StringId - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- route
Table stringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- vpc
Endpoint stringId - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- route_
table_ strid - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- vpc_
endpoint_ strid - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- route
Table StringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- vpc
Endpoint StringId - 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 string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up 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)
public static VpcEndpointRouteTableAssociation get(String name, Output<String> id, VpcEndpointRouteTableAssociationState 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.
- Route
Table stringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- Vpc
Endpoint stringId - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- Route
Table stringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- Vpc
Endpoint stringId - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- route
Table StringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- vpc
Endpoint StringId - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- route
Table stringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- vpc
Endpoint stringId - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- route_
table_ strid - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- vpc_
endpoint_ strid - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
- route
Table StringId - Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
- vpc
Endpoint StringId - Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.
Import
Using pulumi import
, import VPC Endpoint Route Table Associations using vpc_endpoint_id
together with route_table_id
. For example:
$ pulumi import aws:ec2/vpcEndpointRouteTableAssociation:VpcEndpointRouteTableAssociation example vpce-aaaaaaaa/rtb-bbbbbbbb
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.