import * as core from "@terrascript/core"; export interface DxHostedConnectionArgs 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 and 10Gbps. Case sensitive. */ bandwidth: string | core.StringOut; /** * (Required) The ID of the interconnect or LAG. */ connectionId: string | core.StringOut; /** * (Required) The name of the connection. */ name: string | core.StringOut; /** * (Required) The ID of the AWS account of the customer for the connection. */ ownerAccountId: string | core.StringOut; /** * (Required) The dedicated VLAN provisioned to the hosted connection. */ vlan: number | core.NumberOut; } export class DxHostedConnection extends core.Resource { /** * 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 and 10Gbps. Case sensitive. */ @core.attr(String) public bandwidth!: string | core.StringOut; /** * (Required) The ID of the interconnect or LAG. */ @core.attr(String) public connectionId!: 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; /** * The ID of the LAG. */ @core.attr(String, { computed: true }) public lagId!: string | core.StringOut; /** * The time of the most recent call to [DescribeLoa](https://docs.aws.amazon.com/directconnect/latest/A * PIReference/API_DescribeLoa.html) for this connection. */ @core.attr(String, { computed: true }) public loaIssueTime!: string | core.StringOut; /** * The location of the connection. */ @core.attr(String, { computed: true }) public location!: string | core.StringOut; /** * (Required) The name of the connection. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The ID of the AWS account of the customer for the connection. */ @core.attr(String) public ownerAccountId!: string | core.StringOut; /** * The name of the AWS Direct Connect service provider associated with the connection. */ @core.attr(String, { computed: true }) public partnerName!: string | core.StringOut; /** * The name of the service provider associated with the connection. */ @core.attr(String, { computed: true }) public providerName!: string | core.StringOut; /** * The AWS Region where the connection is located. */ @core.attr(String, { computed: true }) public region!: string | core.StringOut; /** * The state of the connection. Possible values include: ordering, requested, pending, available, down, * deleting, deleted, rejected, unknown. See [AllocateHostedConnection](https://docs.aws.amazon.com/di * rectconnect/latest/APIReference/API_AllocateHostedConnection.html) for a description of each connect * ion state. */ @core.attr(String, { computed: true }) public state!: string | core.StringOut; /** * (Required) The dedicated VLAN provisioned to the hosted connection. */ @core.attr(Number) public vlan!: number | core.NumberOut; constructor(name: string, args?: DxHostedConnectionArgs) { super(name, "aws_dx_hosted_connection", args); } public override getNamespace(): string { return "aws_direct_connect"; } }