import * as core from "@terrascript/core"; export interface Ec2TransitGatewayPeeringAttachmentArgs extends core.ResourceArgs { /** * (Optional) Account ID of EC2 Transit Gateway to peer with. Defaults to the account ID the [AWS provi * der][1] is currently connected to. */ peerAccountId?: string | core.StringOut; /** * (Required) Region of EC2 Transit Gateway to peer with. */ peerRegion: string | core.StringOut; /** * (Required) Identifier of EC2 Transit Gateway to peer with. */ peerTransitGatewayId: string | core.StringOut; /** * (Optional) Key-value tags for the EC2 Transit Gateway Peering Attachment. If configured with a provi * der [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/lates * t/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defin * ed at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Required) Identifier of EC2 Transit Gateway. */ transitGatewayId: string | core.StringOut; } export class Ec2TransitGatewayPeeringAttachment extends core.Resource { /** * EC2 Transit Gateway Attachment identifier */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Account ID of EC2 Transit Gateway to peer with. Defaults to the account ID the [AWS provi * der][1] is currently connected to. */ @core.attr(String, { computed: true }) public peerAccountId?: string | core.StringOut; /** * (Required) Region of EC2 Transit Gateway to peer with. */ @core.attr(String) public peerRegion!: string | core.StringOut; /** * (Required) Identifier of EC2 Transit Gateway to peer with. */ @core.attr(String) public peerTransitGatewayId!: string | core.StringOut; /** * (Optional) Key-value tags for the EC2 Transit Gateway Peering Attachment. If configured with a provi * der [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/lates * t/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defin * ed at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Required) Identifier of EC2 Transit Gateway. */ @core.attr(String) public transitGatewayId!: string | core.StringOut; constructor(name: string, args?: Ec2TransitGatewayPeeringAttachmentArgs) { super(name, "aws_ec2_transit_gateway_peering_attachment", args); } public override getNamespace(): string { return "aws_transit_gateway"; } }