PeeringAttachmentAccepterArgs

data class PeeringAttachmentAccepterArgs(val tags: Output<Map<String, String>>? = null, val transitGatewayAttachmentId: Output<String>? = null) : ConvertibleToJava<PeeringAttachmentAccepterArgs>

Manages the accepter's side of an EC2 Transit Gateway Peering Attachment.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2transitgateway.PeeringAttachmentAccepter("example", {
transitGatewayAttachmentId: exampleAwsEc2TransitGatewayPeeringAttachment.id,
tags: {
Name: "Example cross-account attachment",
},
});
import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.PeeringAttachmentAccepter("example",
transit_gateway_attachment_id=example_aws_ec2_transit_gateway_peering_attachment["id"],
tags={
"Name": "Example cross-account attachment",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2TransitGateway.PeeringAttachmentAccepter("example", new()
{
TransitGatewayAttachmentId = exampleAwsEc2TransitGatewayPeeringAttachment.Id,
Tags =
{
{ "Name", "Example cross-account attachment" },
},
});
});
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.NewPeeringAttachmentAccepter(ctx, "example", &ec2transitgateway.PeeringAttachmentAccepterArgs{
TransitGatewayAttachmentId: pulumi.Any(exampleAwsEc2TransitGatewayPeeringAttachment.Id),
Tags: pulumi.StringMap{
"Name": pulumi.String("Example cross-account attachment"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.PeeringAttachmentAccepter;
import com.pulumi.aws.ec2transitgateway.PeeringAttachmentAccepterArgs;
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 PeeringAttachmentAccepter("example", PeeringAttachmentAccepterArgs.builder()
.transitGatewayAttachmentId(exampleAwsEc2TransitGatewayPeeringAttachment.id())
.tags(Map.of("Name", "Example cross-account attachment"))
.build());
}
}
resources:
example:
type: aws:ec2transitgateway:PeeringAttachmentAccepter
properties:
transitGatewayAttachmentId: ${exampleAwsEc2TransitGatewayPeeringAttachment.id}
tags:
Name: Example cross-account attachment

Import

Using pulumi import, import aws_ec2_transit_gateway_peering_attachment_accepter using the EC2 Transit Gateway Attachment identifier. For example:

$ pulumi import aws:ec2transitgateway/peeringAttachmentAccepter:PeeringAttachmentAccepter example tgw-attach-12345678

Constructors

Link copied to clipboard
constructor(tags: Output<Map<String, String>>? = null, transitGatewayAttachmentId: Output<String>? = null)

Properties

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value tags for the EC2 Transit Gateway Peering Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val transitGatewayAttachmentId: Output<String>? = null

The ID of the EC2 Transit Gateway Peering Attachment to manage.

Functions

Link copied to clipboard
open override fun toJava(): PeeringAttachmentAccepterArgs