import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Audit Archive Retrieval resource in Oracle Cloud Infrastructure Data Safe service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/AuditArchiveRetrieval * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe * * Creates a work request to retrieve archived audit data. This asynchronous process will usually take over an hour to complete. * Save the id from the response of this operation. Call GetAuditArchiveRetrieval operation after an hour, passing the id to know the status of * this operation. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuditArchiveRetrieval = new oci.datasafe.AuditArchiveRetrieval("test_audit_archive_retrieval", { * compartmentId: compartmentId, * endDate: auditArchiveRetrievalEndDate, * startDate: auditArchiveRetrievalStartDate, * targetId: testTarget.id, * definedTags: { * "Operations.CostCenter": "42", * }, * description: auditArchiveRetrievalDescription, * displayName: auditArchiveRetrievalDisplayName, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * AuditArchiveRetrievals can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataSafe/auditArchiveRetrieval:AuditArchiveRetrieval test_audit_archive_retrieval "id" * ``` */ export declare class AuditArchiveRetrieval extends pulumi.CustomResource { /** * Get an existing AuditArchiveRetrieval 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?: AuditArchiveRetrievalState, opts?: pulumi.CustomResourceOptions): AuditArchiveRetrieval; /** * Returns true if the given object is an instance of AuditArchiveRetrieval. 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 AuditArchiveRetrieval; /** * Total count of audit events to be retrieved from the archive for the specified date range. */ readonly auditEventCount: pulumi.Output; /** * (Updatable) The OCID of the compartment that contains the archival retrieval. */ readonly compartmentId: pulumi.Output; /** * (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) Description of the archive retrieval. */ readonly description: pulumi.Output; /** * (Updatable) The display name of the archive retrieval. The name does not have to be unique, and is changeable. */ readonly displayName: pulumi.Output; /** * End month of the archive retrieval, in the format defined by RFC3339. */ readonly endDate: pulumi.Output; /** * The Error details of a failed archive retrieval. */ readonly errorInfo: pulumi.Output; /** * (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; }>; /** * Details about the current state of the archive retrieval. */ readonly lifecycleDetails: pulumi.Output; /** * Start month of the archive retrieval, in the format defined by RFC3339. */ readonly startDate: pulumi.Output; /** * The current state of the archive retrieval. */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The OCID of the target associated with the archive retrieval. * * ** 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 targetId: pulumi.Output; /** * The date time when archive retrieval request was fulfilled, in the format defined by RFC3339. */ readonly timeCompleted: pulumi.Output; /** * The date time when retrieved archive data will be deleted from Data Safe and unloaded back into archival. */ readonly timeOfExpiry: pulumi.Output; /** * The date time when archive retrieval was requested, in the format defined by RFC3339. */ readonly timeRequested: pulumi.Output; /** * Create a AuditArchiveRetrieval 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: AuditArchiveRetrievalArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AuditArchiveRetrieval resources. */ export interface AuditArchiveRetrievalState { /** * Total count of audit events to be retrieved from the archive for the specified date range. */ auditEventCount?: pulumi.Input; /** * (Updatable) The OCID of the compartment that contains the archival retrieval. */ compartmentId?: pulumi.Input; /** * (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; } | undefined>; /** * (Updatable) Description of the archive retrieval. */ description?: pulumi.Input; /** * (Updatable) The display name of the archive retrieval. The name does not have to be unique, and is changeable. */ displayName?: pulumi.Input; /** * End month of the archive retrieval, in the format defined by RFC3339. */ endDate?: pulumi.Input; /** * The Error details of a failed archive retrieval. */ errorInfo?: pulumi.Input; /** * (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; } | undefined>; /** * Details about the current state of the archive retrieval. */ lifecycleDetails?: pulumi.Input; /** * Start month of the archive retrieval, in the format defined by RFC3339. */ startDate?: pulumi.Input; /** * The current state of the archive retrieval. */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The OCID of the target associated with the archive retrieval. * * ** 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 */ targetId?: pulumi.Input; /** * The date time when archive retrieval request was fulfilled, in the format defined by RFC3339. */ timeCompleted?: pulumi.Input; /** * The date time when retrieved archive data will be deleted from Data Safe and unloaded back into archival. */ timeOfExpiry?: pulumi.Input; /** * The date time when archive retrieval was requested, in the format defined by RFC3339. */ timeRequested?: pulumi.Input; } /** * The set of arguments for constructing a AuditArchiveRetrieval resource. */ export interface AuditArchiveRetrievalArgs { /** * (Updatable) The OCID of the compartment that contains the archival retrieval. */ compartmentId: pulumi.Input; /** * (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; } | undefined>; /** * (Updatable) Description of the archive retrieval. */ description?: pulumi.Input; /** * (Updatable) The display name of the archive retrieval. The name does not have to be unique, and is changeable. */ displayName?: pulumi.Input; /** * End month of the archive retrieval, in the format defined by RFC3339. */ endDate: pulumi.Input; /** * (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; } | undefined>; /** * Start month of the archive retrieval, in the format defined by RFC3339. */ startDate: pulumi.Input; /** * The OCID of the target associated with the archive retrieval. * * ** 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 */ targetId: pulumi.Input; } //# sourceMappingURL=auditArchiveRetrieval.d.ts.map