@piclemx/pulumi-opensearch
Version:
A Pulumi package for creating and managing Opensearch resources. Based on terraform-provider-opensearch: version v2.2.1
67 lines (66 loc) • 1.6 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* `opensearch.getHost` can be used to retrieve the host URL for the provider's current cluster.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as opensearch from "@pulumi/opensearch";
*
* const test = opensearch.getHost({
* active: true,
* });
* ```
*/
export declare function getHost(args: GetHostArgs, opts?: pulumi.InvokeOptions): Promise<GetHostResult>;
/**
* A collection of arguments for invoking getHost.
*/
export interface GetHostArgs {
/**
* should be set to `true`
*/
active: boolean;
}
/**
* A collection of values returned by getHost.
*/
export interface GetHostResult {
/**
* should be set to `true`
*/
readonly active: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* the url of the active cluster
*/
readonly url: string;
}
/**
* `opensearch.getHost` can be used to retrieve the host URL for the provider's current cluster.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as opensearch from "@pulumi/opensearch";
*
* const test = opensearch.getHost({
* active: true,
* });
* ```
*/
export declare function getHostOutput(args: GetHostOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetHostResult>;
/**
* A collection of arguments for invoking getHost.
*/
export interface GetHostOutputArgs {
/**
* should be set to `true`
*/
active: pulumi.Input<boolean>;
}