import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Audit Trail Management resource in Oracle Cloud Infrastructure Data Safe service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-safe/latest/AuditTrailManagement * * 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. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuditTrailManagement = new oci.datasafe.AuditTrailManagement("test_audit_trail_management", { * compartmentId: compartmentId, * targetId: testTargetDatabase.id, * trailLocation: auditTrailManagementTrailLocation, * canUpdateLastArchiveTimeOnTarget: auditTrailManagementCanUpdateLastArchiveTimeOnTarget === "true", * definedTags: { * "Operations.CostCenter": "42", * }, * description: auditTrailManagementDescription, * displayName: auditTrailManagementDisplayName, * freeformTags: { * Department: "Finance", * }, * isAutoPurgeEnabled: auditTrailManagementIsAutoPurgeEnabled === "true", * }); * ``` * * ## Import * * Import is not supported for this resource. */ export declare class AuditTrailManagement extends pulumi.CustomResource { /** * Get an existing AuditTrailManagement 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?: AuditTrailManagementState, opts?: pulumi.CustomResourceOptions): AuditTrailManagement; /** * Returns true if the given object is an instance of AuditTrailManagement. 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 AuditTrailManagement; /** * The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when startTrigger is set. * * ** 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 auditCollectionStartTime: pulumi.Output; /** * The OCID of the parent audit. */ readonly auditProfileId: 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 target. */ 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; /** * (Updatable) An optional property when set to true triggers Resume. */ readonly resumeTrigger: pulumi.Output; /** * (Updatable) An optional property when set to true triggers Start. */ readonly startTrigger: pulumi.Output; /** * (Updatable) The target state for the Audit Trail Management. Could be set to `ACTIVE` or `INACTIVE`. */ readonly state: pulumi.Output; /** * The current sub-state of the audit trail. */ readonly status: pulumi.Output; /** * (Updatable) An optional property when set to true triggers Stop. */ readonly stopTrigger: 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. */ 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 OCID of the workrequest for audit trail which collects audit records. */ readonly workRequestId: pulumi.Output; /** * Create a AuditTrailManagement 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?: AuditTrailManagementArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AuditTrailManagement resources. */ export interface AuditTrailManagementState { /** * The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when startTrigger is set. * * ** 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 */ auditCollectionStartTime?: pulumi.Input; /** * The OCID of the parent audit. */ auditProfileId?: 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 target. */ 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; /** * (Updatable) An optional property when set to true triggers Resume. */ resumeTrigger?: pulumi.Input; /** * (Updatable) An optional property when set to true triggers Start. */ startTrigger?: pulumi.Input; /** * (Updatable) The target state for the Audit Trail Management. Could be set to `ACTIVE` or `INACTIVE`. */ state?: pulumi.Input; /** * The current sub-state of the audit trail. */ status?: pulumi.Input; /** * (Updatable) An optional property when set to true triggers Stop. */ stopTrigger?: 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. */ 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 OCID of the workrequest for audit trail which collects audit records. */ workRequestId?: pulumi.Input; } /** * The set of arguments for constructing a AuditTrailManagement resource. */ export interface AuditTrailManagementArgs { /** * The date from which the audit trail must start collecting data, in the format defined by RFC3339. It is a required field when startTrigger is set. * * ** 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 */ auditCollectionStartTime?: 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 target. */ 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; /** * (Updatable) An optional property when set to true triggers Resume. */ resumeTrigger?: pulumi.Input; /** * (Updatable) An optional property when set to true triggers Start. */ startTrigger?: pulumi.Input; /** * (Updatable) The target state for the Audit Trail Management. Could be set to `ACTIVE` or `INACTIVE`. */ state?: pulumi.Input; /** * (Updatable) An optional property when set to true triggers Stop. */ stopTrigger?: pulumi.Input; /** * The OCID of the target. */ targetId?: 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; } //# sourceMappingURL=auditTrailManagement.d.ts.map