import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Audit Trail resource in Oracle Cloud Infrastructure Data Safe service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/AuditTrail * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datasafe * * Updates one or more attributes of the specified audit trail. * * ## Import * * AuditTrails can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataSafe/auditTrail:AuditTrail test_audit_trail "id" * ``` */ export declare class AuditTrail extends pulumi.CustomResource { /** * Get an existing AuditTrail 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?: AuditTrailState, opts?: pulumi.CustomResourceOptions): AuditTrail; /** * Returns true if the given object is an instance of AuditTrail. 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 AuditTrail; /** * The date from which the audit trail must start collecting data, in the format defined by RFC3339. */ readonly auditCollectionStartTime: pulumi.Output; /** * The OCID of the parent audit. */ readonly auditProfileId: pulumi.Output; /** * The OCID of the audit trail. */ readonly auditTrailId: pulumi.Output; /** * (Updatable) Indicates if the Datasafe updates last archive time on target database. If isAutoPurgeEnabled field is enabled, this field must be true. */ readonly canUpdateLastArchiveTimeOnTarget: pulumi.Output; /** * The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource. */ 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) The description of the audit trail. */ readonly description: pulumi.Output; /** * (Updatable) The display name of the audit trail. The name does not have to be unique, and it's updatable. */ readonly displayName: 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; }>; /** * (Updatable) Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database's audit trail does not become too large. */ readonly isAutoPurgeEnabled: pulumi.Output; /** * Details about the current state of the audit trail in Data Safe. */ readonly lifecycleDetails: pulumi.Output; /** * The secondary id assigned for the peer database registered with Data Safe. */ readonly peerTargetDatabaseKey: pulumi.Output; /** * The details of the audit trail purge job that ran on the "purgeJobTime". */ readonly purgeJobDetails: pulumi.Output; /** * The current status of the audit trail purge job. */ readonly purgeJobStatus: pulumi.Output; /** * The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339. */ readonly purgeJobTime: pulumi.Output; /** * (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value. * * ** 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 resumeTrigger: pulumi.Output; /** * (Updatable) The target state for the Audit Trail. Could be set to `ACTIVE` or `INACTIVE`. */ readonly state: pulumi.Output; /** * The current sub-state of the audit trail. */ readonly status: 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 Data Safe target for which the audit trail is created. */ readonly targetId: pulumi.Output; /** * The date and time the audit trail was created, in the format defined by RFC3339. */ readonly timeCreated: pulumi.Output; /** * The date and time until when the audit events were collected from the target database by the Data Safe audit trail collection process, in the format defined by RFC3339. */ readonly timeLastCollected: pulumi.Output; /** * The date and time the audit trail was updated, in the format defined by RFC3339. */ readonly timeUpdated: pulumi.Output; /** * An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database. */ readonly trailLocation: pulumi.Output; /** * The underlying source of unified audit trail. */ readonly trailSource: pulumi.Output; /** * The OCID of the workrequest for audit trail which collects audit records. */ readonly workRequestId: pulumi.Output; /** * Create a AuditTrail 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: AuditTrailArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AuditTrail resources. */ export interface AuditTrailState { /** * The date from which the audit trail must start collecting data, in the format defined by RFC3339. */ auditCollectionStartTime?: pulumi.Input; /** * The OCID of the parent audit. */ auditProfileId?: pulumi.Input; /** * The OCID of the audit trail. */ auditTrailId?: pulumi.Input; /** * (Updatable) Indicates if the Datasafe updates last archive time on target database. If isAutoPurgeEnabled field is enabled, this field must be true. */ canUpdateLastArchiveTimeOnTarget?: pulumi.Input; /** * The OCID of the compartment that contains the audit trail and is the same as the compartment of the audit profile resource. */ 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) The description of the audit trail. */ description?: pulumi.Input; /** * (Updatable) The display name of the audit trail. The name does not have to be unique, and it's updatable. */ displayName?: 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>; /** * (Updatable) Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database's audit trail does not become too large. */ isAutoPurgeEnabled?: pulumi.Input; /** * Details about the current state of the audit trail in Data Safe. */ lifecycleDetails?: pulumi.Input; /** * The secondary id assigned for the peer database registered with Data Safe. */ peerTargetDatabaseKey?: pulumi.Input; /** * The details of the audit trail purge job that ran on the "purgeJobTime". */ purgeJobDetails?: pulumi.Input; /** * The current status of the audit trail purge job. */ purgeJobStatus?: pulumi.Input; /** * The date and time of the last purge job, which deletes audit data in the target database every seven days so that the database's audit trail does not become too large. In the format defined by RFC3339. */ purgeJobTime?: pulumi.Input; /** * (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value. * * ** 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 */ resumeTrigger?: pulumi.Input; /** * (Updatable) The target state for the Audit Trail. Could be set to `ACTIVE` or `INACTIVE`. */ state?: pulumi.Input; /** * The current sub-state of the audit trail. */ status?: 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 Data Safe target for which the audit trail is created. */ targetId?: pulumi.Input; /** * The date and time the audit trail was created, in the format defined by RFC3339. */ timeCreated?: pulumi.Input; /** * The date and time until when the audit events were collected from the target database by the Data Safe audit trail collection process, in the format defined by RFC3339. */ timeLastCollected?: pulumi.Input; /** * The date and time the audit trail was updated, in the format defined by RFC3339. */ timeUpdated?: pulumi.Input; /** * An audit trail location represents the source of audit records that provides documentary evidence of the sequence of activities in the target database. */ trailLocation?: pulumi.Input; /** * The underlying source of unified audit trail. */ trailSource?: pulumi.Input; /** * The OCID of the workrequest for audit trail which collects audit records. */ workRequestId?: pulumi.Input; } /** * The set of arguments for constructing a AuditTrail resource. */ export interface AuditTrailArgs { /** * The OCID of the audit trail. */ auditTrailId: pulumi.Input; /** * (Updatable) Indicates if the Datasafe updates last archive time on target database. If isAutoPurgeEnabled field is enabled, this field must be true. */ canUpdateLastArchiveTimeOnTarget?: 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) The description of the audit trail. */ description?: pulumi.Input; /** * (Updatable) The display name of the audit trail. The name does not have to be unique, and it's updatable. */ displayName?: 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>; /** * (Updatable) Indicates if auto purge is enabled on the target database, which helps delete audit data in the target database every seven days so that the database's audit trail does not become too large. */ isAutoPurgeEnabled?: pulumi.Input; /** * (Updatable) An optional property when incremented triggers Resume. Could be set to any integer value. * * ** 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 */ resumeTrigger?: pulumi.Input; /** * (Updatable) The target state for the Audit Trail. Could be set to `ACTIVE` or `INACTIVE`. */ state?: pulumi.Input; } //# sourceMappingURL=auditTrail.d.ts.map