Hosted Connection
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,
});Content copied to clipboard
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)Content copied to clipboard
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,
});
});Content copied to clipboard
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
})
}Content copied to clipboard
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());
}
}Content copied to clipboard
resources:
hosted:
type: aws:directconnect:HostedConnection
properties:
connectionId: dxcon-ffabc123
bandwidth: 100Mbps
name: tf-dx-hosted-connection
ownerAccountId: '123456789012'
vlan: 1Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
The time of the most recent call to DescribeLoa for this connection.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The state of the connection. Possible values include: ordering, requested, pending, available, down, deleting, deleted, rejected, unknown. See AllocateHostedConnection for a description of each connection state.