@piclemx/pulumi-opensearch
Version:
A Pulumi package for creating and managing Opensearch resources. Based on terraform-provider-opensearch: version v2.2.1
47 lines • 1.45 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHostOutput = exports.getHost = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* `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,
* });
* ```
*/
function getHost(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("opensearch:index/getHost:getHost", {
"active": args.active,
}, opts);
}
exports.getHost = getHost;
/**
* `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,
* });
* ```
*/
function getHostOutput(args, opts) {
return pulumi.output(args).apply((a) => getHost(a, opts));
}
exports.getHostOutput = getHostOutput;
//# sourceMappingURL=getHost.js.map