import * as core from "@terrascript/core"; export interface DxConnectionArgs extends core.ResourceArgs { /** * (Required) The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. V * alid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbp * s, 5Gbps, 10Gbps and 100Gbps. Case sensitive. */ bandwidth: string | core.StringOut; /** * (Required) The AWS Direct Connect location where the connection is located. See [DescribeLocations]( * https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for the li * st of AWS Direct Connect locations. Use `locationCode`. */ location: string | core.StringOut; /** * (Required) The name of the connection. */ name: string | core.StringOut; /** * (Optional) The name of the service provider associated with the connection. */ 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 DxConnection extends core.Resource { /** * The ARN of the connection. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The Direct Connect endpoint on which the physical connection terminates. */ @core.attr(String, { computed: true }) public awsDevice!: string | core.StringOut; /** * (Required) The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. V * alid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbp * s, 5Gbps, 10Gbps and 100Gbps. Case sensitive. */ @core.attr(String) public bandwidth!: string | core.StringOut; /** * Indicates whether the connection 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 connection. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Boolean value representing if jumbo frames have been enabled for this connection. */ @core.attr(Boolean, { computed: true }) public jumboFrameCapable!: boolean | core.BooleanOut; /** * (Required) The AWS Direct Connect location where the connection is located. See [DescribeLocations]( * https://docs.aws.amazon.com/directconnect/latest/APIReference/API_DescribeLocations.html) for the li * st of AWS Direct Connect locations. Use `locationCode`. */ @core.attr(String) public location!: string | core.StringOut; /** * (Required) The name of the connection. */ @core.attr(String) public name!: string | core.StringOut; /** * The ID of the AWS account that owns the connection. */ @core.attr(String, { computed: true }) public ownerAccountId!: string | core.StringOut; /** * (Optional) The name of the service provider associated with the connection. */ @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?: DxConnectionArgs) { super(name, "aws_dx_connection", args); } public override getNamespace(): string { return "aws_direct_connect"; } }