@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
273 lines (272 loc) • 9.65 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* A Distributed Cloud Edge network, which provides L3 isolation within a zone.
*
* To get more information about Network, see:
*
* * [API documentation](https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/network/rest/v1/projects.locations.zones.networks)
* * How-to Guides
* * [Create and manage networks](https://cloud.google.com/distributed-cloud/edge/latest/docs/networks#api)
*
* ## Example Usage
*
* ### Edgenetwork Network
*
* ```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,
* labels: {
* environment: "dev",
* },
* });
* ```
*
* ## Import
*
* Network can be imported using any of these accepted formats:
*
* * `projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}`
*
* * `{{project}}/{{location}}/{{zone}}/{{network_id}}`
*
* * `{{location}}/{{zone}}/{{network_id}}`
*
* * `{{location}}/{{network_id}}`
*
* * `{{name}}`
*
* When using the `pulumi import` command, Network can be imported using one of the formats above. For example:
*
* ```sh
* $ pulumi import gcp:edgenetwork/network:Network default projects/{{project}}/locations/{{location}}/zones/{{zone}}/networks/{{network_id}}
* ```
*
* ```sh
* $ pulumi import gcp:edgenetwork/network:Network default {{project}}/{{location}}/{{zone}}/{{network_id}}
* ```
*
* ```sh
* $ pulumi import gcp:edgenetwork/network:Network default {{location}}/{{zone}}/{{network_id}}
* ```
*
* ```sh
* $ pulumi import gcp:edgenetwork/network:Network default {{location}}/{{network_id}}
* ```
*
* ```sh
* $ pulumi import gcp:edgenetwork/network:Network default {{name}}
* ```
*/
export declare class Network extends pulumi.CustomResource {
/**
* Get an existing Network 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?: NetworkState, opts?: pulumi.CustomResourceOptions): Network;
/**
* Returns true if the given object is an instance of Network. 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 Network;
/**
* The time when the subnet 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;
}>;
/**
* 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 network. 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}}/networks/{{network_id}}`
*/
readonly name: pulumi.Output<string>;
/**
* A unique ID that identifies this network.
*
*
* - - -
*/
readonly networkId: 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 subnet 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>;
/**
* The name of the target Distributed Cloud Edge zone.
*/
readonly zone: pulumi.Output<string>;
/**
* Create a Network 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: NetworkArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Network resources.
*/
export interface NetworkState {
/**
* The time when the subnet 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>;
}>;
/**
* 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 network. 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}}/networks/{{network_id}}`
*/
name?: pulumi.Input<string>;
/**
* A unique ID that identifies this network.
*
*
* - - -
*/
networkId?: 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 subnet 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>;
/**
* The name of the target Distributed Cloud Edge zone.
*/
zone?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Network resource.
*/
export interface NetworkArgs {
/**
* A free-text description of the resource. Max length 1024 characters.
*/
description?: 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 network. Default value is `1500`. Possible values are: `1500`, `9000`.
*/
mtu?: pulumi.Input<number>;
/**
* A unique ID that identifies this network.
*
*
* - - -
*/
networkId: 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 name of the target Distributed Cloud Edge zone.
*/
zone: pulumi.Input<string>;
}