UNPKG

@upcloud/pulumi-upcloud

Version:

A Pulumi package for creating and managing UpCloud resources.

80 lines 3.18 kB
"use strict"; // *** 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.getManagedDatabaseOpensearchIndicesOutput = exports.getManagedDatabaseOpensearchIndices = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * OpenSearch indices * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@pulumi/upcloud"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * // Use data source to gather a list of the indices for a Managed OpenSearch Database * // Create a Managed OpenSearch resource * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("example", { * name: "opensearch-example", * title: "opensearch-example", * plan: "1x2xCPU-4GB-80GB-1D", * zone: "fi-hel1", * properties: { * automaticUtilityNetworkIpFilter: false, * publicAccess: false, * }, * }); * // Read the available indices of the newly created service * const example = upcloud.getManagedDatabaseOpensearchIndicesOutput({ * service: exampleManagedDatabaseOpensearch.id, * }); * ``` */ function getManagedDatabaseOpensearchIndices(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("upcloud:index/getManagedDatabaseOpensearchIndices:getManagedDatabaseOpensearchIndices", { "indices": args.indices, "service": args.service, }, opts); } exports.getManagedDatabaseOpensearchIndices = getManagedDatabaseOpensearchIndices; /** * OpenSearch indices * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as upcloud from "@pulumi/upcloud"; * import * as upcloud from "@upcloud/pulumi-upcloud"; * * // Use data source to gather a list of the indices for a Managed OpenSearch Database * // Create a Managed OpenSearch resource * const exampleManagedDatabaseOpensearch = new upcloud.ManagedDatabaseOpensearch("example", { * name: "opensearch-example", * title: "opensearch-example", * plan: "1x2xCPU-4GB-80GB-1D", * zone: "fi-hel1", * properties: { * automaticUtilityNetworkIpFilter: false, * publicAccess: false, * }, * }); * // Read the available indices of the newly created service * const example = upcloud.getManagedDatabaseOpensearchIndicesOutput({ * service: exampleManagedDatabaseOpensearch.id, * }); * ``` */ function getManagedDatabaseOpensearchIndicesOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("upcloud:index/getManagedDatabaseOpensearchIndices:getManagedDatabaseOpensearchIndices", { "indices": args.indices, "service": args.service, }, opts); } exports.getManagedDatabaseOpensearchIndicesOutput = getManagedDatabaseOpensearchIndicesOutput; //# sourceMappingURL=getManagedDatabaseOpensearchIndices.js.map