tencentcloud.ElasticsearchUpdatePluginsOperation
Explore with Pulumi AI
Provides a resource to update elasticsearch plugins
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const updatePluginsOperation = new tencentcloud.ElasticsearchUpdatePluginsOperation("updatePluginsOperation", {
forceRestart: false,
forceUpdate: true,
installPluginLists: ["analysis-pinyin"],
instanceId: "es-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
update_plugins_operation = tencentcloud.ElasticsearchUpdatePluginsOperation("updatePluginsOperation",
force_restart=False,
force_update=True,
install_plugin_lists=["analysis-pinyin"],
instance_id="es-xxxxxx")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewElasticsearchUpdatePluginsOperation(ctx, "updatePluginsOperation", &tencentcloud.ElasticsearchUpdatePluginsOperationArgs{
ForceRestart: pulumi.Bool(false),
ForceUpdate: pulumi.Bool(true),
InstallPluginLists: pulumi.StringArray{
pulumi.String("analysis-pinyin"),
},
InstanceId: pulumi.String("es-xxxxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var updatePluginsOperation = new Tencentcloud.ElasticsearchUpdatePluginsOperation("updatePluginsOperation", new()
{
ForceRestart = false,
ForceUpdate = true,
InstallPluginLists = new[]
{
"analysis-pinyin",
},
InstanceId = "es-xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ElasticsearchUpdatePluginsOperation;
import com.pulumi.tencentcloud.ElasticsearchUpdatePluginsOperationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var updatePluginsOperation = new ElasticsearchUpdatePluginsOperation("updatePluginsOperation", ElasticsearchUpdatePluginsOperationArgs.builder()
.forceRestart(false)
.forceUpdate(true)
.installPluginLists("analysis-pinyin")
.instanceId("es-xxxxxx")
.build());
}
}
resources:
updatePluginsOperation:
type: tencentcloud:ElasticsearchUpdatePluginsOperation
properties:
forceRestart: false
forceUpdate: true
installPluginLists:
- analysis-pinyin
instanceId: es-xxxxxx
Create ElasticsearchUpdatePluginsOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticsearchUpdatePluginsOperation(name: string, args: ElasticsearchUpdatePluginsOperationArgs, opts?: CustomResourceOptions);
@overload
def ElasticsearchUpdatePluginsOperation(resource_name: str,
args: ElasticsearchUpdatePluginsOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticsearchUpdatePluginsOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
elasticsearch_update_plugins_operation_id: Optional[str] = None,
force_restart: Optional[bool] = None,
force_update: Optional[bool] = None,
install_plugin_lists: Optional[Sequence[str]] = None,
plugin_type: Optional[float] = None,
remove_plugin_lists: Optional[Sequence[str]] = None)
func NewElasticsearchUpdatePluginsOperation(ctx *Context, name string, args ElasticsearchUpdatePluginsOperationArgs, opts ...ResourceOption) (*ElasticsearchUpdatePluginsOperation, error)
public ElasticsearchUpdatePluginsOperation(string name, ElasticsearchUpdatePluginsOperationArgs args, CustomResourceOptions? opts = null)
public ElasticsearchUpdatePluginsOperation(String name, ElasticsearchUpdatePluginsOperationArgs args)
public ElasticsearchUpdatePluginsOperation(String name, ElasticsearchUpdatePluginsOperationArgs args, CustomResourceOptions options)
type: tencentcloud:ElasticsearchUpdatePluginsOperation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ElasticsearchUpdatePluginsOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ElasticsearchUpdatePluginsOperationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ElasticsearchUpdatePluginsOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticsearchUpdatePluginsOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElasticsearchUpdatePluginsOperationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ElasticsearchUpdatePluginsOperation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ElasticsearchUpdatePluginsOperation resource accepts the following input properties:
- Instance
Id string - Instance id.
- Elasticsearch
Update stringPlugins Operation Id - ID of the resource.
- Force
Restart bool - Whether to force a restart. Default is false.
- Force
Update bool - Whether to reinstall, default value false.
- Install
Plugin List<string>Lists - List of plugins that need to be installed.
- Plugin
Type double - Plugin type. 0: system plugin.
- Remove
Plugin List<string>Lists - List of plugins that need to be uninstalled.
- Instance
Id string - Instance id.
- Elasticsearch
Update stringPlugins Operation Id - ID of the resource.
- Force
Restart bool - Whether to force a restart. Default is false.
- Force
Update bool - Whether to reinstall, default value false.
- Install
Plugin []stringLists - List of plugins that need to be installed.
- Plugin
Type float64 - Plugin type. 0: system plugin.
- Remove
Plugin []stringLists - List of plugins that need to be uninstalled.
- instance
Id String - Instance id.
- elasticsearch
Update StringPlugins Operation Id - ID of the resource.
- force
Restart Boolean - Whether to force a restart. Default is false.
- force
Update Boolean - Whether to reinstall, default value false.
- install
Plugin List<String>Lists - List of plugins that need to be installed.
- plugin
Type Double - Plugin type. 0: system plugin.
- remove
Plugin List<String>Lists - List of plugins that need to be uninstalled.
- instance
Id string - Instance id.
- elasticsearch
Update stringPlugins Operation Id - ID of the resource.
- force
Restart boolean - Whether to force a restart. Default is false.
- force
Update boolean - Whether to reinstall, default value false.
- install
Plugin string[]Lists - List of plugins that need to be installed.
- plugin
Type number - Plugin type. 0: system plugin.
- remove
Plugin string[]Lists - List of plugins that need to be uninstalled.
- instance_
id str - Instance id.
- elasticsearch_
update_ strplugins_ operation_ id - ID of the resource.
- force_
restart bool - Whether to force a restart. Default is false.
- force_
update bool - Whether to reinstall, default value false.
- install_
plugin_ Sequence[str]lists - List of plugins that need to be installed.
- plugin_
type float - Plugin type. 0: system plugin.
- remove_
plugin_ Sequence[str]lists - List of plugins that need to be uninstalled.
- instance
Id String - Instance id.
- elasticsearch
Update StringPlugins Operation Id - ID of the resource.
- force
Restart Boolean - Whether to force a restart. Default is false.
- force
Update Boolean - Whether to reinstall, default value false.
- install
Plugin List<String>Lists - List of plugins that need to be installed.
- plugin
Type Number - Plugin type. 0: system plugin.
- remove
Plugin List<String>Lists - List of plugins that need to be uninstalled.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticsearchUpdatePluginsOperation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ElasticsearchUpdatePluginsOperation Resource
Get an existing ElasticsearchUpdatePluginsOperation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ElasticsearchUpdatePluginsOperationState, opts?: CustomResourceOptions): ElasticsearchUpdatePluginsOperation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
elasticsearch_update_plugins_operation_id: Optional[str] = None,
force_restart: Optional[bool] = None,
force_update: Optional[bool] = None,
install_plugin_lists: Optional[Sequence[str]] = None,
instance_id: Optional[str] = None,
plugin_type: Optional[float] = None,
remove_plugin_lists: Optional[Sequence[str]] = None) -> ElasticsearchUpdatePluginsOperation
func GetElasticsearchUpdatePluginsOperation(ctx *Context, name string, id IDInput, state *ElasticsearchUpdatePluginsOperationState, opts ...ResourceOption) (*ElasticsearchUpdatePluginsOperation, error)
public static ElasticsearchUpdatePluginsOperation Get(string name, Input<string> id, ElasticsearchUpdatePluginsOperationState? state, CustomResourceOptions? opts = null)
public static ElasticsearchUpdatePluginsOperation get(String name, Output<String> id, ElasticsearchUpdatePluginsOperationState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ElasticsearchUpdatePluginsOperation get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Elasticsearch
Update stringPlugins Operation Id - ID of the resource.
- Force
Restart bool - Whether to force a restart. Default is false.
- Force
Update bool - Whether to reinstall, default value false.
- Install
Plugin List<string>Lists - List of plugins that need to be installed.
- Instance
Id string - Instance id.
- Plugin
Type double - Plugin type. 0: system plugin.
- Remove
Plugin List<string>Lists - List of plugins that need to be uninstalled.
- Elasticsearch
Update stringPlugins Operation Id - ID of the resource.
- Force
Restart bool - Whether to force a restart. Default is false.
- Force
Update bool - Whether to reinstall, default value false.
- Install
Plugin []stringLists - List of plugins that need to be installed.
- Instance
Id string - Instance id.
- Plugin
Type float64 - Plugin type. 0: system plugin.
- Remove
Plugin []stringLists - List of plugins that need to be uninstalled.
- elasticsearch
Update StringPlugins Operation Id - ID of the resource.
- force
Restart Boolean - Whether to force a restart. Default is false.
- force
Update Boolean - Whether to reinstall, default value false.
- install
Plugin List<String>Lists - List of plugins that need to be installed.
- instance
Id String - Instance id.
- plugin
Type Double - Plugin type. 0: system plugin.
- remove
Plugin List<String>Lists - List of plugins that need to be uninstalled.
- elasticsearch
Update stringPlugins Operation Id - ID of the resource.
- force
Restart boolean - Whether to force a restart. Default is false.
- force
Update boolean - Whether to reinstall, default value false.
- install
Plugin string[]Lists - List of plugins that need to be installed.
- instance
Id string - Instance id.
- plugin
Type number - Plugin type. 0: system plugin.
- remove
Plugin string[]Lists - List of plugins that need to be uninstalled.
- elasticsearch_
update_ strplugins_ operation_ id - ID of the resource.
- force_
restart bool - Whether to force a restart. Default is false.
- force_
update bool - Whether to reinstall, default value false.
- install_
plugin_ Sequence[str]lists - List of plugins that need to be installed.
- instance_
id str - Instance id.
- plugin_
type float - Plugin type. 0: system plugin.
- remove_
plugin_ Sequence[str]lists - List of plugins that need to be uninstalled.
- elasticsearch
Update StringPlugins Operation Id - ID of the resource.
- force
Restart Boolean - Whether to force a restart. Default is false.
- force
Update Boolean - Whether to reinstall, default value false.
- install
Plugin List<String>Lists - List of plugins that need to be installed.
- instance
Id String - Instance id.
- plugin
Type Number - Plugin type. 0: system plugin.
- remove
Plugin List<String>Lists - List of plugins that need to be uninstalled.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.