tencentcloud.ElasticsearchLogstashPipeline
Explore with Pulumi AI
Provides a resource to create a elasticsearch logstash pipeline
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const logstashPipeline = new tencentcloud.ElasticsearchLogstashPipeline("logstashPipeline", {
instanceId: "ls-xxxxxx",
opType: 2,
pipeline: {
batchDelay: 50,
batchSize: 125,
config: `input{
}
filter{
}
output{
}
`,
pipelineDesc: "",
pipelineId: "logstash-pipeline-test",
queueCheckPointWrites: 0,
queueMaxBytes: "",
queueType: "memory",
workers: 1,
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
logstash_pipeline = tencentcloud.ElasticsearchLogstashPipeline("logstashPipeline",
instance_id="ls-xxxxxx",
op_type=2,
pipeline={
"batch_delay": 50,
"batch_size": 125,
"config": """input{
}
filter{
}
output{
}
""",
"pipeline_desc": "",
"pipeline_id": "logstash-pipeline-test",
"queue_check_point_writes": 0,
"queue_max_bytes": "",
"queue_type": "memory",
"workers": 1,
})
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.NewElasticsearchLogstashPipeline(ctx, "logstashPipeline", &tencentcloud.ElasticsearchLogstashPipelineArgs{
InstanceId: pulumi.String("ls-xxxxxx"),
OpType: pulumi.Float64(2),
Pipeline: &tencentcloud.ElasticsearchLogstashPipelinePipelineArgs{
BatchDelay: pulumi.Float64(50),
BatchSize: pulumi.Float64(125),
Config: pulumi.String("input{\n\n}\nfilter{\n\n}\noutput{\n\n}\n\n"),
PipelineDesc: pulumi.String(""),
PipelineId: pulumi.String("logstash-pipeline-test"),
QueueCheckPointWrites: pulumi.Float64(0),
QueueMaxBytes: pulumi.String(""),
QueueType: pulumi.String("memory"),
Workers: pulumi.Float64(1),
},
})
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 logstashPipeline = new Tencentcloud.ElasticsearchLogstashPipeline("logstashPipeline", new()
{
InstanceId = "ls-xxxxxx",
OpType = 2,
Pipeline = new Tencentcloud.Inputs.ElasticsearchLogstashPipelinePipelineArgs
{
BatchDelay = 50,
BatchSize = 125,
Config = @"input{
}
filter{
}
output{
}
",
PipelineDesc = "",
PipelineId = "logstash-pipeline-test",
QueueCheckPointWrites = 0,
QueueMaxBytes = "",
QueueType = "memory",
Workers = 1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ElasticsearchLogstashPipeline;
import com.pulumi.tencentcloud.ElasticsearchLogstashPipelineArgs;
import com.pulumi.tencentcloud.inputs.ElasticsearchLogstashPipelinePipelineArgs;
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 logstashPipeline = new ElasticsearchLogstashPipeline("logstashPipeline", ElasticsearchLogstashPipelineArgs.builder()
.instanceId("ls-xxxxxx")
.opType(2)
.pipeline(ElasticsearchLogstashPipelinePipelineArgs.builder()
.batchDelay(50)
.batchSize(125)
.config("""
input{
}
filter{
}
output{
}
""")
.pipelineDesc("")
.pipelineId("logstash-pipeline-test")
.queueCheckPointWrites(0)
.queueMaxBytes("")
.queueType("memory")
.workers(1)
.build())
.build());
}
}
resources:
logstashPipeline:
type: tencentcloud:ElasticsearchLogstashPipeline
properties:
instanceId: ls-xxxxxx
opType: 2
pipeline:
batchDelay: 50
batchSize: 125
config: |+
input{
}
filter{
}
output{
}
pipelineDesc: ""
pipelineId: logstash-pipeline-test
queueCheckPointWrites: 0
queueMaxBytes: ""
queueType: memory
workers: 1
Create ElasticsearchLogstashPipeline Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticsearchLogstashPipeline(name: string, args: ElasticsearchLogstashPipelineArgs, opts?: CustomResourceOptions);
@overload
def ElasticsearchLogstashPipeline(resource_name: str,
args: ElasticsearchLogstashPipelineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticsearchLogstashPipeline(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
op_type: Optional[float] = None,
pipeline: Optional[ElasticsearchLogstashPipelinePipelineArgs] = None,
elasticsearch_logstash_pipeline_id: Optional[str] = None)
func NewElasticsearchLogstashPipeline(ctx *Context, name string, args ElasticsearchLogstashPipelineArgs, opts ...ResourceOption) (*ElasticsearchLogstashPipeline, error)
public ElasticsearchLogstashPipeline(string name, ElasticsearchLogstashPipelineArgs args, CustomResourceOptions? opts = null)
public ElasticsearchLogstashPipeline(String name, ElasticsearchLogstashPipelineArgs args)
public ElasticsearchLogstashPipeline(String name, ElasticsearchLogstashPipelineArgs args, CustomResourceOptions options)
type: tencentcloud:ElasticsearchLogstashPipeline
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ElasticsearchLogstashPipelineArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ElasticsearchLogstashPipelineArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ElasticsearchLogstashPipelineArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ElasticsearchLogstashPipelineArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ElasticsearchLogstashPipelineArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ElasticsearchLogstashPipeline 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 ElasticsearchLogstashPipeline resource accepts the following input properties:
- Instance
Id This property is required. string - Logstash instance id.
- Op
Type This property is required. double - Operation type. 1: save only; 2: save and deploy.
- Pipeline
This property is required. ElasticsearchLogstash Pipeline Pipeline - Pipeline information.
- Elasticsearch
Logstash stringPipeline Id - ID of the resource.
- Instance
Id This property is required. string - Logstash instance id.
- Op
Type This property is required. float64 - Operation type. 1: save only; 2: save and deploy.
- Pipeline
This property is required. ElasticsearchLogstash Pipeline Pipeline Args - Pipeline information.
- Elasticsearch
Logstash stringPipeline Id - ID of the resource.
- instance
Id This property is required. String - Logstash instance id.
- op
Type This property is required. Double - Operation type. 1: save only; 2: save and deploy.
- pipeline
This property is required. ElasticsearchLogstash Pipeline Pipeline - Pipeline information.
- elasticsearch
Logstash StringPipeline Id - ID of the resource.
- instance
Id This property is required. string - Logstash instance id.
- op
Type This property is required. number - Operation type. 1: save only; 2: save and deploy.
- pipeline
This property is required. ElasticsearchLogstash Pipeline Pipeline - Pipeline information.
- elasticsearch
Logstash stringPipeline Id - ID of the resource.
- instance_
id This property is required. str - Logstash instance id.
- op_
type This property is required. float - Operation type. 1: save only; 2: save and deploy.
- pipeline
This property is required. ElasticsearchLogstash Pipeline Pipeline Args - Pipeline information.
- elasticsearch_
logstash_ strpipeline_ id - ID of the resource.
- instance
Id This property is required. String - Logstash instance id.
- op
Type This property is required. Number - Operation type. 1: save only; 2: save and deploy.
- pipeline
This property is required. Property Map - Pipeline information.
- elasticsearch
Logstash StringPipeline Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticsearchLogstashPipeline 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 ElasticsearchLogstashPipeline Resource
Get an existing ElasticsearchLogstashPipeline 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?: ElasticsearchLogstashPipelineState, opts?: CustomResourceOptions): ElasticsearchLogstashPipeline
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
elasticsearch_logstash_pipeline_id: Optional[str] = None,
instance_id: Optional[str] = None,
op_type: Optional[float] = None,
pipeline: Optional[ElasticsearchLogstashPipelinePipelineArgs] = None) -> ElasticsearchLogstashPipeline
func GetElasticsearchLogstashPipeline(ctx *Context, name string, id IDInput, state *ElasticsearchLogstashPipelineState, opts ...ResourceOption) (*ElasticsearchLogstashPipeline, error)
public static ElasticsearchLogstashPipeline Get(string name, Input<string> id, ElasticsearchLogstashPipelineState? state, CustomResourceOptions? opts = null)
public static ElasticsearchLogstashPipeline get(String name, Output<String> id, ElasticsearchLogstashPipelineState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ElasticsearchLogstashPipeline get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
Logstash stringPipeline Id - ID of the resource.
- Instance
Id string - Logstash instance id.
- Op
Type double - Operation type. 1: save only; 2: save and deploy.
- Pipeline
Elasticsearch
Logstash Pipeline Pipeline - Pipeline information.
- Elasticsearch
Logstash stringPipeline Id - ID of the resource.
- Instance
Id string - Logstash instance id.
- Op
Type float64 - Operation type. 1: save only; 2: save and deploy.
- Pipeline
Elasticsearch
Logstash Pipeline Pipeline Args - Pipeline information.
- elasticsearch
Logstash StringPipeline Id - ID of the resource.
- instance
Id String - Logstash instance id.
- op
Type Double - Operation type. 1: save only; 2: save and deploy.
- pipeline
Elasticsearch
Logstash Pipeline Pipeline - Pipeline information.
- elasticsearch
Logstash stringPipeline Id - ID of the resource.
- instance
Id string - Logstash instance id.
- op
Type number - Operation type. 1: save only; 2: save and deploy.
- pipeline
Elasticsearch
Logstash Pipeline Pipeline - Pipeline information.
- elasticsearch_
logstash_ strpipeline_ id - ID of the resource.
- instance_
id str - Logstash instance id.
- op_
type float - Operation type. 1: save only; 2: save and deploy.
- pipeline
Elasticsearch
Logstash Pipeline Pipeline Args - Pipeline information.
- elasticsearch
Logstash StringPipeline Id - ID of the resource.
- instance
Id String - Logstash instance id.
- op
Type Number - Operation type. 1: save only; 2: save and deploy.
- pipeline Property Map
- Pipeline information.
Supporting Types
ElasticsearchLogstashPipelinePipeline, ElasticsearchLogstashPipelinePipelineArgs
- Batch
Delay This property is required. double - Pipeline batch processing delay.
- Batch
Size This property is required. double - Pipe batch size.
- Config
This property is required. string - Pipeline configuration content.
- Pipeline
Desc This property is required. string - Pipeline description information.
- Pipeline
Id This property is required. string - Pipeline id.
- Queue
Check Point Writes This property is required. double - Number of pipeline buffer queue checkpoint writes.
- Queue
Max Bytes This property is required. string - Pipeline buffer queue size.
- Queue
Type This property is required. string - Pipeline buffer queue type.
- Workers
This property is required. double - Number of Worker of pipe.
- Batch
Delay This property is required. float64 - Pipeline batch processing delay.
- Batch
Size This property is required. float64 - Pipe batch size.
- Config
This property is required. string - Pipeline configuration content.
- Pipeline
Desc This property is required. string - Pipeline description information.
- Pipeline
Id This property is required. string - Pipeline id.
- Queue
Check Point Writes This property is required. float64 - Number of pipeline buffer queue checkpoint writes.
- Queue
Max Bytes This property is required. string - Pipeline buffer queue size.
- Queue
Type This property is required. string - Pipeline buffer queue type.
- Workers
This property is required. float64 - Number of Worker of pipe.
- batch
Delay This property is required. Double - Pipeline batch processing delay.
- batch
Size This property is required. Double - Pipe batch size.
- config
This property is required. String - Pipeline configuration content.
- pipeline
Desc This property is required. String - Pipeline description information.
- pipeline
Id This property is required. String - Pipeline id.
- queue
Check Point Writes This property is required. Double - Number of pipeline buffer queue checkpoint writes.
- queue
Max Bytes This property is required. String - Pipeline buffer queue size.
- queue
Type This property is required. String - Pipeline buffer queue type.
- workers
This property is required. Double - Number of Worker of pipe.
- batch
Delay This property is required. number - Pipeline batch processing delay.
- batch
Size This property is required. number - Pipe batch size.
- config
This property is required. string - Pipeline configuration content.
- pipeline
Desc This property is required. string - Pipeline description information.
- pipeline
Id This property is required. string - Pipeline id.
- queue
Check Point Writes This property is required. number - Number of pipeline buffer queue checkpoint writes.
- queue
Max Bytes This property is required. string - Pipeline buffer queue size.
- queue
Type This property is required. string - Pipeline buffer queue type.
- workers
This property is required. number - Number of Worker of pipe.
- batch_
delay This property is required. float - Pipeline batch processing delay.
- batch_
size This property is required. float - Pipe batch size.
- config
This property is required. str - Pipeline configuration content.
- pipeline_
desc This property is required. str - Pipeline description information.
- pipeline_
id This property is required. str - Pipeline id.
- queue_
check_ point_ writes This property is required. float - Number of pipeline buffer queue checkpoint writes.
- queue_
max_ bytes This property is required. str - Pipeline buffer queue size.
- queue_
type This property is required. str - Pipeline buffer queue type.
- workers
This property is required. float - Number of Worker of pipe.
- batch
Delay This property is required. Number - Pipeline batch processing delay.
- batch
Size This property is required. Number - Pipe batch size.
- config
This property is required. String - Pipeline configuration content.
- pipeline
Desc This property is required. String - Pipeline description information.
- pipeline
Id This property is required. String - Pipeline id.
- queue
Check Point Writes This property is required. Number - Number of pipeline buffer queue checkpoint writes.
- queue
Max Bytes This property is required. String - Pipeline buffer queue size.
- queue
Type This property is required. String - Pipeline buffer queue type.
- workers
This property is required. Number - Number of Worker of pipe.
Import
elasticsearch logstash_pipeline can be imported using the id, e.g.
$ pulumi import tencentcloud:index/elasticsearchLogstashPipeline:ElasticsearchLogstashPipeline logstash_pipeline ${instance_id}#${pipeline_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.