InterconnectAttachmentArgs

data class InterconnectAttachmentArgs(val description: Output<String>? = null, val interconnect: Output<String>? = null, val interconnectAttachmentId: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val mtu: Output<Int>? = null, val network: Output<String>? = null, val project: Output<String>? = null, val vlanId: Output<Int>? = null, val zone: Output<String>? = null) : ConvertibleToJava<InterconnectAttachmentArgs>

A Distributed Cloud Edge interconnect attachment, which connects routers to the northbound network. To get more information about InterconnectAttachment, see:

Example Usage

Edgenetwork Interconnect Attachment

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const exampleNetwork = new gcp.edgenetwork.Network("example_network", {
networkId: "example-network",
location: "us-west1",
zone: "",
description: "Example network.",
mtu: 9000,
});
const exampleInterconnectAttachment = new gcp.edgenetwork.InterconnectAttachment("example_interconnect_attachment", {
interconnectAttachmentId: "example-interconnect-attachment",
location: "us-west1",
zone: "",
description: "Example interconnect attachment.",
network: exampleNetwork.id,
interconnect: "11111111-2222-3333-4444-555555555555",
vlanId: 55,
mtu: 9000,
labels: {
environment: "dev",
},
});
import pulumi
import pulumi_gcp as gcp
example_network = gcp.edgenetwork.Network("example_network",
network_id="example-network",
location="us-west1",
zone="",
description="Example network.",
mtu=9000)
example_interconnect_attachment = gcp.edgenetwork.InterconnectAttachment("example_interconnect_attachment",
interconnect_attachment_id="example-interconnect-attachment",
location="us-west1",
zone="",
description="Example interconnect attachment.",
network=example_network.id,
interconnect="11111111-2222-3333-4444-555555555555",
vlan_id=55,
mtu=9000,
labels={
"environment": "dev",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var exampleNetwork = new Gcp.EdgeNetwork.Network("example_network", new()
{
NetworkId = "example-network",
Location = "us-west1",
Zone = "",
Description = "Example network.",
Mtu = 9000,
});
var exampleInterconnectAttachment = new Gcp.EdgeNetwork.InterconnectAttachment("example_interconnect_attachment", new()
{
InterconnectAttachmentId = "example-interconnect-attachment",
Location = "us-west1",
Zone = "",
Description = "Example interconnect attachment.",
Network = exampleNetwork.Id,
Interconnect = "11111111-2222-3333-4444-555555555555",
VlanId = 55,
Mtu = 9000,
Labels =
{
{ "environment", "dev" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/edgenetwork"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleNetwork, err := edgenetwork.NewNetwork(ctx, "example_network", &edgenetwork.NetworkArgs{
NetworkId: pulumi.String("example-network"),
Location: pulumi.String("us-west1"),
Zone: pulumi.String(""),
Description: pulumi.String("Example network."),
Mtu: pulumi.Int(9000),
})
if err != nil {
return err
}
_, err = edgenetwork.NewInterconnectAttachment(ctx, "example_interconnect_attachment", &edgenetwork.InterconnectAttachmentArgs{
InterconnectAttachmentId: pulumi.String("example-interconnect-attachment"),
Location: pulumi.String("us-west1"),
Zone: pulumi.String(""),
Description: pulumi.String("Example interconnect attachment."),
Network: exampleNetwork.ID(),
Interconnect: pulumi.String("11111111-2222-3333-4444-555555555555"),
VlanId: pulumi.Int(55),
Mtu: pulumi.Int(9000),
Labels: pulumi.StringMap{
"environment": pulumi.String("dev"),
},
})
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.gcp.edgenetwork.Network;
import com.pulumi.gcp.edgenetwork.NetworkArgs;
import com.pulumi.gcp.edgenetwork.InterconnectAttachment;
import com.pulumi.gcp.edgenetwork.InterconnectAttachmentArgs;
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 exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.networkId("example-network")
.location("us-west1")
.zone("")
.description("Example network.")
.mtu(9000)
.build());
var exampleInterconnectAttachment = new InterconnectAttachment("exampleInterconnectAttachment", InterconnectAttachmentArgs.builder()
.interconnectAttachmentId("example-interconnect-attachment")
.location("us-west1")
.zone("")
.description("Example interconnect attachment.")
.network(exampleNetwork.id())
.interconnect("11111111-2222-3333-4444-555555555555")
.vlanId(55)
.mtu(9000)
.labels(Map.of("environment", "dev"))
.build());
}
}
resources:
exampleInterconnectAttachment:
type: gcp:edgenetwork:InterconnectAttachment
name: example_interconnect_attachment
properties:
interconnectAttachmentId: example-interconnect-attachment
location: us-west1
zone: ""
description: Example interconnect attachment.
network: ${exampleNetwork.id}
interconnect: 11111111-2222-3333-4444-555555555555
vlanId: 55
mtu: 9000
labels:
environment: dev
exampleNetwork:
type: gcp:edgenetwork:Network
name: example_network
properties:
networkId: example-network
location: us-west1
zone: ""
description: Example network.
mtu: 9000

Import

InterconnectAttachment can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachment/{{interconnect_attachment_id}}

  • {{project}}/{{location}}/{{zone}}/{{interconnect_attachment_id}}

  • {{location}}/{{zone}}/{{interconnect_attachment_id}}

  • {{location}}/{{interconnect_attachment_id}}

  • {{name}} When using the pulumi import command, InterconnectAttachment can be imported using one of the formats above. For example:

$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachment/{{interconnect_attachment_id}}
$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{project}}/{{location}}/{{zone}}/{{interconnect_attachment_id}}
$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{location}}/{{zone}}/{{interconnect_attachment_id}}
$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{location}}/{{interconnect_attachment_id}}
$ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{name}}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, interconnect: Output<String>? = null, interconnectAttachmentId: Output<String>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, mtu: Output<Int>? = null, network: Output<String>? = null, project: Output<String>? = null, vlanId: Output<Int>? = null, zone: Output<String>? = null)

Properties

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

A free-text description of the resource. Max length 1024 characters.

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

The ID of the underlying interconnect that this attachment's traffic will traverse through.

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

A unique ID that identifies this interconnect attachment.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Labels associated with this resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

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

The Google Cloud region to which the target Distributed Cloud Edge zone belongs.

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

IP (L3) MTU value of the virtual edge cloud. Default value is 1500. Possible values are: 1500, 9000.

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

The ID of the network to which this interconnect attachment belongs. Must be of the form: projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}

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

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

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

VLAN ID provided by user. Must be site-wise unique.

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

The name of the target Distributed Cloud Edge zone.

Functions

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