UNPKG

@piclemx/pulumi-opensearch

Version:

A Pulumi package for creating and managing Opensearch resources. Based on terraform-provider-opensearch: version v2.2.1

140 lines 12.5 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.ClusterSettings = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Manages a cluster's (persistent) settings. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as opensearch from "@piclemx/pulumi-opensearch"; * * const global = new opensearch.ClusterSettings("global", { * actionAutoCreateIndex: "my-index-000001,index10,-index1*,+ind*", * clusterMaxShardsPerNode: 10, * }); * ``` */ class ClusterSettings extends pulumi.CustomResource { /** * Get an existing ClusterSettings resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new ClusterSettings(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ClusterSettings. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === ClusterSettings.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["actionAutoCreateIndex"] = state ? state.actionAutoCreateIndex : undefined; resourceInputs["actionDestructiveRequiresName"] = state ? state.actionDestructiveRequiresName : undefined; resourceInputs["clusterBlocksReadOnly"] = state ? state.clusterBlocksReadOnly : undefined; resourceInputs["clusterBlocksReadOnlyAllowDelete"] = state ? state.clusterBlocksReadOnlyAllowDelete : undefined; resourceInputs["clusterIndicesCloseEnable"] = state ? state.clusterIndicesCloseEnable : undefined; resourceInputs["clusterInfoUpdateInterval"] = state ? state.clusterInfoUpdateInterval : undefined; resourceInputs["clusterMaxShardsPerNode"] = state ? state.clusterMaxShardsPerNode : undefined; resourceInputs["clusterMaxShardsPerNodeFrozen"] = state ? state.clusterMaxShardsPerNodeFrozen : undefined; resourceInputs["clusterNoMasterBlock"] = state ? state.clusterNoMasterBlock : undefined; resourceInputs["clusterPersistentTasksAllocationEnable"] = state ? state.clusterPersistentTasksAllocationEnable : undefined; resourceInputs["clusterPersistentTasksAllocationRecheckInterval"] = state ? state.clusterPersistentTasksAllocationRecheckInterval : undefined; resourceInputs["clusterRoutingAllocationAllowRebalance"] = state ? state.clusterRoutingAllocationAllowRebalance : undefined; resourceInputs["clusterRoutingAllocationAwarenessAttributes"] = state ? state.clusterRoutingAllocationAwarenessAttributes : undefined; resourceInputs["clusterRoutingAllocationBalanceIndex"] = state ? state.clusterRoutingAllocationBalanceIndex : undefined; resourceInputs["clusterRoutingAllocationBalanceShard"] = state ? state.clusterRoutingAllocationBalanceShard : undefined; resourceInputs["clusterRoutingAllocationBalanceThreshold"] = state ? state.clusterRoutingAllocationBalanceThreshold : undefined; resourceInputs["clusterRoutingAllocationClusterConcurrentRebalance"] = state ? state.clusterRoutingAllocationClusterConcurrentRebalance : undefined; resourceInputs["clusterRoutingAllocationDiskIncludeRelocations"] = state ? state.clusterRoutingAllocationDiskIncludeRelocations : undefined; resourceInputs["clusterRoutingAllocationDiskThresholdEnabled"] = state ? state.clusterRoutingAllocationDiskThresholdEnabled : undefined; resourceInputs["clusterRoutingAllocationDiskWatermarkHigh"] = state ? state.clusterRoutingAllocationDiskWatermarkHigh : undefined; resourceInputs["clusterRoutingAllocationDiskWatermarkLow"] = state ? state.clusterRoutingAllocationDiskWatermarkLow : undefined; resourceInputs["clusterRoutingAllocationEnable"] = state ? state.clusterRoutingAllocationEnable : undefined; resourceInputs["clusterRoutingAllocationNodeConcurrentIncomingRecoveries"] = state ? state.clusterRoutingAllocationNodeConcurrentIncomingRecoveries : undefined; resourceInputs["clusterRoutingAllocationNodeConcurrentOutgoingRecoveries"] = state ? state.clusterRoutingAllocationNodeConcurrentOutgoingRecoveries : undefined; resourceInputs["clusterRoutingAllocationNodeConcurrentRecoveries"] = state ? state.clusterRoutingAllocationNodeConcurrentRecoveries : undefined; resourceInputs["clusterRoutingAllocationNodeInitialPrimariesRecoveries"] = state ? state.clusterRoutingAllocationNodeInitialPrimariesRecoveries : undefined; resourceInputs["clusterRoutingAllocationSameShardHost"] = state ? state.clusterRoutingAllocationSameShardHost : undefined; resourceInputs["clusterRoutingAllocationTotalShardsPerNode"] = state ? state.clusterRoutingAllocationTotalShardsPerNode : undefined; resourceInputs["clusterRoutingRebalanceEnable"] = state ? state.clusterRoutingRebalanceEnable : undefined; resourceInputs["indicesBreakerFielddataLimit"] = state ? state.indicesBreakerFielddataLimit : undefined; resourceInputs["indicesBreakerFielddataOverhead"] = state ? state.indicesBreakerFielddataOverhead : undefined; resourceInputs["indicesBreakerRequestLimit"] = state ? state.indicesBreakerRequestLimit : undefined; resourceInputs["indicesBreakerRequestOverhead"] = state ? state.indicesBreakerRequestOverhead : undefined; resourceInputs["indicesBreakerTotalLimit"] = state ? state.indicesBreakerTotalLimit : undefined; resourceInputs["indicesRecoveryMaxBytesPerSec"] = state ? state.indicesRecoveryMaxBytesPerSec : undefined; resourceInputs["networkBreakerInflightRequestsLimit"] = state ? state.networkBreakerInflightRequestsLimit : undefined; resourceInputs["networkBreakerInflightRequestsOverhead"] = state ? state.networkBreakerInflightRequestsOverhead : undefined; resourceInputs["scriptMaxCompilationsRate"] = state ? state.scriptMaxCompilationsRate : undefined; resourceInputs["searchDefaultSearchTimeout"] = state ? state.searchDefaultSearchTimeout : undefined; } else { const args = argsOrState; resourceInputs["actionAutoCreateIndex"] = args ? args.actionAutoCreateIndex : undefined; resourceInputs["actionDestructiveRequiresName"] = args ? args.actionDestructiveRequiresName : undefined; resourceInputs["clusterBlocksReadOnly"] = args ? args.clusterBlocksReadOnly : undefined; resourceInputs["clusterBlocksReadOnlyAllowDelete"] = args ? args.clusterBlocksReadOnlyAllowDelete : undefined; resourceInputs["clusterIndicesCloseEnable"] = args ? args.clusterIndicesCloseEnable : undefined; resourceInputs["clusterInfoUpdateInterval"] = args ? args.clusterInfoUpdateInterval : undefined; resourceInputs["clusterMaxShardsPerNode"] = args ? args.clusterMaxShardsPerNode : undefined; resourceInputs["clusterMaxShardsPerNodeFrozen"] = args ? args.clusterMaxShardsPerNodeFrozen : undefined; resourceInputs["clusterNoMasterBlock"] = args ? args.clusterNoMasterBlock : undefined; resourceInputs["clusterPersistentTasksAllocationEnable"] = args ? args.clusterPersistentTasksAllocationEnable : undefined; resourceInputs["clusterPersistentTasksAllocationRecheckInterval"] = args ? args.clusterPersistentTasksAllocationRecheckInterval : undefined; resourceInputs["clusterRoutingAllocationAllowRebalance"] = args ? args.clusterRoutingAllocationAllowRebalance : undefined; resourceInputs["clusterRoutingAllocationAwarenessAttributes"] = args ? args.clusterRoutingAllocationAwarenessAttributes : undefined; resourceInputs["clusterRoutingAllocationBalanceIndex"] = args ? args.clusterRoutingAllocationBalanceIndex : undefined; resourceInputs["clusterRoutingAllocationBalanceShard"] = args ? args.clusterRoutingAllocationBalanceShard : undefined; resourceInputs["clusterRoutingAllocationBalanceThreshold"] = args ? args.clusterRoutingAllocationBalanceThreshold : undefined; resourceInputs["clusterRoutingAllocationClusterConcurrentRebalance"] = args ? args.clusterRoutingAllocationClusterConcurrentRebalance : undefined; resourceInputs["clusterRoutingAllocationDiskIncludeRelocations"] = args ? args.clusterRoutingAllocationDiskIncludeRelocations : undefined; resourceInputs["clusterRoutingAllocationDiskThresholdEnabled"] = args ? args.clusterRoutingAllocationDiskThresholdEnabled : undefined; resourceInputs["clusterRoutingAllocationDiskWatermarkHigh"] = args ? args.clusterRoutingAllocationDiskWatermarkHigh : undefined; resourceInputs["clusterRoutingAllocationDiskWatermarkLow"] = args ? args.clusterRoutingAllocationDiskWatermarkLow : undefined; resourceInputs["clusterRoutingAllocationEnable"] = args ? args.clusterRoutingAllocationEnable : undefined; resourceInputs["clusterRoutingAllocationNodeConcurrentIncomingRecoveries"] = args ? args.clusterRoutingAllocationNodeConcurrentIncomingRecoveries : undefined; resourceInputs["clusterRoutingAllocationNodeConcurrentOutgoingRecoveries"] = args ? args.clusterRoutingAllocationNodeConcurrentOutgoingRecoveries : undefined; resourceInputs["clusterRoutingAllocationNodeConcurrentRecoveries"] = args ? args.clusterRoutingAllocationNodeConcurrentRecoveries : undefined; resourceInputs["clusterRoutingAllocationNodeInitialPrimariesRecoveries"] = args ? args.clusterRoutingAllocationNodeInitialPrimariesRecoveries : undefined; resourceInputs["clusterRoutingAllocationSameShardHost"] = args ? args.clusterRoutingAllocationSameShardHost : undefined; resourceInputs["clusterRoutingAllocationTotalShardsPerNode"] = args ? args.clusterRoutingAllocationTotalShardsPerNode : undefined; resourceInputs["clusterRoutingRebalanceEnable"] = args ? args.clusterRoutingRebalanceEnable : undefined; resourceInputs["indicesBreakerFielddataLimit"] = args ? args.indicesBreakerFielddataLimit : undefined; resourceInputs["indicesBreakerFielddataOverhead"] = args ? args.indicesBreakerFielddataOverhead : undefined; resourceInputs["indicesBreakerRequestLimit"] = args ? args.indicesBreakerRequestLimit : undefined; resourceInputs["indicesBreakerRequestOverhead"] = args ? args.indicesBreakerRequestOverhead : undefined; resourceInputs["indicesBreakerTotalLimit"] = args ? args.indicesBreakerTotalLimit : undefined; resourceInputs["indicesRecoveryMaxBytesPerSec"] = args ? args.indicesRecoveryMaxBytesPerSec : undefined; resourceInputs["networkBreakerInflightRequestsLimit"] = args ? args.networkBreakerInflightRequestsLimit : undefined; resourceInputs["networkBreakerInflightRequestsOverhead"] = args ? args.networkBreakerInflightRequestsOverhead : undefined; resourceInputs["scriptMaxCompilationsRate"] = args ? args.scriptMaxCompilationsRate : undefined; resourceInputs["searchDefaultSearchTimeout"] = args ? args.searchDefaultSearchTimeout : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ClusterSettings.__pulumiType, name, resourceInputs, opts); } } exports.ClusterSettings = ClusterSettings; /** @internal */ ClusterSettings.__pulumiType = 'opensearch:index/clusterSettings:ClusterSettings'; //# sourceMappingURL=clusterSettings.js.map