tencentcloud.ElasticsearchDiagnose
Explore with Pulumi AI
Provides a resource to create a elasticsearch diagnose
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const diagnose = new tencentcloud.ElasticsearchDiagnose("diagnose", {
cronTime: "15:00:00",
instanceId: "es-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
diagnose = tencentcloud.ElasticsearchDiagnose("diagnose",
cron_time="15:00:00",
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.NewElasticsearchDiagnose(ctx, "diagnose", &tencentcloud.ElasticsearchDiagnoseArgs{
CronTime: pulumi.String("15:00:00"),
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 diagnose = new Tencentcloud.ElasticsearchDiagnose("diagnose", new()
{
CronTime = "15:00:00",
InstanceId = "es-xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ElasticsearchDiagnose;
import com.pulumi.tencentcloud.ElasticsearchDiagnoseArgs;
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 diagnose = new ElasticsearchDiagnose("diagnose", ElasticsearchDiagnoseArgs.builder()
.cronTime("15:00:00")
.instanceId("es-xxxxxx")
.build());
}
}
resources:
diagnose:
type: tencentcloud:ElasticsearchDiagnose
properties:
cronTime: 15:00:00
instanceId: es-xxxxxx
Create ElasticsearchDiagnose Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticsearchDiagnose(name: string, args: ElasticsearchDiagnoseArgs, opts?: CustomResourceOptions);
@overload
def ElasticsearchDiagnose(resource_name: str,
args: ElasticsearchDiagnoseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticsearchDiagnose(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
cron_time: Optional[str] = None,
elasticsearch_diagnose_id: Optional[str] = None)
func NewElasticsearchDiagnose(ctx *Context, name string, args ElasticsearchDiagnoseArgs, opts ...ResourceOption) (*ElasticsearchDiagnose, error)
public ElasticsearchDiagnose(string name, ElasticsearchDiagnoseArgs args, CustomResourceOptions? opts = null)
public ElasticsearchDiagnose(String name, ElasticsearchDiagnoseArgs args)
public ElasticsearchDiagnose(String name, ElasticsearchDiagnoseArgs args, CustomResourceOptions options)
type: tencentcloud:ElasticsearchDiagnose
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 ElasticsearchDiagnoseArgs
- 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 ElasticsearchDiagnoseArgs
- 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 ElasticsearchDiagnoseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticsearchDiagnoseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElasticsearchDiagnoseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ElasticsearchDiagnose 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 ElasticsearchDiagnose resource accepts the following input properties:
- Instance
Id string - Instance id.
- Cron
Time string - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- Elasticsearch
Diagnose stringId - ID of the resource.
- Instance
Id string - Instance id.
- Cron
Time string - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- Elasticsearch
Diagnose stringId - ID of the resource.
- instance
Id String - Instance id.
- cron
Time String - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- elasticsearch
Diagnose StringId - ID of the resource.
- instance
Id string - Instance id.
- cron
Time string - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- elasticsearch
Diagnose stringId - ID of the resource.
- instance_
id str - Instance id.
- cron_
time str - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- elasticsearch_
diagnose_ strid - ID of the resource.
- instance
Id String - Instance id.
- cron
Time String - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- elasticsearch
Diagnose StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticsearchDiagnose resource produces the following output properties:
- Diagnose
Job List<ElasticsearchMetas Diagnose Diagnose Job Meta> - Diagnostic items and meta-information of intelligent operation and maintenance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Count double - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- Diagnose
Job []ElasticsearchMetas Diagnose Diagnose Job Meta - Diagnostic items and meta-information of intelligent operation and maintenance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Count float64 - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- diagnose
Job List<ElasticsearchMetas Diagnose Diagnose Job Meta> - Diagnostic items and meta-information of intelligent operation and maintenance.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Count Double - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- diagnose
Job ElasticsearchMetas Diagnose Diagnose Job Meta[] - Diagnostic items and meta-information of intelligent operation and maintenance.
- id string
- The provider-assigned unique ID for this managed resource.
- max
Count number - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- diagnose_
job_ Sequence[Elasticsearchmetas Diagnose Diagnose Job Meta] - Diagnostic items and meta-information of intelligent operation and maintenance.
- id str
- The provider-assigned unique ID for this managed resource.
- max_
count float - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- diagnose
Job List<Property Map>Metas - Diagnostic items and meta-information of intelligent operation and maintenance.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Count Number - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
Look up Existing ElasticsearchDiagnose Resource
Get an existing ElasticsearchDiagnose 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?: ElasticsearchDiagnoseState, opts?: CustomResourceOptions): ElasticsearchDiagnose
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cron_time: Optional[str] = None,
diagnose_job_metas: Optional[Sequence[ElasticsearchDiagnoseDiagnoseJobMetaArgs]] = None,
elasticsearch_diagnose_id: Optional[str] = None,
instance_id: Optional[str] = None,
max_count: Optional[float] = None) -> ElasticsearchDiagnose
func GetElasticsearchDiagnose(ctx *Context, name string, id IDInput, state *ElasticsearchDiagnoseState, opts ...ResourceOption) (*ElasticsearchDiagnose, error)
public static ElasticsearchDiagnose Get(string name, Input<string> id, ElasticsearchDiagnoseState? state, CustomResourceOptions? opts = null)
public static ElasticsearchDiagnose get(String name, Output<String> id, ElasticsearchDiagnoseState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ElasticsearchDiagnose 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.
- Cron
Time string - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- Diagnose
Job List<ElasticsearchMetas Diagnose Diagnose Job Meta> - Diagnostic items and meta-information of intelligent operation and maintenance.
- Elasticsearch
Diagnose stringId - ID of the resource.
- Instance
Id string - Instance id.
- Max
Count double - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- Cron
Time string - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- Diagnose
Job []ElasticsearchMetas Diagnose Diagnose Job Meta Args - Diagnostic items and meta-information of intelligent operation and maintenance.
- Elasticsearch
Diagnose stringId - ID of the resource.
- Instance
Id string - Instance id.
- Max
Count float64 - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- cron
Time String - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- diagnose
Job List<ElasticsearchMetas Diagnose Diagnose Job Meta> - Diagnostic items and meta-information of intelligent operation and maintenance.
- elasticsearch
Diagnose StringId - ID of the resource.
- instance
Id String - Instance id.
- max
Count Double - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- cron
Time string - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- diagnose
Job ElasticsearchMetas Diagnose Diagnose Job Meta[] - Diagnostic items and meta-information of intelligent operation and maintenance.
- elasticsearch
Diagnose stringId - ID of the resource.
- instance
Id string - Instance id.
- max
Count number - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- cron_
time str - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- diagnose_
job_ Sequence[Elasticsearchmetas Diagnose Diagnose Job Meta Args] - Diagnostic items and meta-information of intelligent operation and maintenance.
- elasticsearch_
diagnose_ strid - ID of the resource.
- instance_
id str - Instance id.
- max_
count float - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
- cron
Time String - Intelligent operation and maintenance staff regularly patrol the inspection time every day, the time format is HH:00:00, such as 15:00:00.
- diagnose
Job List<Property Map>Metas - Diagnostic items and meta-information of intelligent operation and maintenance.
- elasticsearch
Diagnose StringId - ID of the resource.
- instance
Id String - Instance id.
- max
Count Number - The maximum number of manual triggers per day for intelligent operation and maintenance staff.
Supporting Types
ElasticsearchDiagnoseDiagnoseJobMeta, ElasticsearchDiagnoseDiagnoseJobMetaArgs
- Job
Description string - Intelligent operation and maintenance diagnostic item description.
- Job
Name string - English name of diagnosis item for intelligent operation and maintenance.
- Job
Zh stringName - Chinese name of intelligent operation and maintenance diagnosis item.
- Job
Description string - Intelligent operation and maintenance diagnostic item description.
- Job
Name string - English name of diagnosis item for intelligent operation and maintenance.
- Job
Zh stringName - Chinese name of intelligent operation and maintenance diagnosis item.
- job
Description String - Intelligent operation and maintenance diagnostic item description.
- job
Name String - English name of diagnosis item for intelligent operation and maintenance.
- job
Zh StringName - Chinese name of intelligent operation and maintenance diagnosis item.
- job
Description string - Intelligent operation and maintenance diagnostic item description.
- job
Name string - English name of diagnosis item for intelligent operation and maintenance.
- job
Zh stringName - Chinese name of intelligent operation and maintenance diagnosis item.
- job_
description str - Intelligent operation and maintenance diagnostic item description.
- job_
name str - English name of diagnosis item for intelligent operation and maintenance.
- job_
zh_ strname - Chinese name of intelligent operation and maintenance diagnosis item.
- job
Description String - Intelligent operation and maintenance diagnostic item description.
- job
Name String - English name of diagnosis item for intelligent operation and maintenance.
- job
Zh StringName - Chinese name of intelligent operation and maintenance diagnosis item.
Import
es diagnose can be imported using the id, e.g.
$ pulumi import tencentcloud:index/elasticsearchDiagnose:ElasticsearchDiagnose diagnose diagnose_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.