import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog Logs Archive API resource, which is used to create and manage Datadog logs archives. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const myS3Archive = new datadog.LogsArchive("my_s3_archive", { * name: "my s3 archive", * query: "service:myservice", * s3Archive: { * bucket: "my-bucket", * path: "/path/foo", * accountId: "001234567888", * roleName: "my-role-name", * }, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/logsArchive:LogsArchive my_s3_archive 1Aabc2_dfQPLnXy3HlfK4hi * ``` */ export declare class LogsArchive extends pulumi.CustomResource { /** * Get an existing LogsArchive 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?: LogsArchiveState, opts?: pulumi.CustomResourceOptions): LogsArchive; /** * Returns true if the given object is an instance of LogsArchive. 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 LogsArchive; /** * Definition of an azure archive. */ readonly azureArchive: pulumi.Output; /** * Definition of a GCS archive. */ readonly gcsArchive: pulumi.Output; /** * To store the tags in the archive, set the value `true`. If it is set to `false`, the tags will be dropped when the logs are sent to the archive. Defaults to `false`. */ readonly includeTags: pulumi.Output; /** * Your archive name. */ readonly name: pulumi.Output; /** * The archive query/filter. Logs matching this query are included in the archive. */ readonly query: pulumi.Output; /** * To limit the rehydration scan size for the archive, set a value in GB. */ readonly rehydrationMaxScanSizeInGb: pulumi.Output; /** * An array of tags to add to rehydrated logs from an archive. */ readonly rehydrationTags: pulumi.Output; /** * Definition of an s3 archive. */ readonly s3Archive: pulumi.Output; /** * Create a LogsArchive 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: LogsArchiveArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogsArchive resources. */ export interface LogsArchiveState { /** * Definition of an azure archive. */ azureArchive?: pulumi.Input; /** * Definition of a GCS archive. */ gcsArchive?: pulumi.Input; /** * To store the tags in the archive, set the value `true`. If it is set to `false`, the tags will be dropped when the logs are sent to the archive. Defaults to `false`. */ includeTags?: pulumi.Input; /** * Your archive name. */ name?: pulumi.Input; /** * The archive query/filter. Logs matching this query are included in the archive. */ query?: pulumi.Input; /** * To limit the rehydration scan size for the archive, set a value in GB. */ rehydrationMaxScanSizeInGb?: pulumi.Input; /** * An array of tags to add to rehydrated logs from an archive. */ rehydrationTags?: pulumi.Input[]>; /** * Definition of an s3 archive. */ s3Archive?: pulumi.Input; } /** * The set of arguments for constructing a LogsArchive resource. */ export interface LogsArchiveArgs { /** * Definition of an azure archive. */ azureArchive?: pulumi.Input; /** * Definition of a GCS archive. */ gcsArchive?: pulumi.Input; /** * To store the tags in the archive, set the value `true`. If it is set to `false`, the tags will be dropped when the logs are sent to the archive. Defaults to `false`. */ includeTags?: pulumi.Input; /** * Your archive name. */ name: pulumi.Input; /** * The archive query/filter. Logs matching this query are included in the archive. */ query: pulumi.Input; /** * To limit the rehydration scan size for the archive, set a value in GB. */ rehydrationMaxScanSizeInGb?: pulumi.Input; /** * An array of tags to add to rehydrated logs from an archive. */ rehydrationTags?: pulumi.Input[]>; /** * Definition of an s3 archive. */ s3Archive?: pulumi.Input; }