LocalGatewayRouteTableVirtualInterfaceGroupAssociation class
Manages an EC2 Local Gateway Route Table Virtual Interface Group Association. More information can be found in the Outposts User Guide.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ec2.getLocalGatewayRouteTable({
outpostArn: "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef",
});
const exampleGetLocalGatewayVirtualInterfaceGroup = example.then(example => aws.ec2.getLocalGatewayVirtualInterfaceGroup({
localGatewayId: example.localGatewayId,
}));
const exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation = new aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation("example", {
localGatewayRouteTableId: example.then(example => example.id),
localGatewayVirtualInterfaceGroupId: exampleGetLocalGatewayVirtualInterfaceGroup.then(exampleGetLocalGatewayVirtualInterfaceGroup => exampleGetLocalGatewayVirtualInterfaceGroup.id),
tags: {
Name: "example",
},
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.get_local_gateway_route_table(outpost_arn="arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef")
example_get_local_gateway_virtual_interface_group = aws.ec2.get_local_gateway_virtual_interface_group(local_gateway_id=example.local_gateway_id)
example_local_gateway_route_table_virtual_interface_group_association = aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation("example",
local_gateway_route_table_id=example.id,
local_gateway_virtual_interface_group_id=example_get_local_gateway_virtual_interface_group.id,
tags={
"Name": "example",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Ec2.GetLocalGatewayRouteTable.Invoke(new()
{
OutpostArn = "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef",
});
var exampleGetLocalGatewayVirtualInterfaceGroup = Aws.Ec2.GetLocalGatewayVirtualInterfaceGroup.Invoke(new()
{
LocalGatewayId = example.Apply(getLocalGatewayRouteTableResult => getLocalGatewayRouteTableResult.LocalGatewayId),
});
var exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation = new Aws.Ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation("example", new()
{
LocalGatewayRouteTableId = example.Apply(getLocalGatewayRouteTableResult => getLocalGatewayRouteTableResult.Id),
LocalGatewayVirtualInterfaceGroupId = exampleGetLocalGatewayVirtualInterfaceGroup.Apply(getLocalGatewayVirtualInterfaceGroupResult => getLocalGatewayVirtualInterfaceGroupResult.Id),
Tags =
{
{ "Name", "example" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := ec2.LookupLocalGatewayRouteTable(ctx, &ec2.LookupLocalGatewayRouteTableArgs{
OutpostArn: pulumi.StringRef("arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef"),
}, nil)
if err != nil {
return err
}
exampleGetLocalGatewayVirtualInterfaceGroup, err := ec2.GetLocalGatewayVirtualInterfaceGroup(ctx, &ec2.GetLocalGatewayVirtualInterfaceGroupArgs{
LocalGatewayId: pulumi.StringRef(example.LocalGatewayId),
}, nil)
if err != nil {
return err
}
_, err = ec2.NewLocalGatewayRouteTableVirtualInterfaceGroupAssociation(ctx, "example", &ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs{
LocalGatewayRouteTableId: pulumi.String(example.Id),
LocalGatewayVirtualInterfaceGroupId: pulumi.String(exampleGetLocalGatewayVirtualInterfaceGroup.Id),
Tags: pulumi.StringMap{
"Name": pulumi.String("example"),
},
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_ec2_getlocalgatewayroutetable" "example" {
outpost_arn = "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef"
}
data "aws_ec2_getlocalgatewayvirtualinterfacegroup" "exampleGetLocalGatewayVirtualInterfaceGroup" {
local_gateway_id = data.aws_ec2_getlocalgatewayroutetable.example.local_gateway_id
}
resource "aws_ec2_localgatewayroutetablevirtualinterfacegroupassociation" "example" {
local_gateway_route_table_id = data.aws_ec2_getlocalgatewayroutetable.example.id
local_gateway_virtual_interface_group_id = data.aws_ec2_getlocalgatewayvirtualinterfacegroup.exampleGetLocalGatewayVirtualInterfaceGroup.id
tags = {
"Name" = "example"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetLocalGatewayRouteTableArgs;
import com.pulumi.aws.ec2.inputs.GetLocalGatewayVirtualInterfaceGroupArgs;
import com.pulumi.aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation;
import com.pulumi.aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
final var example = Ec2Functions.getLocalGatewayRouteTable(GetLocalGatewayRouteTableArgs.builder()
.outpostArn("arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef")
.build());
final var exampleGetLocalGatewayVirtualInterfaceGroup = Ec2Functions.getLocalGatewayVirtualInterfaceGroup(GetLocalGatewayVirtualInterfaceGroupArgs.builder()
.localGatewayId(example.localGatewayId())
.build());
var exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation = new LocalGatewayRouteTableVirtualInterfaceGroupAssociation("exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation", LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs.builder()
.localGatewayRouteTableId(example.id())
.localGatewayVirtualInterfaceGroupId(exampleGetLocalGatewayVirtualInterfaceGroup.id())
.tags(Map.of("Name", "example"))
.build());
}
}
resources:
exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation:
type: aws:ec2:LocalGatewayRouteTableVirtualInterfaceGroupAssociation
name: example
properties:
localGatewayRouteTableId: ${example.id}
localGatewayVirtualInterfaceGroupId: ${exampleGetLocalGatewayVirtualInterfaceGroup.id}
tags:
Name: example
variables:
example:
fn::invoke:
function: aws:ec2:getLocalGatewayRouteTable
arguments:
outpostArn: arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef
exampleGetLocalGatewayVirtualInterfaceGroup:
fn::invoke:
function: aws:ec2:getLocalGatewayVirtualInterfaceGroup
arguments:
localGatewayId: ${example.localGatewayId}
Import
Using pulumi import, import aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation using the Local Gateway Route Table Virtual Interface Group Association identifier. For example:
$ pulumi import aws:ec2/localGatewayRouteTableVirtualInterfaceGroupAssociation:LocalGatewayRouteTableVirtualInterfaceGroupAssociation example lgw-vif-grp-assoc-1234567890abcdef
Constructors
- LocalGatewayRouteTableVirtualInterfaceGroupAssociation(String name, {LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs? args, CustomResourceOptions? options})
-
Creates a new LocalGatewayRouteTableVirtualInterfaceGroupAssociation.
nameThe Pulumi resource name.argsArguments used to configure this LocalGatewayRouteTableVirtualInterfaceGroupAssociation. The set of arguments for LocalGatewayRouteTableVirtualInterfaceGroupAssociation.optionsResource options controlling this resource's behavior. - LocalGatewayRouteTableVirtualInterfaceGroupAssociation.reference(String urn)
- Creates a typed reference to an existing LocalGatewayRouteTableVirtualInterfaceGroupAssociation resource.
Properties
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
localGatewayId
↔ Output<
String> -
Identifier of the EC2 Local Gateway.
latefinal
-
localGatewayRouteTableArn
↔ Output<
String> -
ARN of the EC2 Local Gateway Route Table.
latefinal
-
localGatewayRouteTableId
↔ Output<
String> -
Identifier of EC2 Local Gateway Route Table.
latefinal
-
localGatewayVirtualInterfaceGroupId
↔ Output<
String> -
Identifier of EC2 Local Gateway Virtual Interface Group.
latefinal
-
ownerId
↔ Output<
String> -
Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
latefinal
-
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
↔ Output<
String> -
State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
latefinal
-
Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.latefinal -
Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.latefinal -
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {LocalGatewayRouteTableVirtualInterfaceGroupAssociationState? state, CustomResourceOptions? options}) → LocalGatewayRouteTableVirtualInterfaceGroupAssociation -
Gets an existing LocalGatewayRouteTableVirtualInterfaceGroupAssociation resource's state with the given
nameandid.