import * as core from "@terrascript/core"; export interface TransitGatewayPeeringArgs extends core.ResourceArgs { /** * (Required) The ID of a core network. */ coreNetworkId: string | core.StringOut; /** * (Optional) Key-value tags for the peering. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined 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) The ARN of the transit gateway for the peering request. */ transitGatewayArn: string | core.StringOut; } export class TransitGatewayPeering extends core.Resource { /** * Peering Amazon Resource Name (ARN). */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The ARN of the core network. */ @core.attr(String, { computed: true }) public coreNetworkArn!: string | core.StringOut; /** * (Required) The ID of a core network. */ @core.attr(String) public coreNetworkId!: string | core.StringOut; /** * The edge location for the peer. */ @core.attr(String, { computed: true }) public edgeLocation!: string | core.StringOut; /** * Peering ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The ID of the account owner. */ @core.attr(String, { computed: true }) public ownerAccountId!: string | core.StringOut; /** * The type of peering. This will be `TRANSIT_GATEWAY`. */ @core.attr(String, { computed: true }) public peeringType!: string | core.StringOut; /** * The resource ARN of the peer. */ @core.attr(String, { computed: true }) public resourceArn!: string | core.StringOut; /** * (Optional) Key-value tags for the peering. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined 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) The ARN of the transit gateway for the peering request. */ @core.attr(String) public transitGatewayArn!: string | core.StringOut; /** * The ID of the transit gateway peering attachment. */ @core.attr(String, { computed: true }) public transitGatewayPeeringAttachmentId!: string | core.StringOut; constructor(name: string, args?: TransitGatewayPeeringArgs) { super(name, "aws_networkmanager_transit_gateway_peering", args); } public override getNamespace(): string { return "aws_networkmanager"; } }