Transit Gateway Peering Attachment Accepter Args
data class TransitGatewayPeeringAttachmentAccepterArgs constructor(val tags: Output<Map<String, String>>? = null, val transitGatewayAttachmentId: Output<String>? = null) : ConvertibleToJava<TransitGatewayPeeringAttachmentAccepterArgs>
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());
}
}
Content copied to clipboard
Import
aws_ec2_transit_gateway_peering_attachment_accepter
can be imported by using the EC2 Transit Gateway Attachment identifier, e.g.,
$ pulumi import aws:ec2/transitGatewayPeeringAttachmentAccepter:TransitGatewayPeeringAttachmentAccepter example tgw-attach-12345678
Content copied to clipboard