1. Packages
  2. Sumo Logic
  3. API Docs
  4. PollingSource
Sumo Logic v0.23.4 published on Friday, Sep 20, 2024 by Pulumi

sumologic.PollingSource

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.23.4 published on Friday, Sep 20, 2024 by Pulumi

    !> WARNING: This data source is deprecated and will be removed in the next major version.

    Provides a Sumologic Polling source. This source is used to import data from various AWS products, eg. AWS S3 buckets, Cloudwatch Metrics etc.

    IMPORTANT: The AWS credentials are stored in plain-text in the state. This is a potential security issue.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const tagfilters = [
        {
            type: "TagFilters",
            namespace: "All",
            tags: ["k3=v3"],
        },
        {
            type: "TagFilters",
            namespace: "AWS/Route53",
            tags: ["k1=v1"],
        },
        {
            type: "TagFilters",
            namespace: "AWS/S3",
            tags: ["k2=v2"],
        },
    ];
    const collector = new sumologic.Collector("collector", {
        name: "my-collector",
        description: "Just testing this",
    });
    const s3Audit = new sumologic.PollingSource("s3_audit", {
        name: "Amazon S3 Audit",
        description: "My description",
        category: "aws/s3audit",
        contentType: "AwsS3AuditBucket",
        scanInterval: 300000,
        paused: false,
        collectorId: collector.id,
        filters: [{
            name: "Exclude Comments",
            filterType: "Exclude",
            regexp: "#.*",
        }],
        authentication: {
            type: "S3BucketAuthentication",
            accessKey: "someKey",
            secretKey: "******",
        },
        path: {
            type: "S3BucketPathExpression",
            bucketName: "Bucket1",
            pathExpression: "*",
        },
    });
    const cwMetrics = new sumologic.PollingSource("cw_metrics", {
        name: "CloudWatch Metrics",
        description: "My description",
        category: "aws/cw",
        contentType: "AwsCloudWatch",
        scanInterval: 300000,
        paused: false,
        collectorId: collector.id,
        authentication: {
            type: "AWSRoleBasedAuthentication",
            roleArn: "arn:aws:iam::604066827510:role/cw-role-SumoRole-4AOLS73TGKYI",
        },
        path: {
            tagFilters: tagfilters.map((v, k) => ({key: k, value: v})).map(entry => ({
                type: entry.value.type,
                namespace: entry.value.namespace,
                tags: entry.value.tags,
            })),
            type: "CloudWatchPath",
            limitToRegions: ["us-west-2"],
            limitToNamespaces: [
                "AWS/Route53",
                "AWS/S3",
                "customNamespace",
            ],
        },
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    tagfilters = [
        {
            "type": "TagFilters",
            "namespace": "All",
            "tags": ["k3=v3"],
        },
        {
            "type": "TagFilters",
            "namespace": "AWS/Route53",
            "tags": ["k1=v1"],
        },
        {
            "type": "TagFilters",
            "namespace": "AWS/S3",
            "tags": ["k2=v2"],
        },
    ]
    collector = sumologic.Collector("collector",
        name="my-collector",
        description="Just testing this")
    s3_audit = sumologic.PollingSource("s3_audit",
        name="Amazon S3 Audit",
        description="My description",
        category="aws/s3audit",
        content_type="AwsS3AuditBucket",
        scan_interval=300000,
        paused=False,
        collector_id=collector.id,
        filters=[{
            "name": "Exclude Comments",
            "filter_type": "Exclude",
            "regexp": "#.*",
        }],
        authentication={
            "type": "S3BucketAuthentication",
            "access_key": "someKey",
            "secret_key": "******",
        },
        path={
            "type": "S3BucketPathExpression",
            "bucket_name": "Bucket1",
            "path_expression": "*",
        })
    cw_metrics = sumologic.PollingSource("cw_metrics",
        name="CloudWatch Metrics",
        description="My description",
        category="aws/cw",
        content_type="AwsCloudWatch",
        scan_interval=300000,
        paused=False,
        collector_id=collector.id,
        authentication={
            "type": "AWSRoleBasedAuthentication",
            "role_arn": "arn:aws:iam::604066827510:role/cw-role-SumoRole-4AOLS73TGKYI",
        },
        path={
            "tag_filters": [{
                "type": entry["value"]["type"],
                "namespace": entry["value"]["namespace"],
                "tags": entry["value"]["tags"],
            } for entry in [{"key": k, "value": v} for k, v in tagfilters]],
            "type": "CloudWatchPath",
            "limit_to_regions": ["us-west-2"],
            "limit_to_namespaces": [
                "AWS/Route53",
                "AWS/S3",
                "customNamespace",
            ],
        })
    
    Coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var tagfilters = new[]
        {
            
            {
                { "type", "TagFilters" },
                { "namespace", "All" },
                { "tags", new[]
                {
                    "k3=v3",
                } },
            },
            
            {
                { "type", "TagFilters" },
                { "namespace", "AWS/Route53" },
                { "tags", new[]
                {
                    "k1=v1",
                } },
            },
            
            {
                { "type", "TagFilters" },
                { "namespace", "AWS/S3" },
                { "tags", new[]
                {
                    "k2=v2",
                } },
            },
        };
    
        var collector = new SumoLogic.Collector("collector", new()
        {
            Name = "my-collector",
            Description = "Just testing this",
        });
    
        var s3Audit = new SumoLogic.PollingSource("s3_audit", new()
        {
            Name = "Amazon S3 Audit",
            Description = "My description",
            Category = "aws/s3audit",
            ContentType = "AwsS3AuditBucket",
            ScanInterval = 300000,
            Paused = false,
            CollectorId = collector.Id,
            Filters = new[]
            {
                new SumoLogic.Inputs.PollingSourceFilterArgs
                {
                    Name = "Exclude Comments",
                    FilterType = "Exclude",
                    Regexp = "#.*",
                },
            },
            Authentication = new SumoLogic.Inputs.PollingSourceAuthenticationArgs
            {
                Type = "S3BucketAuthentication",
                AccessKey = "someKey",
                SecretKey = "******",
            },
            Path = new SumoLogic.Inputs.PollingSourcePathArgs
            {
                Type = "S3BucketPathExpression",
                BucketName = "Bucket1",
                PathExpression = "*",
            },
        });
    
        var cwMetrics = new SumoLogic.PollingSource("cw_metrics", new()
        {
            Name = "CloudWatch Metrics",
            Description = "My description",
            Category = "aws/cw",
            ContentType = "AwsCloudWatch",
            ScanInterval = 300000,
            Paused = false,
            CollectorId = collector.Id,
            Authentication = new SumoLogic.Inputs.PollingSourceAuthenticationArgs
            {
                Type = "AWSRoleBasedAuthentication",
                RoleArn = "arn:aws:iam::604066827510:role/cw-role-SumoRole-4AOLS73TGKYI",
            },
            Path = new SumoLogic.Inputs.PollingSourcePathArgs
            {
                TagFilters = tagfilters.Select((v, k) => new { Key = k, Value = v }).Select(entry => 
                {
                    return new SumoLogic.Inputs.PollingSourcePathTagFilterArgs
                    {
                        Type = entry.Value.Type,
                        Namespace = entry.Value.Namespace,
                        Tags = entry.Value.Tags,
                    };
                }).ToList(),
                Type = "CloudWatchPath",
                LimitToRegions = new[]
                {
                    "us-west-2",
                },
                LimitToNamespaces = new[]
                {
                    "AWS/Route53",
                    "AWS/S3",
                    "customNamespace",
                },
            },
        });
    
    });
    
    Coming soon!
    
    Coming soon!
    

    Create PollingSource Resource

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

    Constructor syntax

    new PollingSource(name: string, args: PollingSourceArgs, opts?: CustomResourceOptions);
    @overload
    def PollingSource(resource_name: str,
                      args: PollingSourceArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def PollingSource(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      authentication: Optional[PollingSourceAuthenticationArgs] = None,
                      scan_interval: Optional[int] = None,
                      paused: Optional[bool] = None,
                      collector_id: Optional[int] = None,
                      content_type: Optional[str] = None,
                      path: Optional[PollingSourcePathArgs] = None,
                      filters: Optional[Sequence[PollingSourceFilterArgs]] = None,
                      manual_prefix_regexp: Optional[str] = None,
                      description: Optional[str] = None,
                      fields: Optional[Mapping[str, str]] = None,
                      cutoff_timestamp: Optional[int] = None,
                      force_timezone: Optional[bool] = None,
                      host_name: Optional[str] = None,
                      default_date_formats: Optional[Sequence[PollingSourceDefaultDateFormatArgs]] = None,
                      multiline_processing_enabled: Optional[bool] = None,
                      name: Optional[str] = None,
                      cutoff_relative_time: Optional[str] = None,
                      category: Optional[str] = None,
                      automatic_date_parsing: Optional[bool] = None,
                      timezone: Optional[str] = None,
                      use_autoline_matching: Optional[bool] = None)
    func NewPollingSource(ctx *Context, name string, args PollingSourceArgs, opts ...ResourceOption) (*PollingSource, error)
    public PollingSource(string name, PollingSourceArgs args, CustomResourceOptions? opts = null)
    public PollingSource(String name, PollingSourceArgs args)
    public PollingSource(String name, PollingSourceArgs args, CustomResourceOptions options)
    
    type: sumologic:PollingSource
    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 PollingSourceArgs
    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 PollingSourceArgs
    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 PollingSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PollingSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PollingSourceArgs
    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 pollingSourceResource = new SumoLogic.PollingSource("pollingSourceResource", new()
    {
        Authentication = new SumoLogic.Inputs.PollingSourceAuthenticationArgs
        {
            Type = "string",
            AccessKey = "string",
            RoleArn = "string",
            SecretKey = "string",
        },
        ScanInterval = 0,
        Paused = false,
        CollectorId = 0,
        ContentType = "string",
        Path = new SumoLogic.Inputs.PollingSourcePathArgs
        {
            Type = "string",
            BucketName = "string",
            LimitToNamespaces = new[]
            {
                "string",
            },
            LimitToRegions = new[]
            {
                "string",
            },
            PathExpression = "string",
            TagFilters = new[]
            {
                new SumoLogic.Inputs.PollingSourcePathTagFilterArgs
                {
                    Namespace = "string",
                    Tags = new[]
                    {
                        "string",
                    },
                    Type = "string",
                },
            },
        },
        Filters = new[]
        {
            new SumoLogic.Inputs.PollingSourceFilterArgs
            {
                FilterType = "string",
                Name = "string",
                Regexp = "string",
                Mask = "string",
            },
        },
        ManualPrefixRegexp = "string",
        Description = "string",
        Fields = 
        {
            { "string", "string" },
        },
        CutoffTimestamp = 0,
        ForceTimezone = false,
        HostName = "string",
        DefaultDateFormats = new[]
        {
            new SumoLogic.Inputs.PollingSourceDefaultDateFormatArgs
            {
                Format = "string",
                Locator = "string",
            },
        },
        MultilineProcessingEnabled = false,
        Name = "string",
        CutoffRelativeTime = "string",
        Category = "string",
        AutomaticDateParsing = false,
        Timezone = "string",
        UseAutolineMatching = false,
    });
    
    example, err := sumologic.NewPollingSource(ctx, "pollingSourceResource", &sumologic.PollingSourceArgs{
    	Authentication: &sumologic.PollingSourceAuthenticationArgs{
    		Type:      pulumi.String("string"),
    		AccessKey: pulumi.String("string"),
    		RoleArn:   pulumi.String("string"),
    		SecretKey: pulumi.String("string"),
    	},
    	ScanInterval: pulumi.Int(0),
    	Paused:       pulumi.Bool(false),
    	CollectorId:  pulumi.Int(0),
    	ContentType:  pulumi.String("string"),
    	Path: &sumologic.PollingSourcePathArgs{
    		Type:       pulumi.String("string"),
    		BucketName: pulumi.String("string"),
    		LimitToNamespaces: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		LimitToRegions: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PathExpression: pulumi.String("string"),
    		TagFilters: sumologic.PollingSourcePathTagFilterArray{
    			&sumologic.PollingSourcePathTagFilterArgs{
    				Namespace: pulumi.String("string"),
    				Tags: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Type: pulumi.String("string"),
    			},
    		},
    	},
    	Filters: sumologic.PollingSourceFilterArray{
    		&sumologic.PollingSourceFilterArgs{
    			FilterType: pulumi.String("string"),
    			Name:       pulumi.String("string"),
    			Regexp:     pulumi.String("string"),
    			Mask:       pulumi.String("string"),
    		},
    	},
    	ManualPrefixRegexp: pulumi.String("string"),
    	Description:        pulumi.String("string"),
    	Fields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	CutoffTimestamp: pulumi.Int(0),
    	ForceTimezone:   pulumi.Bool(false),
    	HostName:        pulumi.String("string"),
    	DefaultDateFormats: sumologic.PollingSourceDefaultDateFormatArray{
    		&sumologic.PollingSourceDefaultDateFormatArgs{
    			Format:  pulumi.String("string"),
    			Locator: pulumi.String("string"),
    		},
    	},
    	MultilineProcessingEnabled: pulumi.Bool(false),
    	Name:                       pulumi.String("string"),
    	CutoffRelativeTime:         pulumi.String("string"),
    	Category:                   pulumi.String("string"),
    	AutomaticDateParsing:       pulumi.Bool(false),
    	Timezone:                   pulumi.String("string"),
    	UseAutolineMatching:        pulumi.Bool(false),
    })
    
    var pollingSourceResource = new PollingSource("pollingSourceResource", PollingSourceArgs.builder()
        .authentication(PollingSourceAuthenticationArgs.builder()
            .type("string")
            .accessKey("string")
            .roleArn("string")
            .secretKey("string")
            .build())
        .scanInterval(0)
        .paused(false)
        .collectorId(0)
        .contentType("string")
        .path(PollingSourcePathArgs.builder()
            .type("string")
            .bucketName("string")
            .limitToNamespaces("string")
            .limitToRegions("string")
            .pathExpression("string")
            .tagFilters(PollingSourcePathTagFilterArgs.builder()
                .namespace("string")
                .tags("string")
                .type("string")
                .build())
            .build())
        .filters(PollingSourceFilterArgs.builder()
            .filterType("string")
            .name("string")
            .regexp("string")
            .mask("string")
            .build())
        .manualPrefixRegexp("string")
        .description("string")
        .fields(Map.of("string", "string"))
        .cutoffTimestamp(0)
        .forceTimezone(false)
        .hostName("string")
        .defaultDateFormats(PollingSourceDefaultDateFormatArgs.builder()
            .format("string")
            .locator("string")
            .build())
        .multilineProcessingEnabled(false)
        .name("string")
        .cutoffRelativeTime("string")
        .category("string")
        .automaticDateParsing(false)
        .timezone("string")
        .useAutolineMatching(false)
        .build());
    
    polling_source_resource = sumologic.PollingSource("pollingSourceResource",
        authentication=sumologic.PollingSourceAuthenticationArgs(
            type="string",
            access_key="string",
            role_arn="string",
            secret_key="string",
        ),
        scan_interval=0,
        paused=False,
        collector_id=0,
        content_type="string",
        path=sumologic.PollingSourcePathArgs(
            type="string",
            bucket_name="string",
            limit_to_namespaces=["string"],
            limit_to_regions=["string"],
            path_expression="string",
            tag_filters=[sumologic.PollingSourcePathTagFilterArgs(
                namespace="string",
                tags=["string"],
                type="string",
            )],
        ),
        filters=[sumologic.PollingSourceFilterArgs(
            filter_type="string",
            name="string",
            regexp="string",
            mask="string",
        )],
        manual_prefix_regexp="string",
        description="string",
        fields={
            "string": "string",
        },
        cutoff_timestamp=0,
        force_timezone=False,
        host_name="string",
        default_date_formats=[sumologic.PollingSourceDefaultDateFormatArgs(
            format="string",
            locator="string",
        )],
        multiline_processing_enabled=False,
        name="string",
        cutoff_relative_time="string",
        category="string",
        automatic_date_parsing=False,
        timezone="string",
        use_autoline_matching=False)
    
    const pollingSourceResource = new sumologic.PollingSource("pollingSourceResource", {
        authentication: {
            type: "string",
            accessKey: "string",
            roleArn: "string",
            secretKey: "string",
        },
        scanInterval: 0,
        paused: false,
        collectorId: 0,
        contentType: "string",
        path: {
            type: "string",
            bucketName: "string",
            limitToNamespaces: ["string"],
            limitToRegions: ["string"],
            pathExpression: "string",
            tagFilters: [{
                namespace: "string",
                tags: ["string"],
                type: "string",
            }],
        },
        filters: [{
            filterType: "string",
            name: "string",
            regexp: "string",
            mask: "string",
        }],
        manualPrefixRegexp: "string",
        description: "string",
        fields: {
            string: "string",
        },
        cutoffTimestamp: 0,
        forceTimezone: false,
        hostName: "string",
        defaultDateFormats: [{
            format: "string",
            locator: "string",
        }],
        multilineProcessingEnabled: false,
        name: "string",
        cutoffRelativeTime: "string",
        category: "string",
        automaticDateParsing: false,
        timezone: "string",
        useAutolineMatching: false,
    });
    
    type: sumologic:PollingSource
    properties:
        authentication:
            accessKey: string
            roleArn: string
            secretKey: string
            type: string
        automaticDateParsing: false
        category: string
        collectorId: 0
        contentType: string
        cutoffRelativeTime: string
        cutoffTimestamp: 0
        defaultDateFormats:
            - format: string
              locator: string
        description: string
        fields:
            string: string
        filters:
            - filterType: string
              mask: string
              name: string
              regexp: string
        forceTimezone: false
        hostName: string
        manualPrefixRegexp: string
        multilineProcessingEnabled: false
        name: string
        path:
            bucketName: string
            limitToNamespaces:
                - string
            limitToRegions:
                - string
            pathExpression: string
            tagFilters:
                - namespace: string
                  tags:
                    - string
                  type: string
            type: string
        paused: false
        scanInterval: 0
        timezone: string
        useAutolineMatching: false
    

    PollingSource Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The PollingSource resource accepts the following input properties:

    Authentication Pulumi.SumoLogic.Inputs.PollingSourceAuthentication
    Authentication details for connecting to the S3 bucket.
    CollectorId int
    ContentType string
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    Path Pulumi.SumoLogic.Inputs.PollingSourcePath
    The location to scan for new data.
    Paused bool
    When set to true, the scanner is paused. To disable, set to false.
    ScanInterval int
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    AutomaticDateParsing bool
    Category string
    CutoffRelativeTime string
    CutoffTimestamp int
    DefaultDateFormats List<Pulumi.SumoLogic.Inputs.PollingSourceDefaultDateFormat>
    Description string
    Fields Dictionary<string, string>
    Filters List<Pulumi.SumoLogic.Inputs.PollingSourceFilter>
    ForceTimezone bool
    HostName string
    ManualPrefixRegexp string
    MultilineProcessingEnabled bool
    Name string
    Timezone string
    UseAutolineMatching bool
    Authentication PollingSourceAuthenticationArgs
    Authentication details for connecting to the S3 bucket.
    CollectorId int
    ContentType string
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    Path PollingSourcePathArgs
    The location to scan for new data.
    Paused bool
    When set to true, the scanner is paused. To disable, set to false.
    ScanInterval int
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    AutomaticDateParsing bool
    Category string
    CutoffRelativeTime string
    CutoffTimestamp int
    DefaultDateFormats []PollingSourceDefaultDateFormatArgs
    Description string
    Fields map[string]string
    Filters []PollingSourceFilterArgs
    ForceTimezone bool
    HostName string
    ManualPrefixRegexp string
    MultilineProcessingEnabled bool
    Name string
    Timezone string
    UseAutolineMatching bool
    authentication PollingSourceAuthentication
    Authentication details for connecting to the S3 bucket.
    collectorId Integer
    contentType String
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    path PollingSourcePath
    The location to scan for new data.
    paused Boolean
    When set to true, the scanner is paused. To disable, set to false.
    scanInterval Integer
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    automaticDateParsing Boolean
    category String
    cutoffRelativeTime String
    cutoffTimestamp Integer
    defaultDateFormats List<PollingSourceDefaultDateFormat>
    description String
    fields Map<String,String>
    filters List<PollingSourceFilter>
    forceTimezone Boolean
    hostName String
    manualPrefixRegexp String
    multilineProcessingEnabled Boolean
    name String
    timezone String
    useAutolineMatching Boolean
    authentication PollingSourceAuthentication
    Authentication details for connecting to the S3 bucket.
    collectorId number
    contentType string
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    path PollingSourcePath
    The location to scan for new data.
    paused boolean
    When set to true, the scanner is paused. To disable, set to false.
    scanInterval number
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    automaticDateParsing boolean
    category string
    cutoffRelativeTime string
    cutoffTimestamp number
    defaultDateFormats PollingSourceDefaultDateFormat[]
    description string
    fields {[key: string]: string}
    filters PollingSourceFilter[]
    forceTimezone boolean
    hostName string
    manualPrefixRegexp string
    multilineProcessingEnabled boolean
    name string
    timezone string
    useAutolineMatching boolean
    authentication PollingSourceAuthenticationArgs
    Authentication details for connecting to the S3 bucket.
    collector_id int
    content_type str
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    path PollingSourcePathArgs
    The location to scan for new data.
    paused bool
    When set to true, the scanner is paused. To disable, set to false.
    scan_interval int
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    automatic_date_parsing bool
    category str
    cutoff_relative_time str
    cutoff_timestamp int
    default_date_formats Sequence[PollingSourceDefaultDateFormatArgs]
    description str
    fields Mapping[str, str]
    filters Sequence[PollingSourceFilterArgs]
    force_timezone bool
    host_name str
    manual_prefix_regexp str
    multiline_processing_enabled bool
    name str
    timezone str
    use_autoline_matching bool
    authentication Property Map
    Authentication details for connecting to the S3 bucket.
    collectorId Number
    contentType String
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    path Property Map
    The location to scan for new data.
    paused Boolean
    When set to true, the scanner is paused. To disable, set to false.
    scanInterval Number
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    automaticDateParsing Boolean
    category String
    cutoffRelativeTime String
    cutoffTimestamp Number
    defaultDateFormats List<Property Map>
    description String
    fields Map<String>
    filters List<Property Map>
    forceTimezone Boolean
    hostName String
    manualPrefixRegexp String
    multilineProcessingEnabled Boolean
    name String
    timezone String
    useAutolineMatching Boolean

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PollingSource resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Url string
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    Id string
    The provider-assigned unique ID for this managed resource.
    Url string
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    id String
    The provider-assigned unique ID for this managed resource.
    url String
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    id string
    The provider-assigned unique ID for this managed resource.
    url string
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    id str
    The provider-assigned unique ID for this managed resource.
    url str
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    id String
    The provider-assigned unique ID for this managed resource.
    url String
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.

    Look up Existing PollingSource Resource

    Get an existing PollingSource 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?: PollingSourceState, opts?: CustomResourceOptions): PollingSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authentication: Optional[PollingSourceAuthenticationArgs] = None,
            automatic_date_parsing: Optional[bool] = None,
            category: Optional[str] = None,
            collector_id: Optional[int] = None,
            content_type: Optional[str] = None,
            cutoff_relative_time: Optional[str] = None,
            cutoff_timestamp: Optional[int] = None,
            default_date_formats: Optional[Sequence[PollingSourceDefaultDateFormatArgs]] = None,
            description: Optional[str] = None,
            fields: Optional[Mapping[str, str]] = None,
            filters: Optional[Sequence[PollingSourceFilterArgs]] = None,
            force_timezone: Optional[bool] = None,
            host_name: Optional[str] = None,
            manual_prefix_regexp: Optional[str] = None,
            multiline_processing_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            path: Optional[PollingSourcePathArgs] = None,
            paused: Optional[bool] = None,
            scan_interval: Optional[int] = None,
            timezone: Optional[str] = None,
            url: Optional[str] = None,
            use_autoline_matching: Optional[bool] = None) -> PollingSource
    func GetPollingSource(ctx *Context, name string, id IDInput, state *PollingSourceState, opts ...ResourceOption) (*PollingSource, error)
    public static PollingSource Get(string name, Input<string> id, PollingSourceState? state, CustomResourceOptions? opts = null)
    public static PollingSource get(String name, Output<String> id, PollingSourceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Authentication Pulumi.SumoLogic.Inputs.PollingSourceAuthentication
    Authentication details for connecting to the S3 bucket.
    AutomaticDateParsing bool
    Category string
    CollectorId int
    ContentType string
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    CutoffRelativeTime string
    CutoffTimestamp int
    DefaultDateFormats List<Pulumi.SumoLogic.Inputs.PollingSourceDefaultDateFormat>
    Description string
    Fields Dictionary<string, string>
    Filters List<Pulumi.SumoLogic.Inputs.PollingSourceFilter>
    ForceTimezone bool
    HostName string
    ManualPrefixRegexp string
    MultilineProcessingEnabled bool
    Name string
    Path Pulumi.SumoLogic.Inputs.PollingSourcePath
    The location to scan for new data.
    Paused bool
    When set to true, the scanner is paused. To disable, set to false.
    ScanInterval int
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    Timezone string
    Url string
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    UseAutolineMatching bool
    Authentication PollingSourceAuthenticationArgs
    Authentication details for connecting to the S3 bucket.
    AutomaticDateParsing bool
    Category string
    CollectorId int
    ContentType string
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    CutoffRelativeTime string
    CutoffTimestamp int
    DefaultDateFormats []PollingSourceDefaultDateFormatArgs
    Description string
    Fields map[string]string
    Filters []PollingSourceFilterArgs
    ForceTimezone bool
    HostName string
    ManualPrefixRegexp string
    MultilineProcessingEnabled bool
    Name string
    Path PollingSourcePathArgs
    The location to scan for new data.
    Paused bool
    When set to true, the scanner is paused. To disable, set to false.
    ScanInterval int
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    Timezone string
    Url string
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    UseAutolineMatching bool
    authentication PollingSourceAuthentication
    Authentication details for connecting to the S3 bucket.
    automaticDateParsing Boolean
    category String
    collectorId Integer
    contentType String
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    cutoffRelativeTime String
    cutoffTimestamp Integer
    defaultDateFormats List<PollingSourceDefaultDateFormat>
    description String
    fields Map<String,String>
    filters List<PollingSourceFilter>
    forceTimezone Boolean
    hostName String
    manualPrefixRegexp String
    multilineProcessingEnabled Boolean
    name String
    path PollingSourcePath
    The location to scan for new data.
    paused Boolean
    When set to true, the scanner is paused. To disable, set to false.
    scanInterval Integer
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    timezone String
    url String
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    useAutolineMatching Boolean
    authentication PollingSourceAuthentication
    Authentication details for connecting to the S3 bucket.
    automaticDateParsing boolean
    category string
    collectorId number
    contentType string
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    cutoffRelativeTime string
    cutoffTimestamp number
    defaultDateFormats PollingSourceDefaultDateFormat[]
    description string
    fields {[key: string]: string}
    filters PollingSourceFilter[]
    forceTimezone boolean
    hostName string
    manualPrefixRegexp string
    multilineProcessingEnabled boolean
    name string
    path PollingSourcePath
    The location to scan for new data.
    paused boolean
    When set to true, the scanner is paused. To disable, set to false.
    scanInterval number
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    timezone string
    url string
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    useAutolineMatching boolean
    authentication PollingSourceAuthenticationArgs
    Authentication details for connecting to the S3 bucket.
    automatic_date_parsing bool
    category str
    collector_id int
    content_type str
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    cutoff_relative_time str
    cutoff_timestamp int
    default_date_formats Sequence[PollingSourceDefaultDateFormatArgs]
    description str
    fields Mapping[str, str]
    filters Sequence[PollingSourceFilterArgs]
    force_timezone bool
    host_name str
    manual_prefix_regexp str
    multiline_processing_enabled bool
    name str
    path PollingSourcePathArgs
    The location to scan for new data.
    paused bool
    When set to true, the scanner is paused. To disable, set to false.
    scan_interval int
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    timezone str
    url str
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    use_autoline_matching bool
    authentication Property Map
    Authentication details for connecting to the S3 bucket.
    automaticDateParsing Boolean
    category String
    collectorId Number
    contentType String
    The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
    cutoffRelativeTime String
    cutoffTimestamp Number
    defaultDateFormats List<Property Map>
    description String
    fields Map<String>
    filters List<Property Map>
    forceTimezone Boolean
    hostName String
    manualPrefixRegexp String
    multilineProcessingEnabled Boolean
    name String
    path Property Map
    The location to scan for new data.
    paused Boolean
    When set to true, the scanner is paused. To disable, set to false.
    scanInterval Number
    Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
    timezone String
    url String
    The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
    useAutolineMatching Boolean

    Supporting Types

    PollingSourceAuthentication, PollingSourceAuthenticationArgs

    Type string
    Must be either S3BucketAuthentication or AWSRoleBasedAuthentication
    AccessKey string
    Your AWS access key if using type S3BucketAuthentication
    RoleArn string
    Your AWS role ARN if using type AWSRoleBasedAuthentication
    SecretKey string
    Your AWS secret key if using type S3BucketAuthentication
    Type string
    Must be either S3BucketAuthentication or AWSRoleBasedAuthentication
    AccessKey string
    Your AWS access key if using type S3BucketAuthentication
    RoleArn string
    Your AWS role ARN if using type AWSRoleBasedAuthentication
    SecretKey string
    Your AWS secret key if using type S3BucketAuthentication
    type String
    Must be either S3BucketAuthentication or AWSRoleBasedAuthentication
    accessKey String
    Your AWS access key if using type S3BucketAuthentication
    roleArn String
    Your AWS role ARN if using type AWSRoleBasedAuthentication
    secretKey String
    Your AWS secret key if using type S3BucketAuthentication
    type string
    Must be either S3BucketAuthentication or AWSRoleBasedAuthentication
    accessKey string
    Your AWS access key if using type S3BucketAuthentication
    roleArn string
    Your AWS role ARN if using type AWSRoleBasedAuthentication
    secretKey string
    Your AWS secret key if using type S3BucketAuthentication
    type str
    Must be either S3BucketAuthentication or AWSRoleBasedAuthentication
    access_key str
    Your AWS access key if using type S3BucketAuthentication
    role_arn str
    Your AWS role ARN if using type AWSRoleBasedAuthentication
    secret_key str
    Your AWS secret key if using type S3BucketAuthentication
    type String
    Must be either S3BucketAuthentication or AWSRoleBasedAuthentication
    accessKey String
    Your AWS access key if using type S3BucketAuthentication
    roleArn String
    Your AWS role ARN if using type AWSRoleBasedAuthentication
    secretKey String
    Your AWS secret key if using type S3BucketAuthentication

    PollingSourceDefaultDateFormat, PollingSourceDefaultDateFormatArgs

    Format string
    Locator string
    Format string
    Locator string
    format String
    locator String
    format string
    locator string
    format String
    locator String

    PollingSourceFilter, PollingSourceFilterArgs

    FilterType string
    Name string
    Regexp string
    Mask string
    FilterType string
    Name string
    Regexp string
    Mask string
    filterType String
    name String
    regexp String
    mask String
    filterType string
    name string
    regexp string
    mask string
    filterType String
    name String
    regexp String
    mask String

    PollingSourcePath, PollingSourcePathArgs

    Type string
    type of polling source. Can be one of S3BucketPathExpression or CloudWatchPath
    BucketName string
    The name of the bucket. This is needed if using type S3BucketPathExpression.
    LimitToNamespaces List<string>
    List of namespaces to limit metrics collection. By default all namespaces are selected. Details can be found here. You can also specify custom namespace. This is a valid parameter if using type CloudWatchPath.
    LimitToRegions List<string>
    List of Amazon regions to limit metricscollection. This is a valid parameter if using type CloudWatchPath.
    PathExpression string
    The path to the data. This is needed if using type S3BucketPathExpression.
    TagFilters List<Pulumi.SumoLogic.Inputs.PollingSourcePathTagFilter>
    Tag filters allow you to filter the CloudWatch metrics you collect by the AWS tags you have assigned to your AWS resources. You can define tag filters for each supported namespace. If you do not define any tag filters, all metrics will be collected for the regions and namespaces you configured for the source above. This is a valid parameter if using type CloudWatchPath More info on tag filters can be found here
    Type string
    type of polling source. Can be one of S3BucketPathExpression or CloudWatchPath
    BucketName string
    The name of the bucket. This is needed if using type S3BucketPathExpression.
    LimitToNamespaces []string
    List of namespaces to limit metrics collection. By default all namespaces are selected. Details can be found here. You can also specify custom namespace. This is a valid parameter if using type CloudWatchPath.
    LimitToRegions []string
    List of Amazon regions to limit metricscollection. This is a valid parameter if using type CloudWatchPath.
    PathExpression string
    The path to the data. This is needed if using type S3BucketPathExpression.
    TagFilters []PollingSourcePathTagFilter
    Tag filters allow you to filter the CloudWatch metrics you collect by the AWS tags you have assigned to your AWS resources. You can define tag filters for each supported namespace. If you do not define any tag filters, all metrics will be collected for the regions and namespaces you configured for the source above. This is a valid parameter if using type CloudWatchPath More info on tag filters can be found here
    type String
    type of polling source. Can be one of S3BucketPathExpression or CloudWatchPath
    bucketName String
    The name of the bucket. This is needed if using type S3BucketPathExpression.
    limitToNamespaces List<String>
    List of namespaces to limit metrics collection. By default all namespaces are selected. Details can be found here. You can also specify custom namespace. This is a valid parameter if using type CloudWatchPath.
    limitToRegions List<String>
    List of Amazon regions to limit metricscollection. This is a valid parameter if using type CloudWatchPath.
    pathExpression String
    The path to the data. This is needed if using type S3BucketPathExpression.
    tagFilters List<PollingSourcePathTagFilter>
    Tag filters allow you to filter the CloudWatch metrics you collect by the AWS tags you have assigned to your AWS resources. You can define tag filters for each supported namespace. If you do not define any tag filters, all metrics will be collected for the regions and namespaces you configured for the source above. This is a valid parameter if using type CloudWatchPath More info on tag filters can be found here
    type string
    type of polling source. Can be one of S3BucketPathExpression or CloudWatchPath
    bucketName string
    The name of the bucket. This is needed if using type S3BucketPathExpression.
    limitToNamespaces string[]
    List of namespaces to limit metrics collection. By default all namespaces are selected. Details can be found here. You can also specify custom namespace. This is a valid parameter if using type CloudWatchPath.
    limitToRegions string[]
    List of Amazon regions to limit metricscollection. This is a valid parameter if using type CloudWatchPath.
    pathExpression string
    The path to the data. This is needed if using type S3BucketPathExpression.
    tagFilters PollingSourcePathTagFilter[]
    Tag filters allow you to filter the CloudWatch metrics you collect by the AWS tags you have assigned to your AWS resources. You can define tag filters for each supported namespace. If you do not define any tag filters, all metrics will be collected for the regions and namespaces you configured for the source above. This is a valid parameter if using type CloudWatchPath More info on tag filters can be found here
    type str
    type of polling source. Can be one of S3BucketPathExpression or CloudWatchPath
    bucket_name str
    The name of the bucket. This is needed if using type S3BucketPathExpression.
    limit_to_namespaces Sequence[str]
    List of namespaces to limit metrics collection. By default all namespaces are selected. Details can be found here. You can also specify custom namespace. This is a valid parameter if using type CloudWatchPath.
    limit_to_regions Sequence[str]
    List of Amazon regions to limit metricscollection. This is a valid parameter if using type CloudWatchPath.
    path_expression str
    The path to the data. This is needed if using type S3BucketPathExpression.
    tag_filters Sequence[PollingSourcePathTagFilter]
    Tag filters allow you to filter the CloudWatch metrics you collect by the AWS tags you have assigned to your AWS resources. You can define tag filters for each supported namespace. If you do not define any tag filters, all metrics will be collected for the regions and namespaces you configured for the source above. This is a valid parameter if using type CloudWatchPath More info on tag filters can be found here
    type String
    type of polling source. Can be one of S3BucketPathExpression or CloudWatchPath
    bucketName String
    The name of the bucket. This is needed if using type S3BucketPathExpression.
    limitToNamespaces List<String>
    List of namespaces to limit metrics collection. By default all namespaces are selected. Details can be found here. You can also specify custom namespace. This is a valid parameter if using type CloudWatchPath.
    limitToRegions List<String>
    List of Amazon regions to limit metricscollection. This is a valid parameter if using type CloudWatchPath.
    pathExpression String
    The path to the data. This is needed if using type S3BucketPathExpression.
    tagFilters List<Property Map>
    Tag filters allow you to filter the CloudWatch metrics you collect by the AWS tags you have assigned to your AWS resources. You can define tag filters for each supported namespace. If you do not define any tag filters, all metrics will be collected for the regions and namespaces you configured for the source above. This is a valid parameter if using type CloudWatchPath More info on tag filters can be found here

    PollingSourcePathTagFilter, PollingSourcePathTagFilterArgs

    Namespace string
    Namespace for which you want to define the tag filters. Use value as All to apply the tag filter for all namespaces.
    Tags List<string>
    List of key-value pairs of tag filters. Eg: ["k3=v3"]
    Type string
    This value has to be set to TagFilters
    Namespace string
    Namespace for which you want to define the tag filters. Use value as All to apply the tag filter for all namespaces.
    Tags []string
    List of key-value pairs of tag filters. Eg: ["k3=v3"]
    Type string
    This value has to be set to TagFilters
    namespace String
    Namespace for which you want to define the tag filters. Use value as All to apply the tag filter for all namespaces.
    tags List<String>
    List of key-value pairs of tag filters. Eg: ["k3=v3"]
    type String
    This value has to be set to TagFilters
    namespace string
    Namespace for which you want to define the tag filters. Use value as All to apply the tag filter for all namespaces.
    tags string[]
    List of key-value pairs of tag filters. Eg: ["k3=v3"]
    type string
    This value has to be set to TagFilters
    namespace str
    Namespace for which you want to define the tag filters. Use value as All to apply the tag filter for all namespaces.
    tags Sequence[str]
    List of key-value pairs of tag filters. Eg: ["k3=v3"]
    type str
    This value has to be set to TagFilters
    namespace String
    Namespace for which you want to define the tag filters. Use value as All to apply the tag filter for all namespaces.
    tags List<String>
    List of key-value pairs of tag filters. Eg: ["k3=v3"]
    type String
    This value has to be set to TagFilters

    Import

    Polling sources can be imported using the collector and source IDs (collector/source), e.g.:

    hcl

    $ pulumi import sumologic:index/pollingSource:PollingSource test 123/456
    

    HTTP sources can be imported using the collector name and source name (collectorName/sourceName), e.g.:

    hcl

    $ pulumi import sumologic:index/pollingSource:PollingSource test my-test-collector/my-test-source
    

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

    Package Details

    Repository
    Sumo Logic pulumi/pulumi-sumologic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v0.23.4 published on Friday, Sep 20, 2024 by Pulumi