@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
214 lines (213 loc) • 8.69 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Provides a Sumologic AWS Inventory source to collect AWS resource inventory data.
*
* __IMPORTANT:__ The AWS credentials are stored in plain-text in the state. This is a potential security issue.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const collector = new sumologic.Collector("collector", {
* name: "my-collector",
* description: "Just testing this",
* });
* const awsInventorySource = new sumologic.AwsInventorySource("aws_inventory_source", {
* name: "AWS Inventory",
* description: "My description",
* category: "aws/aws_inventory",
* contentType: "AwsInventory",
* scanInterval: 300000,
* paused: false,
* collectorId: collector.id,
* authentication: {
* type: "AWSRoleBasedAuthentication",
* roleArn: "arn:aws:iam::01234567890:role/sumo-role",
* },
* path: {
* type: "AwsInventoryPath",
* limitToRegions: ["us-west-2"],
* limitToNamespaces: [
* "AWS/RDS",
* "AWS/EC2",
* ],
* },
* });
* ```
*
* ## Import
*
* AWS Inventory sources can be imported using the collector and source IDs (`collector/source`), e.g.:
*
* hcl
*
* ```sh
* $ pulumi import sumologic:index/awsInventorySource:AwsInventorySource test 123/456
* ```
*
* AWS Inventory sources can be imported using the collector name and source name (`collectorName/sourceName`), e.g.:
*
* hcl
*
* ```sh
* $ pulumi import sumologic:index/awsInventorySource:AwsInventorySource test my-test-collector/my-test-source
* ```
*/
export declare class AwsInventorySource extends pulumi.CustomResource {
/**
* Get an existing AwsInventorySource resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AwsInventorySourceState, opts?: pulumi.CustomResourceOptions): AwsInventorySource;
/**
* Returns true if the given object is an instance of AwsInventorySource. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is AwsInventorySource;
/**
* Authentication details to access AWS `Describe*` APIs.
*/
readonly authentication: pulumi.Output<outputs.AwsInventorySourceAuthentication>;
readonly automaticDateParsing: pulumi.Output<boolean | undefined>;
readonly category: pulumi.Output<string | undefined>;
readonly collectorId: pulumi.Output<number>;
/**
* The content-type of the collected data. This has to be `AwsInventoryPath` for AWS Inventory source.
*/
readonly contentType: pulumi.Output<string>;
readonly cutoffRelativeTime: pulumi.Output<string | undefined>;
readonly cutoffTimestamp: pulumi.Output<number | undefined>;
readonly defaultDateFormats: pulumi.Output<outputs.AwsInventorySourceDefaultDateFormat[] | undefined>;
readonly description: pulumi.Output<string | undefined>;
readonly fields: pulumi.Output<{
[key: string]: string;
} | undefined>;
readonly filters: pulumi.Output<outputs.AwsInventorySourceFilter[] | undefined>;
readonly forceTimezone: pulumi.Output<boolean | undefined>;
readonly hashAlgorithm: pulumi.Output<string | undefined>;
readonly hostName: pulumi.Output<string | undefined>;
readonly manualPrefixRegexp: pulumi.Output<string | undefined>;
readonly multilineProcessingEnabled: pulumi.Output<boolean | undefined>;
readonly name: pulumi.Output<string>;
/**
* The location to scan for new data.
*/
readonly path: pulumi.Output<outputs.AwsInventorySourcePath>;
/**
* When set to true, the scanner is paused. To disable, set to false.
*/
readonly paused: pulumi.Output<boolean | undefined>;
/**
* Time interval in milliseconds of scans for new data. The minimum value is 1000 milliseconds. Currently this value is not respected.
*/
readonly scanInterval: pulumi.Output<number | undefined>;
readonly timezone: pulumi.Output<string | undefined>;
readonly url: pulumi.Output<string>;
readonly useAutolineMatching: pulumi.Output<boolean | undefined>;
/**
* Create a AwsInventorySource resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: AwsInventorySourceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AwsInventorySource resources.
*/
export interface AwsInventorySourceState {
/**
* Authentication details to access AWS `Describe*` APIs.
*/
authentication?: pulumi.Input<inputs.AwsInventorySourceAuthentication>;
automaticDateParsing?: pulumi.Input<boolean>;
category?: pulumi.Input<string>;
collectorId?: pulumi.Input<number>;
/**
* The content-type of the collected data. This has to be `AwsInventoryPath` for AWS Inventory source.
*/
contentType?: pulumi.Input<string>;
cutoffRelativeTime?: pulumi.Input<string>;
cutoffTimestamp?: pulumi.Input<number>;
defaultDateFormats?: pulumi.Input<pulumi.Input<inputs.AwsInventorySourceDefaultDateFormat>[]>;
description?: pulumi.Input<string>;
fields?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
filters?: pulumi.Input<pulumi.Input<inputs.AwsInventorySourceFilter>[]>;
forceTimezone?: pulumi.Input<boolean>;
hashAlgorithm?: pulumi.Input<string>;
hostName?: pulumi.Input<string>;
manualPrefixRegexp?: pulumi.Input<string>;
multilineProcessingEnabled?: pulumi.Input<boolean>;
name?: pulumi.Input<string>;
/**
* The location to scan for new data.
*/
path?: pulumi.Input<inputs.AwsInventorySourcePath>;
/**
* When set to true, the scanner is paused. To disable, set to false.
*/
paused?: pulumi.Input<boolean>;
/**
* Time interval in milliseconds of scans for new data. The minimum value is 1000 milliseconds. Currently this value is not respected.
*/
scanInterval?: pulumi.Input<number>;
timezone?: pulumi.Input<string>;
url?: pulumi.Input<string>;
useAutolineMatching?: pulumi.Input<boolean>;
}
/**
* The set of arguments for constructing a AwsInventorySource resource.
*/
export interface AwsInventorySourceArgs {
/**
* Authentication details to access AWS `Describe*` APIs.
*/
authentication: pulumi.Input<inputs.AwsInventorySourceAuthentication>;
automaticDateParsing?: pulumi.Input<boolean>;
category?: pulumi.Input<string>;
collectorId: pulumi.Input<number>;
/**
* The content-type of the collected data. This has to be `AwsInventoryPath` for AWS Inventory source.
*/
contentType: pulumi.Input<string>;
cutoffRelativeTime?: pulumi.Input<string>;
cutoffTimestamp?: pulumi.Input<number>;
defaultDateFormats?: pulumi.Input<pulumi.Input<inputs.AwsInventorySourceDefaultDateFormat>[]>;
description?: pulumi.Input<string>;
fields?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
filters?: pulumi.Input<pulumi.Input<inputs.AwsInventorySourceFilter>[]>;
forceTimezone?: pulumi.Input<boolean>;
hashAlgorithm?: pulumi.Input<string>;
hostName?: pulumi.Input<string>;
manualPrefixRegexp?: pulumi.Input<string>;
multilineProcessingEnabled?: pulumi.Input<boolean>;
name?: pulumi.Input<string>;
/**
* The location to scan for new data.
*/
path: pulumi.Input<inputs.AwsInventorySourcePath>;
/**
* When set to true, the scanner is paused. To disable, set to false.
*/
paused?: pulumi.Input<boolean>;
/**
* Time interval in milliseconds of scans for new data. The minimum value is 1000 milliseconds. Currently this value is not respected.
*/
scanInterval?: pulumi.Input<number>;
timezone?: pulumi.Input<string>;
useAutolineMatching?: pulumi.Input<boolean>;
}