@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
213 lines (212 loc) • 7.66 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* An allocated external IP address and its corresponding internal IP address in a private cloud.
*
* To get more information about ExternalAddress, see:
*
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.externalAddresses)
*
* ## Example Usage
*
* ### Vmware Engine External Address Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const external_address_nw = new gcp.vmwareengine.Network("external-address-nw", {
* name: "pc-nw",
* location: "global",
* type: "STANDARD",
* description: "PC network description.",
* });
* const external_address_pc = new gcp.vmwareengine.PrivateCloud("external-address-pc", {
* location: "-a",
* name: "sample-pc",
* description: "Sample test PC.",
* networkConfig: {
* managementCidr: "192.168.50.0/24",
* vmwareEngineNetwork: external_address_nw.id,
* },
* managementCluster: {
* clusterId: "sample-mgmt-cluster",
* nodeTypeConfigs: [{
* nodeTypeId: "standard-72",
* nodeCount: 3,
* }],
* },
* });
* const external_address_np = new gcp.vmwareengine.NetworkPolicy("external-address-np", {
* location: "",
* name: "sample-np",
* edgeServicesCidr: "192.168.30.0/26",
* vmwareEngineNetwork: external_address_nw.id,
* });
* const vmw_engine_external_address = new gcp.vmwareengine.ExternalAddress("vmw-engine-external-address", {
* name: "sample-external-address",
* parent: external_address_pc.id,
* internalIp: "192.168.0.66",
* description: "Sample description.",
* }, {
* dependsOn: [external_address_np],
* });
* ```
*
* ## Import
*
* ExternalAddress can be imported using any of these accepted formats:
*
* * `{{parent}}/externalAddresses/{{name}}`
*
* When using the `pulumi import` command, ExternalAddress can be imported using one of the formats above. For example:
*
* ```sh
* $ pulumi import gcp:vmwareengine/externalAddress:ExternalAddress default {{parent}}/externalAddresses/{{name}}
* ```
*/
export declare class ExternalAddress extends pulumi.CustomResource {
/**
* Get an existing ExternalAddress 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?: ExternalAddressState, opts?: pulumi.CustomResourceOptions): ExternalAddress;
/**
* Returns true if the given object is an instance of ExternalAddress. 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 ExternalAddress;
/**
* Creation time of this resource.
* 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>;
/**
* User-provided description for this resource.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The external IP address of a workload VM.
*/
readonly externalIp: pulumi.Output<string>;
/**
* The internal IP address of a workload VM.
*/
readonly internalIp: pulumi.Output<string>;
/**
* The ID of the external IP Address.
*
*
* - - -
*/
readonly name: pulumi.Output<string>;
/**
* The resource name of the private cloud to create a new external address in.
* Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
* For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
*/
readonly parent: pulumi.Output<string>;
/**
* State of the resource.
*/
readonly state: pulumi.Output<string>;
/**
* System-generated unique identifier for the resource.
*/
readonly uid: pulumi.Output<string>;
/**
* Last updated time of this resource.
* 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>;
/**
* Create a ExternalAddress 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: ExternalAddressArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ExternalAddress resources.
*/
export interface ExternalAddressState {
/**
* Creation time of this resource.
* 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>;
/**
* User-provided description for this resource.
*/
description?: pulumi.Input<string>;
/**
* The external IP address of a workload VM.
*/
externalIp?: pulumi.Input<string>;
/**
* The internal IP address of a workload VM.
*/
internalIp?: pulumi.Input<string>;
/**
* The ID of the external IP Address.
*
*
* - - -
*/
name?: pulumi.Input<string>;
/**
* The resource name of the private cloud to create a new external address in.
* Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
* For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
*/
parent?: pulumi.Input<string>;
/**
* State of the resource.
*/
state?: pulumi.Input<string>;
/**
* System-generated unique identifier for the resource.
*/
uid?: pulumi.Input<string>;
/**
* Last updated time of this resource.
* 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 set of arguments for constructing a ExternalAddress resource.
*/
export interface ExternalAddressArgs {
/**
* User-provided description for this resource.
*/
description?: pulumi.Input<string>;
/**
* The internal IP address of a workload VM.
*/
internalIp: pulumi.Input<string>;
/**
* The ID of the external IP Address.
*
*
* - - -
*/
name?: pulumi.Input<string>;
/**
* The resource name of the private cloud to create a new external address in.
* Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
* For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
*/
parent: pulumi.Input<string>;
}