@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
322 lines (321 loc) • 12.4 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* A Distributed Cloud Edge interconnect attachment, which connects routers to the northbound network.
*
* To get more information about InterconnectAttachment, see:
*
* * [API documentation](https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/network/rest/v1/projects.locations.zones.interconnectAttachments)
* * How-to Guides
* * [Create and manage interconnect attachments](https://cloud.google.com/distributed-cloud/edge/latest/docs/attachments#api)
*
* ## Example Usage
*
* ### Edgenetwork Interconnect Attachment
*
* ```typescript
* 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
*
* 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:
*
* ```sh
* $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachment/{{interconnect_attachment_id}}
* ```
*
* ```sh
* $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{project}}/{{location}}/{{zone}}/{{interconnect_attachment_id}}
* ```
*
* ```sh
* $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{location}}/{{zone}}/{{interconnect_attachment_id}}
* ```
*
* ```sh
* $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{location}}/{{interconnect_attachment_id}}
* ```
*
* ```sh
* $ pulumi import gcp:edgenetwork/interconnectAttachment:InterconnectAttachment default {{name}}
* ```
*/
export declare class InterconnectAttachment extends pulumi.CustomResource {
/**
* Get an existing InterconnectAttachment resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InterconnectAttachmentState, opts?: pulumi.CustomResourceOptions): InterconnectAttachment;
/**
* Returns true if the given object is an instance of InterconnectAttachment. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is InterconnectAttachment;
/**
* The time when the resource was created.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
* fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`.
*/
readonly createTime: pulumi.Output<string>;
/**
* A free-text description of the resource. Max length 1024 characters.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
readonly effectiveLabels: pulumi.Output<{
[key: string]: string;
}>;
/**
* The ID of the underlying interconnect that this attachment's traffic will traverse through.
*/
readonly interconnect: pulumi.Output<string>;
/**
* A unique ID that identifies this interconnect attachment.
*
*
* - - -
*/
readonly interconnectAttachmentId: pulumi.Output<string>;
/**
* 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 `effectiveLabels` for all of the labels present on the resource.
*/
readonly labels: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
*/
readonly location: pulumi.Output<string>;
/**
* IP (L3) MTU value of the virtual edge cloud. Default value is `1500`. Possible values are: `1500`, `9000`.
*/
readonly mtu: pulumi.Output<number | undefined>;
/**
* The canonical name of this resource, with format
* `projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}`
*/
readonly name: pulumi.Output<string>;
/**
* 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}}`
*/
readonly network: pulumi.Output<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
readonly project: pulumi.Output<string>;
/**
* The combination of labels configured directly on the resource
* and default labels configured on the provider.
*/
readonly pulumiLabels: pulumi.Output<{
[key: string]: string;
}>;
/**
* The time when the resource was last updated.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
* fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`.
*/
readonly updateTime: pulumi.Output<string>;
/**
* VLAN ID provided by user. Must be site-wise unique.
*/
readonly vlanId: pulumi.Output<number>;
/**
* The name of the target Distributed Cloud Edge zone.
*/
readonly zone: pulumi.Output<string>;
/**
* Create a InterconnectAttachment resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: InterconnectAttachmentArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering InterconnectAttachment resources.
*/
export interface InterconnectAttachmentState {
/**
* The time when the resource was created.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
* fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`.
*/
createTime?: pulumi.Input<string>;
/**
* A free-text description of the resource. Max length 1024 characters.
*/
description?: pulumi.Input<string>;
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
effectiveLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The ID of the underlying interconnect that this attachment's traffic will traverse through.
*/
interconnect?: pulumi.Input<string>;
/**
* A unique ID that identifies this interconnect attachment.
*
*
* - - -
*/
interconnectAttachmentId?: pulumi.Input<string>;
/**
* 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 `effectiveLabels` for all of the labels present on the resource.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
*/
location?: pulumi.Input<string>;
/**
* IP (L3) MTU value of the virtual edge cloud. Default value is `1500`. Possible values are: `1500`, `9000`.
*/
mtu?: pulumi.Input<number>;
/**
* The canonical name of this resource, with format
* `projects/{{project}}/locations/{{location}}/zones/{{zone}}/interconnectAttachments/{{interconnect_attachment_id}}`
*/
name?: pulumi.Input<string>;
/**
* 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}}`
*/
network?: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* The combination of labels configured directly on the resource
* and default labels configured on the provider.
*/
pulumiLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The time when the resource was last updated.
* A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
* fractional digits. Examples: `2014-10-02T15:01:23Z` and `2014-10-02T15:01:23.045123456Z`.
*/
updateTime?: pulumi.Input<string>;
/**
* VLAN ID provided by user. Must be site-wise unique.
*/
vlanId?: pulumi.Input<number>;
/**
* The name of the target Distributed Cloud Edge zone.
*/
zone?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a InterconnectAttachment resource.
*/
export interface InterconnectAttachmentArgs {
/**
* A free-text description of the resource. Max length 1024 characters.
*/
description?: pulumi.Input<string>;
/**
* The ID of the underlying interconnect that this attachment's traffic will traverse through.
*/
interconnect: pulumi.Input<string>;
/**
* A unique ID that identifies this interconnect attachment.
*
*
* - - -
*/
interconnectAttachmentId: pulumi.Input<string>;
/**
* 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 `effectiveLabels` for all of the labels present on the resource.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The Google Cloud region to which the target Distributed Cloud Edge zone belongs.
*/
location: pulumi.Input<string>;
/**
* IP (L3) MTU value of the virtual edge cloud. Default value is `1500`. Possible values are: `1500`, `9000`.
*/
mtu?: pulumi.Input<number>;
/**
* 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}}`
*/
network: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* VLAN ID provided by user. Must be site-wise unique.
*/
vlanId: pulumi.Input<number>;
/**
* The name of the target Distributed Cloud Edge zone.
*/
zone: pulumi.Input<string>;
}