1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. sls
  5. LogtailPipelineConfig
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
 logo
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi

    Provides a Log Service (SLS) Logtail Pipeline Config resource.

    Logtail Pipeline Collection Configuration.

    For information about Log Service (SLS) Logtail Pipeline Config and how to use it, see What is Logtail Pipeline Config.

    NOTE: Available since v1.273.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const _default = new random.index.Integer("default", {
        max: 99999,
        min: 10000,
    });
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const example = new alicloud.log.Project("example", {
        projectName: `${name}-${_default.result}`,
        description: "terraform logtail pipeline config example",
    });
    const exampleStore = new alicloud.log.Store("example", {
        projectName: example.projectName,
        logstoreName: "example-store",
        shardCount: 2,
        autoSplit: true,
        maxSplitShardCount: 64,
    });
    const exampleLogtailPipelineConfig = new alicloud.sls.LogtailPipelineConfig("example", {
        project: example.projectName,
        configName: `${name}-${_default.result}`,
        inputs: [{
            Type: "input_file",
            FilePaths: "[\\\"/home/*.log\\\"]",
            EnableContainerDiscovery: "false",
            MaxDirSearchDepth: "0",
            FileEncoding: "utf8",
        }],
        processors: [{
            Type: "processor_parse_regex_native",
            SourceKey: "content",
            Regex: ".*",
            Keys: "[\\\"key1\\\",\\\"key2\\\"]",
        }],
        flushers: [{
            Type: "flusher_sls",
            Logstore: exampleStore.logstoreName,
            TelemetryType: "logs",
            Region: "cn-shanghai",
            Endpoint: "cn-shanghai-intranet.log.aliyuncs.com",
        }],
        aggregators: [{
            Type: "aggregator_default",
            MaxSizeBytes: "1048576",
            MaxTimeSeconds: "3",
        }],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    default = random.index.Integer("default",
        max=99999,
        min=10000)
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    example = alicloud.log.Project("example",
        project_name=f"{name}-{default['result']}",
        description="terraform logtail pipeline config example")
    example_store = alicloud.log.Store("example",
        project_name=example.project_name,
        logstore_name="example-store",
        shard_count=2,
        auto_split=True,
        max_split_shard_count=64)
    example_logtail_pipeline_config = alicloud.sls.LogtailPipelineConfig("example",
        project=example.project_name,
        config_name=f"{name}-{default['result']}",
        inputs=[{
            "Type": "input_file",
            "FilePaths": "[\\\"/home/*.log\\\"]",
            "EnableContainerDiscovery": "false",
            "MaxDirSearchDepth": "0",
            "FileEncoding": "utf8",
        }],
        processors=[{
            "Type": "processor_parse_regex_native",
            "SourceKey": "content",
            "Regex": ".*",
            "Keys": "[\\\"key1\\\",\\\"key2\\\"]",
        }],
        flushers=[{
            "Type": "flusher_sls",
            "Logstore": example_store.logstore_name,
            "TelemetryType": "logs",
            "Region": "cn-shanghai",
            "Endpoint": "cn-shanghai-intranet.log.aliyuncs.com",
        }],
        aggregators=[{
            "Type": "aggregator_default",
            "MaxSizeBytes": "1048576",
            "MaxTimeSeconds": "3",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sls"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Max: 99999,
    			Min: 10000,
    		})
    		if err != nil {
    			return err
    		}
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		example, err := log.NewProject(ctx, "example", &log.ProjectArgs{
    			ProjectName: pulumi.Sprintf("%v-%v", name, _default.Result),
    			Description: pulumi.String("terraform logtail pipeline config example"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleStore, err := log.NewStore(ctx, "example", &log.StoreArgs{
    			ProjectName:        example.ProjectName,
    			LogstoreName:       pulumi.String("example-store"),
    			ShardCount:         pulumi.Int(2),
    			AutoSplit:          pulumi.Bool(true),
    			MaxSplitShardCount: pulumi.Int(64),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sls.NewLogtailPipelineConfig(ctx, "example", &sls.LogtailPipelineConfigArgs{
    			Project:    example.ProjectName,
    			ConfigName: pulumi.Sprintf("%v-%v", name, _default.Result),
    			Inputs: pulumi.StringMapArray{
    				pulumi.StringMap{
    					"Type":                     pulumi.String("input_file"),
    					"FilePaths":                pulumi.String("[\\\"/home/*.log\\\"]"),
    					"EnableContainerDiscovery": pulumi.String("false"),
    					"MaxDirSearchDepth":        pulumi.String("0"),
    					"FileEncoding":             pulumi.String("utf8"),
    				},
    			},
    			Processors: pulumi.StringMapArray{
    				pulumi.StringMap{
    					"Type":      pulumi.String("processor_parse_regex_native"),
    					"SourceKey": pulumi.String("content"),
    					"Regex":     pulumi.String(".*"),
    					"Keys":      pulumi.String("[\\\"key1\\\",\\\"key2\\\"]"),
    				},
    			},
    			Flushers: pulumi.StringMapArray{
    				pulumi.StringMap{
    					"Type":          pulumi.String("flusher_sls"),
    					"Logstore":      exampleStore.LogstoreName,
    					"TelemetryType": pulumi.String("logs"),
    					"Region":        pulumi.String("cn-shanghai"),
    					"Endpoint":      pulumi.String("cn-shanghai-intranet.log.aliyuncs.com"),
    				},
    			},
    			Aggregators: pulumi.StringMapArray{
    				pulumi.StringMap{
    					"Type":           pulumi.String("aggregator_default"),
    					"MaxSizeBytes":   pulumi.String("1048576"),
    					"MaxTimeSeconds": pulumi.String("3"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Random.Index.Integer("default", new()
        {
            Max = 99999,
            Min = 10000,
        });
    
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var example = new AliCloud.Log.Project("example", new()
        {
            ProjectName = $"{name}-{@default.Result}",
            Description = "terraform logtail pipeline config example",
        });
    
        var exampleStore = new AliCloud.Log.Store("example", new()
        {
            ProjectName = example.ProjectName,
            LogstoreName = "example-store",
            ShardCount = 2,
            AutoSplit = true,
            MaxSplitShardCount = 64,
        });
    
        var exampleLogtailPipelineConfig = new AliCloud.Sls.LogtailPipelineConfig("example", new()
        {
            Project = example.ProjectName,
            ConfigName = $"{name}-{@default.Result}",
            Inputs = new[]
            {
                
                {
                    { "Type", "input_file" },
                    { "FilePaths", "[\\\"/home/*.log\\\"]" },
                    { "EnableContainerDiscovery", "false" },
                    { "MaxDirSearchDepth", "0" },
                    { "FileEncoding", "utf8" },
                },
            },
            Processors = new[]
            {
                
                {
                    { "Type", "processor_parse_regex_native" },
                    { "SourceKey", "content" },
                    { "Regex", ".*" },
                    { "Keys", "[\\\"key1\\\",\\\"key2\\\"]" },
                },
            },
            Flushers = new[]
            {
                
                {
                    { "Type", "flusher_sls" },
                    { "Logstore", exampleStore.LogstoreName },
                    { "TelemetryType", "logs" },
                    { "Region", "cn-shanghai" },
                    { "Endpoint", "cn-shanghai-intranet.log.aliyuncs.com" },
                },
            },
            Aggregators = new[]
            {
                
                {
                    { "Type", "aggregator_default" },
                    { "MaxSizeBytes", "1048576" },
                    { "MaxTimeSeconds", "3" },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.Integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.log.Project;
    import com.pulumi.alicloud.log.ProjectArgs;
    import com.pulumi.alicloud.log.Store;
    import com.pulumi.alicloud.log.StoreArgs;
    import com.pulumi.alicloud.sls.LogtailPipelineConfig;
    import com.pulumi.alicloud.sls.LogtailPipelineConfigArgs;
    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) {
            final var config = ctx.config();
            var default_ = new Integer("default", IntegerArgs.builder()
                .max(99999)
                .min(10000)
                .build());
    
            final var name = config.get("name").orElse("terraform-example");
            var example = new Project("example", ProjectArgs.builder()
                .projectName(String.format("%s-%s", name,default_.result()))
                .description("terraform logtail pipeline config example")
                .build());
    
            var exampleStore = new Store("exampleStore", StoreArgs.builder()
                .projectName(example.projectName())
                .logstoreName("example-store")
                .shardCount(2)
                .autoSplit(true)
                .maxSplitShardCount(64)
                .build());
    
            var exampleLogtailPipelineConfig = new LogtailPipelineConfig("exampleLogtailPipelineConfig", LogtailPipelineConfigArgs.builder()
                .project(example.projectName())
                .configName(String.format("%s-%s", name,default_.result()))
                .inputs(Map.ofEntries(
                    Map.entry("Type", "input_file"),
                    Map.entry("FilePaths", "[\\\"/home/*.log\\\"]"),
                    Map.entry("EnableContainerDiscovery", "false"),
                    Map.entry("MaxDirSearchDepth", "0"),
                    Map.entry("FileEncoding", "utf8")
                ))
                .processors(Map.ofEntries(
                    Map.entry("Type", "processor_parse_regex_native"),
                    Map.entry("SourceKey", "content"),
                    Map.entry("Regex", ".*"),
                    Map.entry("Keys", "[\\\"key1\\\",\\\"key2\\\"]")
                ))
                .flushers(Map.ofEntries(
                    Map.entry("Type", "flusher_sls"),
                    Map.entry("Logstore", exampleStore.logstoreName()),
                    Map.entry("TelemetryType", "logs"),
                    Map.entry("Region", "cn-shanghai"),
                    Map.entry("Endpoint", "cn-shanghai-intranet.log.aliyuncs.com")
                ))
                .aggregators(Map.ofEntries(
                    Map.entry("Type", "aggregator_default"),
                    Map.entry("MaxSizeBytes", "1048576"),
                    Map.entry("MaxTimeSeconds", "3")
                ))
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: random:Integer
        properties:
          max: 99999
          min: 10000
      example:
        type: alicloud:log:Project
        properties:
          projectName: ${name}-${default.result}
          description: terraform logtail pipeline config example
      exampleStore:
        type: alicloud:log:Store
        name: example
        properties:
          projectName: ${example.projectName}
          logstoreName: example-store
          shardCount: 2
          autoSplit: true
          maxSplitShardCount: 64
      exampleLogtailPipelineConfig:
        type: alicloud:sls:LogtailPipelineConfig
        name: example
        properties:
          project: ${example.projectName}
          configName: ${name}-${default.result}
          inputs:
            - Type: input_file
              FilePaths: '[\"/home/*.log\"]'
              EnableContainerDiscovery: false
              MaxDirSearchDepth: 0
              FileEncoding: utf8
          processors:
            - Type: processor_parse_regex_native
              SourceKey: content
              Regex: .*
              Keys: '[\"key1\",\"key2\"]'
          flushers:
            - Type: flusher_sls
              Logstore: ${exampleStore.logstoreName}
              TelemetryType: logs
              Region: cn-shanghai
              Endpoint: cn-shanghai-intranet.log.aliyuncs.com
          aggregators:
            - Type: aggregator_default
              MaxSizeBytes: 1.048576e+06
              MaxTimeSeconds: 3
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create LogtailPipelineConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LogtailPipelineConfig(name: string, args: LogtailPipelineConfigArgs, opts?: CustomResourceOptions);
    @overload
    def LogtailPipelineConfig(resource_name: str,
                              args: LogtailPipelineConfigArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogtailPipelineConfig(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              config_name: Optional[str] = None,
                              flushers: Optional[Sequence[Mapping[str, str]]] = None,
                              inputs: Optional[Sequence[Mapping[str, str]]] = None,
                              project: Optional[str] = None,
                              aggregators: Optional[Sequence[Mapping[str, str]]] = None,
                              globals: Optional[Mapping[str, str]] = None,
                              log_sample: Optional[str] = None,
                              processors: Optional[Sequence[Mapping[str, str]]] = None,
                              task: Optional[Mapping[str, str]] = None)
    func NewLogtailPipelineConfig(ctx *Context, name string, args LogtailPipelineConfigArgs, opts ...ResourceOption) (*LogtailPipelineConfig, error)
    public LogtailPipelineConfig(string name, LogtailPipelineConfigArgs args, CustomResourceOptions? opts = null)
    public LogtailPipelineConfig(String name, LogtailPipelineConfigArgs args)
    public LogtailPipelineConfig(String name, LogtailPipelineConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:sls:LogtailPipelineConfig
    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 LogtailPipelineConfigArgs
    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 LogtailPipelineConfigArgs
    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 LogtailPipelineConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogtailPipelineConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogtailPipelineConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var logtailPipelineConfigResource = new AliCloud.Sls.LogtailPipelineConfig("logtailPipelineConfigResource", new()
    {
        ConfigName = "string",
        Flushers = new[]
        {
            
            {
                { "string", "string" },
            },
        },
        Inputs = new[]
        {
            
            {
                { "string", "string" },
            },
        },
        Project = "string",
        Aggregators = new[]
        {
            
            {
                { "string", "string" },
            },
        },
        Globals = 
        {
            { "string", "string" },
        },
        LogSample = "string",
        Processors = new[]
        {
            
            {
                { "string", "string" },
            },
        },
        Task = 
        {
            { "string", "string" },
        },
    });
    
    example, err := sls.NewLogtailPipelineConfig(ctx, "logtailPipelineConfigResource", &sls.LogtailPipelineConfigArgs{
    	ConfigName: pulumi.String("string"),
    	Flushers: pulumi.StringMapArray{
    		pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	Inputs: pulumi.StringMapArray{
    		pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	Project: pulumi.String("string"),
    	Aggregators: pulumi.StringMapArray{
    		pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	Globals: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	LogSample: pulumi.String("string"),
    	Processors: pulumi.StringMapArray{
    		pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	Task: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var logtailPipelineConfigResource = new LogtailPipelineConfig("logtailPipelineConfigResource", LogtailPipelineConfigArgs.builder()
        .configName("string")
        .flushers(Map.of("string", "string"))
        .inputs(Map.of("string", "string"))
        .project("string")
        .aggregators(Map.of("string", "string"))
        .globals(Map.of("string", "string"))
        .logSample("string")
        .processors(Map.of("string", "string"))
        .task(Map.of("string", "string"))
        .build());
    
    logtail_pipeline_config_resource = alicloud.sls.LogtailPipelineConfig("logtailPipelineConfigResource",
        config_name="string",
        flushers=[{
            "string": "string",
        }],
        inputs=[{
            "string": "string",
        }],
        project="string",
        aggregators=[{
            "string": "string",
        }],
        globals={
            "string": "string",
        },
        log_sample="string",
        processors=[{
            "string": "string",
        }],
        task={
            "string": "string",
        })
    
    const logtailPipelineConfigResource = new alicloud.sls.LogtailPipelineConfig("logtailPipelineConfigResource", {
        configName: "string",
        flushers: [{
            string: "string",
        }],
        inputs: [{
            string: "string",
        }],
        project: "string",
        aggregators: [{
            string: "string",
        }],
        globals: {
            string: "string",
        },
        logSample: "string",
        processors: [{
            string: "string",
        }],
        task: {
            string: "string",
        },
    });
    
    type: alicloud:sls:LogtailPipelineConfig
    properties:
        aggregators:
            - string: string
        configName: string
        flushers:
            - string: string
        globals:
            string: string
        inputs:
            - string: string
        logSample: string
        processors:
            - string: string
        project: string
        task:
            string: string
    

    LogtailPipelineConfig 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 LogtailPipelineConfig resource accepts the following input properties:

    ConfigName string
    The name of the resource
    Flushers List<ImmutableDictionary<string, string>>
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    Inputs List<ImmutableDictionary<string, string>>
    The creation time of the resource See inputs below.
    Project string
    The first ID of the resource
    Aggregators List<ImmutableDictionary<string, string>>
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    Globals Dictionary<string, string>
    This property does not have a description in the spec, please add it before generating code.
    LogSample string
    This property does not have a description in the spec, please add it before generating code.
    Processors List<ImmutableDictionary<string, string>>
    This property does not have a description in the spec, please add it before generating code. See processors below.
    Task Dictionary<string, string>
    This property does not have a description in the spec, please add it before generating code.
    ConfigName string
    The name of the resource
    Flushers []map[string]string
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    Inputs []map[string]string
    The creation time of the resource See inputs below.
    Project string
    The first ID of the resource
    Aggregators []map[string]string
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    Globals map[string]string
    This property does not have a description in the spec, please add it before generating code.
    LogSample string
    This property does not have a description in the spec, please add it before generating code.
    Processors []map[string]string
    This property does not have a description in the spec, please add it before generating code. See processors below.
    Task map[string]string
    This property does not have a description in the spec, please add it before generating code.
    configName String
    The name of the resource
    flushers List<Map<String,String>>
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    inputs List<Map<String,String>>
    The creation time of the resource See inputs below.
    project String
    The first ID of the resource
    aggregators List<Map<String,String>>
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    globals Map<String,String>
    This property does not have a description in the spec, please add it before generating code.
    logSample String
    This property does not have a description in the spec, please add it before generating code.
    processors List<Map<String,String>>
    This property does not have a description in the spec, please add it before generating code. See processors below.
    task Map<String,String>
    This property does not have a description in the spec, please add it before generating code.
    configName string
    The name of the resource
    flushers {[key: string]: string}[]
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    inputs {[key: string]: string}[]
    The creation time of the resource See inputs below.
    project string
    The first ID of the resource
    aggregators {[key: string]: string}[]
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    globals {[key: string]: string}
    This property does not have a description in the spec, please add it before generating code.
    logSample string
    This property does not have a description in the spec, please add it before generating code.
    processors {[key: string]: string}[]
    This property does not have a description in the spec, please add it before generating code. See processors below.
    task {[key: string]: string}
    This property does not have a description in the spec, please add it before generating code.
    config_name str
    The name of the resource
    flushers Sequence[Mapping[str, str]]
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    inputs Sequence[Mapping[str, str]]
    The creation time of the resource See inputs below.
    project str
    The first ID of the resource
    aggregators Sequence[Mapping[str, str]]
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    globals Mapping[str, str]
    This property does not have a description in the spec, please add it before generating code.
    log_sample str
    This property does not have a description in the spec, please add it before generating code.
    processors Sequence[Mapping[str, str]]
    This property does not have a description in the spec, please add it before generating code. See processors below.
    task Mapping[str, str]
    This property does not have a description in the spec, please add it before generating code.
    configName String
    The name of the resource
    flushers List<Map<String>>
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    inputs List<Map<String>>
    The creation time of the resource See inputs below.
    project String
    The first ID of the resource
    aggregators List<Map<String>>
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    globals Map<String>
    This property does not have a description in the spec, please add it before generating code.
    logSample String
    This property does not have a description in the spec, please add it before generating code.
    processors List<Map<String>>
    This property does not have a description in the spec, please add it before generating code. See processors below.
    task Map<String>
    This property does not have a description in the spec, please add it before generating code.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LogtailPipelineConfig 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 LogtailPipelineConfig Resource

    Get an existing LogtailPipelineConfig 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?: LogtailPipelineConfigState, opts?: CustomResourceOptions): LogtailPipelineConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aggregators: Optional[Sequence[Mapping[str, str]]] = None,
            config_name: Optional[str] = None,
            flushers: Optional[Sequence[Mapping[str, str]]] = None,
            globals: Optional[Mapping[str, str]] = None,
            inputs: Optional[Sequence[Mapping[str, str]]] = None,
            log_sample: Optional[str] = None,
            processors: Optional[Sequence[Mapping[str, str]]] = None,
            project: Optional[str] = None,
            task: Optional[Mapping[str, str]] = None) -> LogtailPipelineConfig
    func GetLogtailPipelineConfig(ctx *Context, name string, id IDInput, state *LogtailPipelineConfigState, opts ...ResourceOption) (*LogtailPipelineConfig, error)
    public static LogtailPipelineConfig Get(string name, Input<string> id, LogtailPipelineConfigState? state, CustomResourceOptions? opts = null)
    public static LogtailPipelineConfig get(String name, Output<String> id, LogtailPipelineConfigState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:sls:LogtailPipelineConfig    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.
    The following state arguments are supported:
    Aggregators List<ImmutableDictionary<string, string>>
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    ConfigName string
    The name of the resource
    Flushers List<ImmutableDictionary<string, string>>
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    Globals Dictionary<string, string>
    This property does not have a description in the spec, please add it before generating code.
    Inputs List<ImmutableDictionary<string, string>>
    The creation time of the resource See inputs below.
    LogSample string
    This property does not have a description in the spec, please add it before generating code.
    Processors List<ImmutableDictionary<string, string>>
    This property does not have a description in the spec, please add it before generating code. See processors below.
    Project string
    The first ID of the resource
    Task Dictionary<string, string>
    This property does not have a description in the spec, please add it before generating code.
    Aggregators []map[string]string
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    ConfigName string
    The name of the resource
    Flushers []map[string]string
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    Globals map[string]string
    This property does not have a description in the spec, please add it before generating code.
    Inputs []map[string]string
    The creation time of the resource See inputs below.
    LogSample string
    This property does not have a description in the spec, please add it before generating code.
    Processors []map[string]string
    This property does not have a description in the spec, please add it before generating code. See processors below.
    Project string
    The first ID of the resource
    Task map[string]string
    This property does not have a description in the spec, please add it before generating code.
    aggregators List<Map<String,String>>
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    configName String
    The name of the resource
    flushers List<Map<String,String>>
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    globals Map<String,String>
    This property does not have a description in the spec, please add it before generating code.
    inputs List<Map<String,String>>
    The creation time of the resource See inputs below.
    logSample String
    This property does not have a description in the spec, please add it before generating code.
    processors List<Map<String,String>>
    This property does not have a description in the spec, please add it before generating code. See processors below.
    project String
    The first ID of the resource
    task Map<String,String>
    This property does not have a description in the spec, please add it before generating code.
    aggregators {[key: string]: string}[]
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    configName string
    The name of the resource
    flushers {[key: string]: string}[]
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    globals {[key: string]: string}
    This property does not have a description in the spec, please add it before generating code.
    inputs {[key: string]: string}[]
    The creation time of the resource See inputs below.
    logSample string
    This property does not have a description in the spec, please add it before generating code.
    processors {[key: string]: string}[]
    This property does not have a description in the spec, please add it before generating code. See processors below.
    project string
    The first ID of the resource
    task {[key: string]: string}
    This property does not have a description in the spec, please add it before generating code.
    aggregators Sequence[Mapping[str, str]]
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    config_name str
    The name of the resource
    flushers Sequence[Mapping[str, str]]
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    globals Mapping[str, str]
    This property does not have a description in the spec, please add it before generating code.
    inputs Sequence[Mapping[str, str]]
    The creation time of the resource See inputs below.
    log_sample str
    This property does not have a description in the spec, please add it before generating code.
    processors Sequence[Mapping[str, str]]
    This property does not have a description in the spec, please add it before generating code. See processors below.
    project str
    The first ID of the resource
    task Mapping[str, str]
    This property does not have a description in the spec, please add it before generating code.
    aggregators List<Map<String>>
    This property does not have a description in the spec, please add it before generating code. See aggregators below.
    configName String
    The name of the resource
    flushers List<Map<String>>
    This property does not have a description in the spec, please add it before generating code. See flushers below.
    globals Map<String>
    This property does not have a description in the spec, please add it before generating code.
    inputs List<Map<String>>
    The creation time of the resource See inputs below.
    logSample String
    This property does not have a description in the spec, please add it before generating code.
    processors List<Map<String>>
    This property does not have a description in the spec, please add it before generating code. See processors below.
    project String
    The first ID of the resource
    task Map<String>
    This property does not have a description in the spec, please add it before generating code.

    Import

    Log Service (SLS) Logtail Pipeline Config can be imported using the id, e.g.

    $ pulumi import alicloud:sls/logtailPipelineConfig:LogtailPipelineConfig example <project>:<config_name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
     logo
    Viewing docs for Alibaba Cloud v3.97.0
    published on Saturday, Mar 14, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.