import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog Logs Index API resource. This can be used to create and manage Datadog logs indexes. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // A sample Datadog logs index resource definition. * const sampleIndex = new datadog.LogsIndex("sample_index", { * name: "your index", * dailyLimit: 200000, * dailyLimitReset: { * resetTime: "14:00", * resetUtcOffset: "+02:00", * }, * dailyLimitWarningThresholdPercentage: 50, * retentionDays: 7, * flexRetentionDays: 180, * filters: [{ * query: "*", * }], * exclusionFilters: [ * { * name: "Filter coredns logs", * isEnabled: true, * filters: [{ * query: "app:coredns", * sampleRate: 0.97, * }], * }, * { * name: "Kubernetes apiserver", * isEnabled: true, * filters: [{ * query: "service:kube_apiserver", * sampleRate: 1, * }], * }, * ], * tags: [ * "team:backend", * "env:production", * ], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/logsIndex:LogsIndex name> * ``` */ export declare class LogsIndex extends pulumi.CustomResource { /** * Get an existing LogsIndex 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, state?: LogsIndexState, opts?: pulumi.CustomResourceOptions): LogsIndex; /** * Returns true if the given object is an instance of LogsIndex. 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 LogsIndex; /** * The number of log events you can send in this index per day before you are rate-limited. */ readonly dailyLimit: pulumi.Output; /** * Object containing options to override the default daily limit reset time. */ readonly dailyLimitReset: pulumi.Output; /** * A percentage threshold of the daily quota at which a Datadog warning event is generated. */ readonly dailyLimitWarningThresholdPercentage: pulumi.Output; /** * If true, disables the daily limit and sets `dailyLimit` to null. If false, enables the daily limit. When creating an index, if this attribute is omitted, the daily limit is enabled by default. When updating an index, if this attribute is omitted, the existing value is preserved. Providing a `dailyLimit` value does not re-enable the limit if it was previously disabled unless `disableDailyLimit` is explicitly set to false. */ readonly disableDailyLimit: pulumi.Output; /** * List of exclusion filters. */ readonly exclusionFilters: pulumi.Output; /** * Logs filter */ readonly filters: pulumi.Output; /** * The total number of days logs are stored in Standard and Flex Tier before being deleted from the index. */ readonly flexRetentionDays: pulumi.Output; /** * The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created. */ readonly name: pulumi.Output; /** * The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index. */ readonly retentionDays: pulumi.Output; /** * A list of tags for this index. Tags must be in `key:value` format. If default tags are present at the provider level, they will be added to this resource. */ readonly tags: pulumi.Output; /** * Create a LogsIndex 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: LogsIndexArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogsIndex resources. */ export interface LogsIndexState { /** * The number of log events you can send in this index per day before you are rate-limited. */ dailyLimit?: pulumi.Input; /** * Object containing options to override the default daily limit reset time. */ dailyLimitReset?: pulumi.Input; /** * A percentage threshold of the daily quota at which a Datadog warning event is generated. */ dailyLimitWarningThresholdPercentage?: pulumi.Input; /** * If true, disables the daily limit and sets `dailyLimit` to null. If false, enables the daily limit. When creating an index, if this attribute is omitted, the daily limit is enabled by default. When updating an index, if this attribute is omitted, the existing value is preserved. Providing a `dailyLimit` value does not re-enable the limit if it was previously disabled unless `disableDailyLimit` is explicitly set to false. */ disableDailyLimit?: pulumi.Input; /** * List of exclusion filters. */ exclusionFilters?: pulumi.Input[]>; /** * Logs filter */ filters?: pulumi.Input[]>; /** * The total number of days logs are stored in Standard and Flex Tier before being deleted from the index. */ flexRetentionDays?: pulumi.Input; /** * The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created. */ name?: pulumi.Input; /** * The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index. */ retentionDays?: pulumi.Input; /** * A list of tags for this index. Tags must be in `key:value` format. If default tags are present at the provider level, they will be added to this resource. */ tags?: pulumi.Input[]>; } /** * The set of arguments for constructing a LogsIndex resource. */ export interface LogsIndexArgs { /** * The number of log events you can send in this index per day before you are rate-limited. */ dailyLimit?: pulumi.Input; /** * Object containing options to override the default daily limit reset time. */ dailyLimitReset?: pulumi.Input; /** * A percentage threshold of the daily quota at which a Datadog warning event is generated. */ dailyLimitWarningThresholdPercentage?: pulumi.Input; /** * If true, disables the daily limit and sets `dailyLimit` to null. If false, enables the daily limit. When creating an index, if this attribute is omitted, the daily limit is enabled by default. When updating an index, if this attribute is omitted, the existing value is preserved. Providing a `dailyLimit` value does not re-enable the limit if it was previously disabled unless `disableDailyLimit` is explicitly set to false. */ disableDailyLimit?: pulumi.Input; /** * List of exclusion filters. */ exclusionFilters?: pulumi.Input[]>; /** * Logs filter */ filters: pulumi.Input[]>; /** * The total number of days logs are stored in Standard and Flex Tier before being deleted from the index. */ flexRetentionDays?: pulumi.Input; /** * The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created. */ name: pulumi.Input; /** * The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index. */ retentionDays?: pulumi.Input; /** * A list of tags for this index. Tags must be in `key:value` format. If default tags are present at the provider level, they will be added to this resource. */ tags?: pulumi.Input[]>; }