import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * This resource provides the Log resource in Oracle Cloud Infrastructure Logging service.
 * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/logging-management/latest/Log
 *
 * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/logging
 *
 * Creates a log within the specified log group. This call fails if a log group has already been created
 * with the same displayName or (service, resource, category) triplet.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testLog = new oci.logging.Log("test_log", {
 *     displayName: logDisplayName,
 *     logGroupId: testLogGroup.id,
 *     logType: logLogType,
 *     configuration: {
 *         source: {
 *             category: logConfigurationSourceCategory,
 *             resource: logConfigurationSourceResource,
 *             service: logConfigurationSourceService,
 *             sourceType: logConfigurationSourceSourceType,
 *             parameters: logConfigurationSourceParameters,
 *         },
 *         compartmentId: compartmentId,
 *     },
 *     definedTags: {
 *         "Operations.CostCenter": "42",
 *     },
 *     freeformTags: {
 *         Department: "Finance",
 *     },
 *     isEnabled: logIsEnabled === "true",
 *     retentionDuration: Number(logRetentionDuration),
 * });
 * ```
 *
 * ## Import
 *
 * Logs can be imported using the `id`, e.g.
 *
 * ```sh
 * $ pulumi import oci:Logging/log:Log test_log "logGroupId/{logGroupId}/logId/{logId}"
 * ```
 */
export declare class Log extends pulumi.CustomResource {
    /**
     * Get an existing Log 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?: LogState, opts?: pulumi.CustomResourceOptions): Log;
    /**
     * Returns true if the given object is an instance of Log.  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 Log;
    /**
     * The OCID of the compartment that the resource belongs to.
     */
    readonly compartmentId: pulumi.Output<string>;
    /**
     * Log object configuration.
     */
    readonly configuration: pulumi.Output<outputs.Logging.LogConfiguration>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
     */
    readonly definedTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * (Updatable) The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
     */
    readonly displayName: pulumi.Output<string>;
    /**
     * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
     */
    readonly freeformTags: pulumi.Output<{
        [key: string]: string;
    }>;
    /**
     * (Updatable) Whether or not this resource is currently enabled.
     */
    readonly isEnabled: pulumi.Output<boolean>;
    /**
     * (Updatable) OCID of a log group to work with.
     */
    readonly logGroupId: pulumi.Output<string>;
    /**
     * The logType that the log object is for, whether custom or service.
     */
    readonly logType: pulumi.Output<string>;
    /**
     * (Updatable) Log retention duration in 30-day increments (30, 60, 90 and so on until 180).
     *
     *
     * ** IMPORTANT **
     * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
     */
    readonly retentionDuration: pulumi.Output<number>;
    /**
     * The pipeline state.
     */
    readonly state: pulumi.Output<string>;
    /**
     * The OCID of the tenancy.
     */
    readonly tenancyId: pulumi.Output<string>;
    /**
     * Time the resource was created.
     */
    readonly timeCreated: pulumi.Output<string>;
    /**
     * Time the resource was last modified.
     */
    readonly timeLastModified: pulumi.Output<string>;
    /**
     * Create a Log 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: LogArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering Log resources.
 */
export interface LogState {
    /**
     * The OCID of the compartment that the resource belongs to.
     */
    compartmentId?: pulumi.Input<string | undefined>;
    /**
     * Log object configuration.
     */
    configuration?: pulumi.Input<inputs.Logging.LogConfiguration | undefined>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
     */
    definedTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
     */
    displayName?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
     */
    freeformTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) Whether or not this resource is currently enabled.
     */
    isEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * (Updatable) OCID of a log group to work with.
     */
    logGroupId?: pulumi.Input<string | undefined>;
    /**
     * The logType that the log object is for, whether custom or service.
     */
    logType?: pulumi.Input<string | undefined>;
    /**
     * (Updatable) Log retention duration in 30-day increments (30, 60, 90 and so on until 180).
     *
     *
     * ** IMPORTANT **
     * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
     */
    retentionDuration?: pulumi.Input<number | undefined>;
    /**
     * The pipeline state.
     */
    state?: pulumi.Input<string | undefined>;
    /**
     * The OCID of the tenancy.
     */
    tenancyId?: pulumi.Input<string | undefined>;
    /**
     * Time the resource was created.
     */
    timeCreated?: pulumi.Input<string | undefined>;
    /**
     * Time the resource was last modified.
     */
    timeLastModified?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a Log resource.
 */
export interface LogArgs {
    /**
     * Log object configuration.
     */
    configuration?: pulumi.Input<inputs.Logging.LogConfiguration | undefined>;
    /**
     * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
     */
    definedTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) The user-friendly display name. This must be unique within the enclosing resource, and it's changeable. Avoid entering confidential information.
     */
    displayName: pulumi.Input<string>;
    /**
     * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
     */
    freeformTags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * (Updatable) Whether or not this resource is currently enabled.
     */
    isEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * (Updatable) OCID of a log group to work with.
     */
    logGroupId: pulumi.Input<string>;
    /**
     * The logType that the log object is for, whether custom or service.
     */
    logType: pulumi.Input<string>;
    /**
     * (Updatable) Log retention duration in 30-day increments (30, 60, 90 and so on until 180).
     *
     *
     * ** IMPORTANT **
     * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
     */
    retentionDuration?: pulumi.Input<number | undefined>;
}
//# sourceMappingURL=log.d.ts.map