import * as core from "@terrascript/core"; export interface BandwidthArgs extends core.SchemaArgs { downloadSpeed?: number | core.NumberOut; uploadSpeed?: number | core.NumberOut; } export class Bandwidth extends core.Schema { @core.attr(Number) public downloadSpeed?: number | core.NumberOut; @core.attr(Number) public uploadSpeed?: number | core.NumberOut; } export interface LinkArgs extends core.ResourceArgs { /** * (Required) The upload speed and download speed in Mbps. Documented below. */ bandwidth: Bandwidth; /** * (Optional) A description of the link. */ description?: string | core.StringOut; /** * (Required) The ID of the global network. */ globalNetworkId: string | core.StringOut; /** * (Optional) The provider of the link. */ providerName?: string | core.StringOut; /** * (Required) The ID of the site. */ siteId: string | core.StringOut; /** * (Optional) Key-value tags for the link. If configured with a provider [`default_tags` configuration * block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration- * 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; /** * (Optional) The type of the link. */ type?: string | core.StringOut; } export class Link extends core.Resource { /** * Link Amazon Resource Name (ARN). */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The upload speed and download speed in Mbps. Documented below. */ @core.attr(Bandwidth) public bandwidth!: Bandwidth; /** * (Optional) A description of the link. */ @core.attr(String) public description?: 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 provider of the link. */ @core.attr(String) public providerName?: string | core.StringOut; /** * (Required) The ID of the site. */ @core.attr(String) public siteId!: string | core.StringOut; /** * (Optional) Key-value tags for the link. If configured with a provider [`default_tags` configuration * block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration- * 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; /** * (Optional) The type of the link. */ @core.attr(String) public type?: string | core.StringOut; constructor(name: string, args?: LinkArgs) { super(name, "aws_networkmanager_link", args); } public override getNamespace(): string { return "aws_networkmanager"; } }