import * as core from "@terrascript/core"; export interface ConnectionArgs extends core.ResourceArgs { /** * (Required) The ID of the second device in the connection. */ connectedDeviceId: string | core.StringOut; /** * (Optional) The ID of the link for the second device. */ connectedLinkId?: string | core.StringOut; /** * (Optional) A description of the connection. */ description?: string | core.StringOut; /** * (Required) The ID of the first device in the connection. */ deviceId: string | core.StringOut; /** * (Required) The ID of the global network. */ globalNetworkId: string | core.StringOut; /** * (Optional) The ID of the link for the first device. */ linkId?: string | core.StringOut; /** * (Optional) Key-value tags for the connection. If configured with a provider [`default_tags` configur * ation block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configur * ation-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; } export class Connection extends core.Resource { /** * The Amazon Resource Name (ARN) of the connection. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The ID of the second device in the connection. */ @core.attr(String) public connectedDeviceId!: string | core.StringOut; /** * (Optional) The ID of the link for the second device. */ @core.attr(String) public connectedLinkId?: string | core.StringOut; /** * (Optional) A description of the connection. */ @core.attr(String) public description?: string | core.StringOut; /** * (Required) The ID of the first device in the connection. */ @core.attr(String) public deviceId!: string | core.StringOut; /** * (Required) The ID of the global network. */ @core.attr(String) public globalNetworkId!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The ID of the link for the first device. */ @core.attr(String) public linkId?: string | core.StringOut; /** * (Optional) Key-value tags for the connection. If configured with a provider [`default_tags` configur * ation block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configur * ation-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; constructor(name: string, args?: ConnectionArgs) { super(name, "aws_networkmanager_connection", args); } public override getNamespace(): string { return "aws_networkmanager"; } }