@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
106 lines • 3.64 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to get information about the available instance. For more details refer the [API docs](https://cloud.google.com/memorystore/docs/memcached/reference/rest/v1/projects.locations.instances).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const qa = gcp.memcache.getInstance({});
* ```
*/
export declare function getInstance(args: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceResult>;
/**
* A collection of arguments for invoking getInstance.
*/
export interface GetInstanceArgs {
/**
* The ID of the memcache instance.
* 'memcache_instance_id'
*/
name: string;
/**
* (optional)
* The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
*/
project?: string;
/**
* (optional)
* The canonical id of the region. If it is not provided, the provider project is used. For example: us-east1.
*/
region?: string;
}
/**
* A collection of values returned by getInstance.
*/
export interface GetInstanceResult {
readonly authorizedNetwork: string;
readonly createTime: string;
readonly deletionPolicy: string;
readonly deletionProtection: boolean;
readonly discoveryEndpoint: string;
readonly displayName: string;
readonly effectiveLabels: {
[key: string]: string;
};
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly labels: {
[key: string]: string;
};
readonly maintenancePolicies: outputs.memcache.GetInstanceMaintenancePolicy[];
readonly maintenanceSchedules: outputs.memcache.GetInstanceMaintenanceSchedule[];
readonly memcacheFullVersion: string;
readonly memcacheNodes: outputs.memcache.GetInstanceMemcacheNode[];
readonly memcacheParameters: outputs.memcache.GetInstanceMemcacheParameter[];
readonly memcacheVersion: string;
readonly name: string;
readonly nodeConfigs: outputs.memcache.GetInstanceNodeConfig[];
readonly nodeCount: number;
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly region?: string;
readonly reservedIpRangeIds: string[];
readonly zones: string[];
}
/**
* Use this data source to get information about the available instance. For more details refer the [API docs](https://cloud.google.com/memorystore/docs/memcached/reference/rest/v1/projects.locations.instances).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const qa = gcp.memcache.getInstance({});
* ```
*/
export declare function getInstanceOutput(args: GetInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstanceResult>;
/**
* A collection of arguments for invoking getInstance.
*/
export interface GetInstanceOutputArgs {
/**
* The ID of the memcache instance.
* 'memcache_instance_id'
*/
name: pulumi.Input<string>;
/**
* (optional)
* The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
/**
* (optional)
* The canonical id of the region. If it is not provided, the provider project is used. For example: us-east1.
*/
region?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getInstance.d.ts.map