@upcloud/pulumi-upcloud
Version:
A Pulumi package for creating and managing UpCloud resources.
87 lines (86 loc) • 3.21 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* 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,
* });
* ```
*/
export declare function getManagedDatabaseOpensearchIndices(args: GetManagedDatabaseOpensearchIndicesArgs, opts?: pulumi.InvokeOptions): Promise<GetManagedDatabaseOpensearchIndicesResult>;
/**
* A collection of arguments for invoking getManagedDatabaseOpensearchIndices.
*/
export interface GetManagedDatabaseOpensearchIndicesArgs {
indices?: inputs.GetManagedDatabaseOpensearchIndicesIndex[];
service: string;
}
/**
* A collection of values returned by getManagedDatabaseOpensearchIndices.
*/
export interface GetManagedDatabaseOpensearchIndicesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly indices: outputs.GetManagedDatabaseOpensearchIndicesIndex[];
readonly service: string;
}
/**
* 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,
* });
* ```
*/
export declare function getManagedDatabaseOpensearchIndicesOutput(args: GetManagedDatabaseOpensearchIndicesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagedDatabaseOpensearchIndicesResult>;
/**
* A collection of arguments for invoking getManagedDatabaseOpensearchIndices.
*/
export interface GetManagedDatabaseOpensearchIndicesOutputArgs {
indices?: pulumi.Input<pulumi.Input<inputs.GetManagedDatabaseOpensearchIndicesIndexArgs>[]>;
service: pulumi.Input<string>;
}