import * as core from "@terrascript/core"; export interface DxLagArgs extends core.ResourceArgs { /** * (Optional) The ID of an existing dedicated connection to migrate to the LAG. */ connectionId?: string | core.StringOut; /** * (Required) The bandwidth of the individual physical connections bundled by the LAG. Valid values: 50 * Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sen * sitive. */ connectionsBandwidth: string | core.StringOut; /** * (Optional, Default:false) A boolean that indicates all connections associated with the LAG should be * deleted so that the LAG can be destroyed without error. These objects are *not* recoverable. */ forceDestroy?: boolean | core.BooleanOut; /** * (Required) The AWS Direct Connect location in which the LAG should be allocated. See [DescribeLocati * ons](https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for t * he list of AWS Direct Connect locations. Use `locationCode`. */ location: string | core.StringOut; /** * (Required) The name of the LAG. */ name: string | core.StringOut; /** * (Optional) The name of the service provider associated with the LAG. */ providerName?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ 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 DxLag extends core.Resource { /** * The ARN of the LAG. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The ID of an existing dedicated connection to migrate to the LAG. */ @core.attr(String) public connectionId?: string | core.StringOut; /** * (Required) The bandwidth of the individual physical connections bundled by the LAG. Valid values: 50 * Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps and 100Gbps. Case sen * sitive. */ @core.attr(String) public connectionsBandwidth!: string | core.StringOut; /** * (Optional, Default:false) A boolean that indicates all connections associated with the LAG should be * deleted so that the LAG can be destroyed without error. These objects are *not* recoverable. */ @core.attr(Boolean) public forceDestroy?: boolean | core.BooleanOut; /** * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). */ @core.attr(String, { computed: true }) public hasLogicalRedundancy!: string | core.StringOut; /** * The ID of the LAG. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; @core.attr(Boolean, { computed: true }) public jumboFrameCapable!: boolean | core.BooleanOut; /** * (Required) The AWS Direct Connect location in which the LAG should be allocated. See [DescribeLocati * ons](https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for t * he list of AWS Direct Connect locations. Use `locationCode`. */ @core.attr(String) public location!: string | core.StringOut; /** * (Required) The name of the LAG. */ @core.attr(String) public name!: string | core.StringOut; /** * The ID of the AWS account that owns the LAG. */ @core.attr(String, { computed: true }) public ownerAccountId!: string | core.StringOut; /** * (Optional) The name of the service provider associated with the LAG. */ @core.attr(String, { computed: true }) public providerName?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @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?: DxLagArgs) { super(name, "aws_dx_lag", args); } public override getNamespace(): string { return "aws_direct_connect"; } }