import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Audit Events in Oracle Cloud Infrastructure Audit service. * * Returns all the audit events processed for the specified compartment within the specified * time range. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuditEvents = oci.audit.getEvents({ * compartmentId: compartmentId, * endTime: auditEventEndTime, * startTime: auditEventStartTime, * }); * ``` */ export declare function getEvents(args: GetEventsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getEvents. */ export interface GetEventsArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: string; /** * Returns events that were processed before this end date and time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. * * For example, a start value of `2017-01-01T00:00:00Z` and an end value of `2017-01-02T00:00:00Z` will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of `2017-01-01T00:00:00Z` and an end value of `2017-02-01T00:00:00Z` will result in a list of all events processed between January 1, 2017 and January 31, 2017. You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`. */ endTime: string; filters?: inputs.Audit.GetEventsFilter[]; /** * Returns events that were processed at or after this start date and time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. * * For example, a start value of `2017-01-15T11:30:00Z` will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`. */ startTime: string; } /** * A collection of values returned by getEvents. */ export interface GetEventsResult { /** * The list of audit_events. */ readonly auditEvents: outputs.Audit.GetEventsAuditEvent[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment of the resource emitting the event. */ readonly compartmentId: string; readonly endTime: string; readonly filters?: outputs.Audit.GetEventsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly startTime: string; } /** * This data source provides the list of Audit Events in Oracle Cloud Infrastructure Audit service. * * Returns all the audit events processed for the specified compartment within the specified * time range. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAuditEvents = oci.audit.getEvents({ * compartmentId: compartmentId, * endTime: auditEventEndTime, * startTime: auditEventStartTime, * }); * ``` */ export declare function getEventsOutput(args: GetEventsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getEvents. */ export interface GetEventsOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; /** * Returns events that were processed before this end date and time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. * * For example, a start value of `2017-01-01T00:00:00Z` and an end value of `2017-01-02T00:00:00Z` will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of `2017-01-01T00:00:00Z` and an end value of `2017-02-01T00:00:00Z` will result in a list of all events processed between January 1, 2017 and January 31, 2017. You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`. */ endTime: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * Returns events that were processed at or after this start date and time, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. * * For example, a start value of `2017-01-15T11:30:00Z` will retrieve a list of all events processed since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC). You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must be set to `0`. */ startTime: pulumi.Input; } //# sourceMappingURL=getEvents.d.ts.map