PeeringAttachmentAccepter

class PeeringAttachmentAccepter : KotlinCustomResource

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

Example Usage

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(aws_ec2_transit_gateway_peering_attachment.example().id())
.tags(Map.of("Name", "Example cross-account attachment"))
.build());
}
}

Import

aws_ec2_transit_gateway_peering_attachment_accepter can be imported by using the EC2 Transit Gateway Attachment identifier, e.g.,

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

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val peerAccountId: Output<String>

Identifier of the AWS account that owns the EC2 TGW peering.

Link copied to clipboard
val peerRegion: Output<String>
Link copied to clipboard

Identifier of EC2 Transit Gateway to peer with.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard

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

Link copied to clipboard

Identifier of EC2 Transit Gateway.

Link copied to clipboard
val urn: Output<String>