Connect class
Manages an EC2 Transit Gateway Connect.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2transitgateway.VpcAttachment("example", {
subnetIds: [exampleAwsSubnet.id],
transitGatewayId: exampleAwsEc2TransitGateway.id,
vpcId: exampleAwsVpc.id,
});
const attachment = new aws.ec2transitgateway.Connect("attachment", {
transportAttachmentId: example.id,
transitGatewayId: exampleAwsEc2TransitGateway.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.VpcAttachment("example",
subnet_ids=[example_aws_subnet["id"]],
transit_gateway_id=example_aws_ec2_transit_gateway["id"],
vpc_id=example_aws_vpc["id"])
attachment = aws.ec2transitgateway.Connect("attachment",
transport_attachment_id=example.id,
transit_gateway_id=example_aws_ec2_transit_gateway["id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2TransitGateway.VpcAttachment("example", new()
{
SubnetIds = new[]
{
exampleAwsSubnet.Id,
},
TransitGatewayId = exampleAwsEc2TransitGateway.Id,
VpcId = exampleAwsVpc.Id,
});
var attachment = new Aws.Ec2TransitGateway.Connect("attachment", new()
{
TransportAttachmentId = example.Id,
TransitGatewayId = exampleAwsEc2TransitGateway.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2transitgateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := ec2transitgateway.NewVpcAttachment(ctx, "example", &ec2transitgateway.VpcAttachmentArgs{
SubnetIds: pulumi.StringArray{
exampleAwsSubnet.Id,
},
TransitGatewayId: pulumi.Any(exampleAwsEc2TransitGateway.Id),
VpcId: pulumi.Any(exampleAwsVpc.Id),
})
if err != nil {
return err
}
_, err = ec2transitgateway.NewConnect(ctx, "attachment", &ec2transitgateway.ConnectArgs{
TransportAttachmentId: example.ID().ToIDOutput().ToStringOutput(),
TransitGatewayId: pulumi.Any(exampleAwsEc2TransitGateway.Id),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2transitgateway_vpcattachment" "example" {
subnet_ids = [exampleAwsSubnet.id]
transit_gateway_id = exampleAwsEc2TransitGateway.id
vpc_id = exampleAwsVpc.id
}
resource "aws_ec2transitgateway_connect" "attachment" {
transport_attachment_id = aws_ec2transitgateway_vpcattachment.example.id
transit_gateway_id = exampleAwsEc2TransitGateway.id
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.VpcAttachment;
import com.pulumi.aws.ec2transitgateway.VpcAttachmentArgs;
import com.pulumi.aws.ec2transitgateway.Connect;
import com.pulumi.aws.ec2transitgateway.ConnectArgs;
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) {
var example = new VpcAttachment("example", VpcAttachmentArgs.builder()
.subnetIds(exampleAwsSubnet.id())
.transitGatewayId(exampleAwsEc2TransitGateway.id())
.vpcId(exampleAwsVpc.id())
.build());
var attachment = new Connect("attachment", ConnectArgs.builder()
.transportAttachmentId(example.id())
.transitGatewayId(exampleAwsEc2TransitGateway.id())
.build());
}
}
resources:
example:
type: aws:ec2transitgateway:VpcAttachment
properties:
subnetIds:
- ${exampleAwsSubnet.id}
transitGatewayId: ${exampleAwsEc2TransitGateway.id}
vpcId: ${exampleAwsVpc.id}
attachment:
type: aws:ec2transitgateway:Connect
properties:
transportAttachmentId: ${example.id}
transitGatewayId: ${exampleAwsEc2TransitGateway.id}
Import
Using pulumi import, import aws.ec2transitgateway.Connect using the EC2 Transit Gateway Connect identifier. For example:
$ pulumi import aws:ec2transitgateway/connect:Connect example tgw-attach-12345678
Constructors
- Connect(String name, {ConnectArgs? args, CustomResourceOptions? options})
-
Creates a new Connect.
nameThe Pulumi resource name.argsArguments used to configure this Connect. The set of arguments for Connect.optionsResource options controlling this resource's behavior. - Connect.reference(String urn)
- Creates a typed reference to an existing Connect 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
-
protocol
↔ Output<
String?> -
The tunnel protocol. Valid values:
gre. Default isgre.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
-
Key-value tags for the EC2 Transit Gateway Connect. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.latefinal -
A 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
-
transitGatewayDefaultRouteTableAssociation
↔ Output<
bool?> -
Boolean whether the Connect should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value:
true.latefinal -
transitGatewayDefaultRouteTablePropagation
↔ Output<
bool?> -
Boolean whether the Connect should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value:
true.latefinal -
transitGatewayId
↔ Output<
String> -
Identifier of EC2 Transit Gateway.
latefinal
-
transportAttachmentId
↔ Output<
String> -
The underlaying VPC attachment
latefinal
-
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