PhysicalConnection

class PhysicalConnection : KotlinCustomResource

Provides a Express Connect Physical Connection resource. For information about Express Connect Physical Connection and how to use it, see What is Physical Connection.

NOTE: Available since v1.132.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const domestic = new alicloud.expressconnect.PhysicalConnection("domestic", {
accessPointId: "ap-cn-hangzhou-yh-B",
lineOperator: "CT",
peerLocation: "example_value",
physicalConnectionName: "example_value",
type: "VPC",
description: "my domestic connection",
portType: "1000Base-LX",
bandwidth: "100",
});
const international = new alicloud.expressconnect.PhysicalConnection("international", {
accessPointId: "ap-sg-singpore-A",
lineOperator: "Other",
peerLocation: "example_value",
physicalConnectionName: "example_value",
type: "VPC",
description: "my domestic connection",
portType: "1000Base-LX",
bandwidth: "100",
});
import pulumi
import pulumi_alicloud as alicloud
domestic = alicloud.expressconnect.PhysicalConnection("domestic",
access_point_id="ap-cn-hangzhou-yh-B",
line_operator="CT",
peer_location="example_value",
physical_connection_name="example_value",
type="VPC",
description="my domestic connection",
port_type="1000Base-LX",
bandwidth="100")
international = alicloud.expressconnect.PhysicalConnection("international",
access_point_id="ap-sg-singpore-A",
line_operator="Other",
peer_location="example_value",
physical_connection_name="example_value",
type="VPC",
description="my domestic connection",
port_type="1000Base-LX",
bandwidth="100")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var domestic = new AliCloud.ExpressConnect.PhysicalConnection("domestic", new()
{
AccessPointId = "ap-cn-hangzhou-yh-B",
LineOperator = "CT",
PeerLocation = "example_value",
PhysicalConnectionName = "example_value",
Type = "VPC",
Description = "my domestic connection",
PortType = "1000Base-LX",
Bandwidth = "100",
});
var international = new AliCloud.ExpressConnect.PhysicalConnection("international", new()
{
AccessPointId = "ap-sg-singpore-A",
LineOperator = "Other",
PeerLocation = "example_value",
PhysicalConnectionName = "example_value",
Type = "VPC",
Description = "my domestic connection",
PortType = "1000Base-LX",
Bandwidth = "100",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/expressconnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := expressconnect.NewPhysicalConnection(ctx, "domestic", &expressconnect.PhysicalConnectionArgs{
AccessPointId: pulumi.String("ap-cn-hangzhou-yh-B"),
LineOperator: pulumi.String("CT"),
PeerLocation: pulumi.String("example_value"),
PhysicalConnectionName: pulumi.String("example_value"),
Type: pulumi.String("VPC"),
Description: pulumi.String("my domestic connection"),
PortType: pulumi.String("1000Base-LX"),
Bandwidth: pulumi.String("100"),
})
if err != nil {
return err
}
_, err = expressconnect.NewPhysicalConnection(ctx, "international", &expressconnect.PhysicalConnectionArgs{
AccessPointId: pulumi.String("ap-sg-singpore-A"),
LineOperator: pulumi.String("Other"),
PeerLocation: pulumi.String("example_value"),
PhysicalConnectionName: pulumi.String("example_value"),
Type: pulumi.String("VPC"),
Description: pulumi.String("my domestic connection"),
PortType: pulumi.String("1000Base-LX"),
Bandwidth: pulumi.String("100"),
})
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.alicloud.expressconnect.PhysicalConnection;
import com.pulumi.alicloud.expressconnect.PhysicalConnectionArgs;
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 domestic = new PhysicalConnection("domestic", PhysicalConnectionArgs.builder()
.accessPointId("ap-cn-hangzhou-yh-B")
.lineOperator("CT")
.peerLocation("example_value")
.physicalConnectionName("example_value")
.type("VPC")
.description("my domestic connection")
.portType("1000Base-LX")
.bandwidth(100)
.build());
var international = new PhysicalConnection("international", PhysicalConnectionArgs.builder()
.accessPointId("ap-sg-singpore-A")
.lineOperator("Other")
.peerLocation("example_value")
.physicalConnectionName("example_value")
.type("VPC")
.description("my domestic connection")
.portType("1000Base-LX")
.bandwidth(100)
.build());
}
}
resources:
domestic:
type: alicloud:expressconnect:PhysicalConnection
properties:
accessPointId: ap-cn-hangzhou-yh-B
lineOperator: CT
peerLocation: example_value
physicalConnectionName: example_value
type: VPC
description: my domestic connection
portType: 1000Base-LX
bandwidth: 100
international:
type: alicloud:expressconnect:PhysicalConnection
properties:
accessPointId: ap-sg-singpore-A
lineOperator: Other
peerLocation: example_value
physicalConnectionName: example_value
type: VPC
description: my domestic connection
portType: 1000Base-LX
bandwidth: 100

Import

Express Connect Physical Connection can be imported using the id, e.g.

$ pulumi import alicloud:expressconnect/physicalConnection:PhysicalConnection example <id>

Properties

Link copied to clipboard
val accessPointId: Output<String>

The access point ID of the Express Connect circuit.

Link copied to clipboard
val bandwidth: Output<String>

The maximum bandwidth of the hosted connection.

Link copied to clipboard
val circuitCode: Output<String>?

The circuit code of the Express Connect circuit.

Link copied to clipboard
val description: Output<String>?

The description of the Express Connect circuit.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lineOperator: Output<String>

The connectivity provider of the Express Connect circuit. Valid values:

Link copied to clipboard
val orderId: Output<String>

The ID of the order that is placed. Note: order_id takes effect only if status is set to Enabled.

Link copied to clipboard
val peerLocation: Output<String>

The geographical location of the data center.

Link copied to clipboard
val period: Output<Int>?

The subscription duration. Valid values:

Link copied to clipboard

The name of the Express Connect circuit.

Link copied to clipboard
val portType: Output<String>?

The port type of the Express Connect circuit. Valid values:

Link copied to clipboard
val pricingCycle: Output<String>?

The billing cycle of the subscription. Default value: Month. Valid values: Month, Year.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The ID of the redundant Express Connect circuit. NOTE: From version 1.230.1, redundant_physical_connection_id cannot be modified.

Link copied to clipboard
val status: Output<String>

The status of the Express Connect circuit. Valid values: Confirmed, Enabled, Canceled, Terminated. NOTE: From version 1.230.1, status can be set to Confirmed. If you want to set status to Enabled, period must be set.

Link copied to clipboard
val type: Output<String>

The type of Express Connect circuit. Default value: VPC. Valid values: VPC.

Link copied to clipboard
val urn: Output<String>