Physical Connection
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",
});Content copied to clipboard
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")Content copied to clipboard
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",
});
});Content copied to clipboard
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
})
}Content copied to clipboard
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());
}
}Content copied to clipboard
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: 100Content copied to clipboard
Import
Express Connect Physical Connection can be imported using the id, e.g.
$ pulumi import alicloud:expressconnect/physicalConnection:PhysicalConnection example <id>Content copied to clipboard
Properties
Link copied to clipboard
The Physical Leased Line Access Point ID.
Link copied to clipboard
Operators for Physical Connection Circuit Provided Coding.
Link copied to clipboard
The Physical Connection to Which the Description.
Link copied to clipboard
Provides Access to the Physical Line Operator. Valid values:
Link copied to clipboard
and an on-Premises Data Center Location.
Link copied to clipboard
on Behalf of the Resource Name of the Resources-Attribute Field.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Redundant Physical Connection to Which the ID.