HostedConnectionArgs

data class HostedConnectionArgs(val bandwidth: Output<String>? = null, val connectionId: Output<String>? = null, val name: Output<String>? = null, val ownerAccountId: Output<String>? = null, val vlan: Output<Int>? = null) : ConvertibleToJava<HostedConnectionArgs>

Provides a hosted connection on the specified interconnect or a link aggregation group (LAG) of interconnects. Intended for use by AWS Direct Connect Partners only.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const hosted = new aws.directconnect.HostedConnection("hosted", {
connectionId: "dxcon-ffabc123",
bandwidth: "100Mbps",
name: "tf-dx-hosted-connection",
ownerAccountId: "123456789012",
vlan: 1,
});
import pulumi
import pulumi_aws as aws
hosted = aws.directconnect.HostedConnection("hosted",
connection_id="dxcon-ffabc123",
bandwidth="100Mbps",
name="tf-dx-hosted-connection",
owner_account_id="123456789012",
vlan=1)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var hosted = new Aws.DirectConnect.HostedConnection("hosted", new()
{
ConnectionId = "dxcon-ffabc123",
Bandwidth = "100Mbps",
Name = "tf-dx-hosted-connection",
OwnerAccountId = "123456789012",
Vlan = 1,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/directconnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := directconnect.NewHostedConnection(ctx, "hosted", &directconnect.HostedConnectionArgs{
ConnectionId: pulumi.String("dxcon-ffabc123"),
Bandwidth: pulumi.String("100Mbps"),
Name: pulumi.String("tf-dx-hosted-connection"),
OwnerAccountId: pulumi.String("123456789012"),
Vlan: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.directconnect.HostedConnection;
import com.pulumi.aws.directconnect.HostedConnectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var hosted = new HostedConnection("hosted", HostedConnectionArgs.builder()
.connectionId("dxcon-ffabc123")
.bandwidth("100Mbps")
.name("tf-dx-hosted-connection")
.ownerAccountId("123456789012")
.vlan(1)
.build());
}
}
resources:
hosted:
type: aws:directconnect:HostedConnection
properties:
connectionId: dxcon-ffabc123
bandwidth: 100Mbps
name: tf-dx-hosted-connection
ownerAccountId: '123456789012'
vlan: 1

Constructors

Link copied to clipboard
constructor(bandwidth: Output<String>? = null, connectionId: Output<String>? = null, name: Output<String>? = null, ownerAccountId: Output<String>? = null, vlan: Output<Int>? = null)

Properties

Link copied to clipboard
val bandwidth: Output<String>? = null

The bandwidth of the connection. Valid values for dedicated connections: 1Gbps, 10Gbps. Valid values for hosted connections: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, 10Gbps, and 25Gbps. Case sensitive. Refer to the AWS Direct Connection supported bandwidths for Hosted Connections.

Link copied to clipboard
val connectionId: Output<String>? = null

The ID of the interconnect or LAG.

Link copied to clipboard
val name: Output<String>? = null

The name of the connection.

Link copied to clipboard
val ownerAccountId: Output<String>? = null

The ID of the AWS account of the customer for the connection.

Link copied to clipboard
val vlan: Output<Int>? = null

The dedicated VLAN provisioned to the hosted connection.

Functions

Link copied to clipboard
open override fun toJava(): HostedConnectionArgs