sumologic.PollingSource
Explore with Pulumi AI
!> 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.
Sumo Logic. Inputs. Polling Source Authentication - Authentication details for connecting to the S3 bucket.
- Collector
Id int - Content
Type string - The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
- Path
Pulumi.
Sumo Logic. Inputs. Polling Source Path - 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 boolParsing - Category string
- Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date List<Pulumi.Formats Sumo Logic. Inputs. Polling Source Default Date Format> - Description string
- Fields Dictionary<string, string>
- Filters
List<Pulumi.
Sumo Logic. Inputs. Polling Source Filter> - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- Timezone string
- Use
Autoline boolMatching
- Authentication
Polling
Source Authentication Args - Authentication details for connecting to the S3 bucket.
- Collector
Id int - Content
Type string - The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
- Path
Polling
Source Path Args - 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 boolParsing - Category string
- Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date []PollingFormats Source Default Date Format Args - Description string
- Fields map[string]string
- Filters
[]Polling
Source Filter Args - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- Timezone string
- Use
Autoline boolMatching
- authentication
Polling
Source Authentication - Authentication details for connecting to the S3 bucket.
- collector
Id Integer - content
Type String - The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
- path
Polling
Source Path - The location to scan for new data.
- paused Boolean
- When set to true, the scanner is paused. To disable, set to false.
- scan
Interval Integer - Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
- automatic
Date BooleanParsing - category String
- cutoff
Relative StringTime - cutoff
Timestamp Integer - default
Date List<PollingFormats Source Default Date Format> - description String
- fields Map<String,String>
- filters
List<Polling
Source Filter> - force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - name String
- timezone String
- use
Autoline BooleanMatching
- authentication
Polling
Source Authentication - Authentication details for connecting to the S3 bucket.
- collector
Id number - content
Type string - The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
- path
Polling
Source Path - The location to scan for new data.
- paused boolean
- When set to true, the scanner is paused. To disable, set to false.
- scan
Interval number - Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
- automatic
Date booleanParsing - category string
- cutoff
Relative stringTime - cutoff
Timestamp number - default
Date PollingFormats Source Default Date Format[] - description string
- fields {[key: string]: string}
- filters
Polling
Source Filter[] - force
Timezone boolean - host
Name string - manual
Prefix stringRegexp - multiline
Processing booleanEnabled - name string
- timezone string
- use
Autoline booleanMatching
- authentication
Polling
Source Authentication Args - 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
Polling
Source Path Args - 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_ boolparsing - category str
- cutoff_
relative_ strtime - cutoff_
timestamp int - default_
date_ Sequence[Pollingformats Source Default Date Format Args] - description str
- fields Mapping[str, str]
- filters
Sequence[Polling
Source Filter Args] - force_
timezone bool - host_
name str - manual_
prefix_ strregexp - multiline_
processing_ boolenabled - name str
- timezone str
- use_
autoline_ boolmatching
- authentication Property Map
- Authentication details for connecting to the S3 bucket.
- collector
Id Number - content
Type 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.
- scan
Interval Number - Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
- automatic
Date BooleanParsing - category String
- cutoff
Relative StringTime - cutoff
Timestamp Number - default
Date List<Property Map>Formats - description String
- fields Map<String>
- filters List<Property Map>
- force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - name String
- timezone String
- use
Autoline BooleanMatching
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.
- Authentication
Pulumi.
Sumo Logic. Inputs. Polling Source Authentication - Authentication details for connecting to the S3 bucket.
- Automatic
Date boolParsing - Category string
- Collector
Id int - Content
Type string - The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
- Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date List<Pulumi.Formats Sumo Logic. Inputs. Polling Source Default Date Format> - Description string
- Fields Dictionary<string, string>
- Filters
List<Pulumi.
Sumo Logic. Inputs. Polling Source Filter> - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- Path
Pulumi.
Sumo Logic. Inputs. Polling Source Path - 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 string
- Url string
- The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
- Use
Autoline boolMatching
- Authentication
Polling
Source Authentication Args - Authentication details for connecting to the S3 bucket.
- Automatic
Date boolParsing - Category string
- Collector
Id int - Content
Type string - The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
- Cutoff
Relative stringTime - Cutoff
Timestamp int - Default
Date []PollingFormats Source Default Date Format Args - Description string
- Fields map[string]string
- Filters
[]Polling
Source Filter Args - Force
Timezone bool - Host
Name string - Manual
Prefix stringRegexp - Multiline
Processing boolEnabled - Name string
- Path
Polling
Source Path Args - 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 string
- Url string
- The HTTP endpoint to use with SNS to notify Sumo Logic of new files.
- Use
Autoline boolMatching
- authentication
Polling
Source Authentication - Authentication details for connecting to the S3 bucket.
- automatic
Date BooleanParsing - category String
- collector
Id Integer - content
Type String - The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
- cutoff
Relative StringTime - cutoff
Timestamp Integer - default
Date List<PollingFormats Source Default Date Format> - description String
- fields Map<String,String>
- filters
List<Polling
Source Filter> - force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - name String
- path
Polling
Source Path - The location to scan for new data.
- paused Boolean
- When set to true, the scanner is paused. To disable, set to false.
- scan
Interval 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.
- use
Autoline BooleanMatching
- authentication
Polling
Source Authentication - Authentication details for connecting to the S3 bucket.
- automatic
Date booleanParsing - category string
- collector
Id number - content
Type string - The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
- cutoff
Relative stringTime - cutoff
Timestamp number - default
Date PollingFormats Source Default Date Format[] - description string
- fields {[key: string]: string}
- filters
Polling
Source Filter[] - force
Timezone boolean - host
Name string - manual
Prefix stringRegexp - multiline
Processing booleanEnabled - name string
- path
Polling
Source Path - The location to scan for new data.
- paused boolean
- When set to true, the scanner is paused. To disable, set to false.
- scan
Interval 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.
- use
Autoline booleanMatching
- authentication
Polling
Source Authentication Args - Authentication details for connecting to the S3 bucket.
- automatic_
date_ boolparsing - 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_ strtime - cutoff_
timestamp int - default_
date_ Sequence[Pollingformats Source Default Date Format Args] - description str
- fields Mapping[str, str]
- filters
Sequence[Polling
Source Filter Args] - force_
timezone bool - host_
name str - manual_
prefix_ strregexp - multiline_
processing_ boolenabled - name str
- path
Polling
Source Path Args - 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_ boolmatching
- authentication Property Map
- Authentication details for connecting to the S3 bucket.
- automatic
Date BooleanParsing - category String
- collector
Id Number - content
Type String - The content-type of the collected data. Details can be found in the Sumologic documentation for hosted sources.
- cutoff
Relative StringTime - cutoff
Timestamp Number - default
Date List<Property Map>Formats - description String
- fields Map<String>
- filters List<Property Map>
- force
Timezone Boolean - host
Name String - manual
Prefix StringRegexp - multiline
Processing BooleanEnabled - 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.
- scan
Interval 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.
- use
Autoline BooleanMatching
Supporting Types
PollingSourceAuthentication, PollingSourceAuthenticationArgs
- type str
- Must be either
S3BucketAuthentication
orAWSRoleBasedAuthentication
- 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
PollingSourceDefaultDateFormat, PollingSourceDefaultDateFormatArgs
PollingSourceFilter, PollingSourceFilterArgs
- Filter
Type string - Name string
- Regexp string
- Mask string
- Filter
Type string - Name string
- Regexp string
- Mask string
- filter
Type String - name String
- regexp String
- mask String
- filter
Type string - name string
- regexp string
- mask string
- filter_
type str - name str
- regexp str
- mask str
- filter
Type String - name String
- regexp String
- mask String
PollingSourcePath, PollingSourcePathArgs
- Type string
- type of polling source. Can be one of
S3BucketPathExpression
orCloudWatchPath
- Bucket
Name string - The name of the bucket. This is needed if using type
S3BucketPathExpression
. - Limit
To List<string>Namespaces - 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 List<string>Regions - List of Amazon regions to limit metricscollection. This is a valid parameter if using type
CloudWatchPath
. - Path
Expression string - The path to the data. This is needed if using type
S3BucketPathExpression
. - Tag
Filters List<Pulumi.Sumo Logic. Inputs. Polling Source Path Tag Filter> - 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
orCloudWatchPath
- Bucket
Name string - The name of the bucket. This is needed if using type
S3BucketPathExpression
. - Limit
To []stringNamespaces - 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 []stringRegions - List of Amazon regions to limit metricscollection. This is a valid parameter if using type
CloudWatchPath
. - Path
Expression string - The path to the data. This is needed if using type
S3BucketPathExpression
. - Tag
Filters []PollingSource Path Tag Filter - 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
orCloudWatchPath
- bucket
Name String - The name of the bucket. This is needed if using type
S3BucketPathExpression
. - limit
To List<String>Namespaces - 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 List<String>Regions - List of Amazon regions to limit metricscollection. This is a valid parameter if using type
CloudWatchPath
. - path
Expression String - The path to the data. This is needed if using type
S3BucketPathExpression
. - tag
Filters List<PollingSource Path Tag Filter> - 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
orCloudWatchPath
- bucket
Name string - The name of the bucket. This is needed if using type
S3BucketPathExpression
. - limit
To string[]Namespaces - 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 string[]Regions - List of Amazon regions to limit metricscollection. This is a valid parameter if using type
CloudWatchPath
. - path
Expression string - The path to the data. This is needed if using type
S3BucketPathExpression
. - tag
Filters PollingSource Path Tag Filter[] - 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
orCloudWatchPath
- bucket_
name str - The name of the bucket. This is needed if using type
S3BucketPathExpression
. - limit_
to_ Sequence[str]namespaces - 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_ Sequence[str]regions - 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[PollingSource Path Tag Filter] - 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
orCloudWatchPath
- bucket
Name String - The name of the bucket. This is needed if using type
S3BucketPathExpression
. - limit
To List<String>Namespaces - 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 List<String>Regions - List of Amazon regions to limit metricscollection. This is a valid parameter if using type
CloudWatchPath
. - path
Expression String - The path to the data. This is needed if using type
S3BucketPathExpression
. - tag
Filters 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
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.