tencentcloud.ElasticsearchDiagnoseInstance
Explore with Pulumi AI
Provides a resource to create a elasticsearch diagnose instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const diagnoseInstance = new tencentcloud.ElasticsearchDiagnoseInstance("diagnoseInstance", {
diagnoseIndices: "*",
diagnoseJobs: ["cluster_health"],
instanceId: "es-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
diagnose_instance = tencentcloud.ElasticsearchDiagnoseInstance("diagnoseInstance",
diagnose_indices="*",
diagnose_jobs=["cluster_health"],
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.NewElasticsearchDiagnoseInstance(ctx, "diagnoseInstance", &tencentcloud.ElasticsearchDiagnoseInstanceArgs{
DiagnoseIndices: pulumi.String("*"),
DiagnoseJobs: pulumi.StringArray{
pulumi.String("cluster_health"),
},
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 diagnoseInstance = new Tencentcloud.ElasticsearchDiagnoseInstance("diagnoseInstance", new()
{
DiagnoseIndices = "*",
DiagnoseJobs = new[]
{
"cluster_health",
},
InstanceId = "es-xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ElasticsearchDiagnoseInstance;
import com.pulumi.tencentcloud.ElasticsearchDiagnoseInstanceArgs;
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 diagnoseInstance = new ElasticsearchDiagnoseInstance("diagnoseInstance", ElasticsearchDiagnoseInstanceArgs.builder()
.diagnoseIndices("*")
.diagnoseJobs("cluster_health")
.instanceId("es-xxxxxx")
.build());
}
}
resources:
diagnoseInstance:
type: tencentcloud:ElasticsearchDiagnoseInstance
properties:
diagnoseIndices: '*'
diagnoseJobs:
- cluster_health
instanceId: es-xxxxxx
Create ElasticsearchDiagnoseInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticsearchDiagnoseInstance(name: string, args: ElasticsearchDiagnoseInstanceArgs, opts?: CustomResourceOptions);
@overload
def ElasticsearchDiagnoseInstance(resource_name: str,
args: ElasticsearchDiagnoseInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticsearchDiagnoseInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
diagnose_indices: Optional[str] = None,
diagnose_jobs: Optional[Sequence[str]] = None,
elasticsearch_diagnose_instance_id: Optional[str] = None)
func NewElasticsearchDiagnoseInstance(ctx *Context, name string, args ElasticsearchDiagnoseInstanceArgs, opts ...ResourceOption) (*ElasticsearchDiagnoseInstance, error)
public ElasticsearchDiagnoseInstance(string name, ElasticsearchDiagnoseInstanceArgs args, CustomResourceOptions? opts = null)
public ElasticsearchDiagnoseInstance(String name, ElasticsearchDiagnoseInstanceArgs args)
public ElasticsearchDiagnoseInstance(String name, ElasticsearchDiagnoseInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:ElasticsearchDiagnoseInstance
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 ElasticsearchDiagnoseInstanceArgs
- 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 ElasticsearchDiagnoseInstanceArgs
- 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 ElasticsearchDiagnoseInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticsearchDiagnoseInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElasticsearchDiagnoseInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ElasticsearchDiagnoseInstance 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 ElasticsearchDiagnoseInstance resource accepts the following input properties:
- Instance
Id string - Instance id.
- Diagnose
Indices string - Indexes that need to be diagnosed. Wildcards are supported.
- Diagnose
Jobs List<string> - Diagnostic items that need to be triggered.
- Elasticsearch
Diagnose stringInstance Id - ID of the resource.
- Instance
Id string - Instance id.
- Diagnose
Indices string - Indexes that need to be diagnosed. Wildcards are supported.
- Diagnose
Jobs []string - Diagnostic items that need to be triggered.
- Elasticsearch
Diagnose stringInstance Id - ID of the resource.
- instance
Id String - Instance id.
- diagnose
Indices String - Indexes that need to be diagnosed. Wildcards are supported.
- diagnose
Jobs List<String> - Diagnostic items that need to be triggered.
- elasticsearch
Diagnose StringInstance Id - ID of the resource.
- instance
Id string - Instance id.
- diagnose
Indices string - Indexes that need to be diagnosed. Wildcards are supported.
- diagnose
Jobs string[] - Diagnostic items that need to be triggered.
- elasticsearch
Diagnose stringInstance Id - ID of the resource.
- instance_
id str - Instance id.
- diagnose_
indices str - Indexes that need to be diagnosed. Wildcards are supported.
- diagnose_
jobs Sequence[str] - Diagnostic items that need to be triggered.
- elasticsearch_
diagnose_ strinstance_ id - ID of the resource.
- instance
Id String - Instance id.
- diagnose
Indices String - Indexes that need to be diagnosed. Wildcards are supported.
- diagnose
Jobs List<String> - Diagnostic items that need to be triggered.
- elasticsearch
Diagnose StringInstance Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticsearchDiagnoseInstance 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 ElasticsearchDiagnoseInstance Resource
Get an existing ElasticsearchDiagnoseInstance 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?: ElasticsearchDiagnoseInstanceState, opts?: CustomResourceOptions): ElasticsearchDiagnoseInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
diagnose_indices: Optional[str] = None,
diagnose_jobs: Optional[Sequence[str]] = None,
elasticsearch_diagnose_instance_id: Optional[str] = None,
instance_id: Optional[str] = None) -> ElasticsearchDiagnoseInstance
func GetElasticsearchDiagnoseInstance(ctx *Context, name string, id IDInput, state *ElasticsearchDiagnoseInstanceState, opts ...ResourceOption) (*ElasticsearchDiagnoseInstance, error)
public static ElasticsearchDiagnoseInstance Get(string name, Input<string> id, ElasticsearchDiagnoseInstanceState? state, CustomResourceOptions? opts = null)
public static ElasticsearchDiagnoseInstance get(String name, Output<String> id, ElasticsearchDiagnoseInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ElasticsearchDiagnoseInstance 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.
- Diagnose
Indices string - Indexes that need to be diagnosed. Wildcards are supported.
- Diagnose
Jobs List<string> - Diagnostic items that need to be triggered.
- Elasticsearch
Diagnose stringInstance Id - ID of the resource.
- Instance
Id string - Instance id.
- Diagnose
Indices string - Indexes that need to be diagnosed. Wildcards are supported.
- Diagnose
Jobs []string - Diagnostic items that need to be triggered.
- Elasticsearch
Diagnose stringInstance Id - ID of the resource.
- Instance
Id string - Instance id.
- diagnose
Indices String - Indexes that need to be diagnosed. Wildcards are supported.
- diagnose
Jobs List<String> - Diagnostic items that need to be triggered.
- elasticsearch
Diagnose StringInstance Id - ID of the resource.
- instance
Id String - Instance id.
- diagnose
Indices string - Indexes that need to be diagnosed. Wildcards are supported.
- diagnose
Jobs string[] - Diagnostic items that need to be triggered.
- elasticsearch
Diagnose stringInstance Id - ID of the resource.
- instance
Id string - Instance id.
- diagnose_
indices str - Indexes that need to be diagnosed. Wildcards are supported.
- diagnose_
jobs Sequence[str] - Diagnostic items that need to be triggered.
- elasticsearch_
diagnose_ strinstance_ id - ID of the resource.
- instance_
id str - Instance id.
- diagnose
Indices String - Indexes that need to be diagnosed. Wildcards are supported.
- diagnose
Jobs List<String> - Diagnostic items that need to be triggered.
- elasticsearch
Diagnose StringInstance Id - ID of the resource.
- instance
Id String - Instance id.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.