"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIndexOutput = exports.getIndex = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * An OpenSearch Serverless index resource
 */
function getIndex(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("aws-native:opensearchserverless:getIndex", {
        "collectionEndpoint": args.collectionEndpoint,
        "indexName": args.indexName,
    }, opts);
}
exports.getIndex = getIndex;
/**
 * An OpenSearch Serverless index resource
 */
function getIndexOutput(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("aws-native:opensearchserverless:getIndex", {
        "collectionEndpoint": args.collectionEndpoint,
        "indexName": args.indexName,
    }, opts);
}
exports.getIndexOutput = getIndexOutput;
//# sourceMappingURL=getIndex.js.map