import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Audit Policy resource in Oracle Cloud Infrastructure Data Safe service. * * Gets a audit policy by identifier. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuditPolicy = oci.datasafe.getAuditPolicy({ * auditPolicyId: testAuditPolicyOciDataSafeAuditPolicy.id, * }); * ``` */ export declare function getAuditPolicy(args: GetAuditPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAuditPolicy. */ export interface GetAuditPolicyArgs { /** * Unique audit policy identifier. */ auditPolicyId: string; } /** * A collection of values returned by getAuditPolicy. */ export interface GetAuditPolicyResult { /** * Lists the audit policy provisioning conditions for the target database. */ readonly auditConditions: outputs.DataSafe.GetAuditPolicyAuditCondition[]; readonly auditPolicyId: string; /** * Represents all available audit policy specifications relevant for the target database. For more details on available audit polcies, refer to [documentation](https://docs.oracle.com/en/cloud/paas/data-safe/udscs/audit-policies.html#GUID-361A9A9A-7C21-4F5A-8945-9B3A0C472827). */ readonly auditSpecifications: outputs.DataSafe.GetAuditPolicyAuditSpecification[]; /** * The OCID of the compartment containing the audit policy. */ readonly compartmentId: string; /** * 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: { [key: string]: string; }; /** * Description of the audit policy. */ readonly description: string; /** * The display name of the audit policy. */ readonly displayName: string; /** * 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: { [key: string]: string; }; /** * The OCID of the audit policy. */ readonly id: string; /** * Option provided to users at the target to indicate whether the Data Safe service account has to be excluded while provisioning the audit policies. */ readonly isDataSafeServiceAccountExcluded: boolean; /** * Details about the current state of the audit policy in Data Safe. */ readonly lifecycleDetails: string; readonly provisionTrigger: number; readonly retrieveFromTargetTrigger: number; /** * The current state of the audit policy. */ readonly state: string; /** * 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: { [key: string]: string; }; /** * The OCID of the target for which the audit policy is created. */ readonly targetId: string; /** * The time the the audit policy was created, in the format defined by RFC3339. */ readonly timeCreated: string; /** * Indicates the last provisioning time of audit policies on the target, in the format defined by RFC3339. */ readonly timeLastProvisioned: string; /** * The time when the audit policies was last retrieved from this target, in the format defined by RFC3339. */ readonly timeLastRetrieved: string; /** * The last date and time the audit policy was updated, in the format defined by RFC3339. */ readonly timeUpdated: string; } /** * This data source provides details about a specific Audit Policy resource in Oracle Cloud Infrastructure Data Safe service. * * Gets a audit policy by identifier. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuditPolicy = oci.datasafe.getAuditPolicy({ * auditPolicyId: testAuditPolicyOciDataSafeAuditPolicy.id, * }); * ``` */ export declare function getAuditPolicyOutput(args: GetAuditPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAuditPolicy. */ export interface GetAuditPolicyOutputArgs { /** * Unique audit policy identifier. */ auditPolicyId: pulumi.Input; } //# sourceMappingURL=getAuditPolicy.d.ts.map