import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Purge Cache resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/waas/latest/PurgeCache * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/web_application_acceleration_and_security * * Performs a purge of the cache for each specified resource. If no resources are passed, the cache for the entire Web Application Firewall will be purged. * For more information, see [Caching Rules](https://docs.cloud.oracle.com/iaas/Content/WAF/Tasks/cachingrules.htm#purge). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testPurgeCache = new oci.waas.PurgeCache("test_purge_cache", { * waasPolicyId: testWaasPolicy.id, * resources: purgeCacheResources, * }); * ``` * * ## Import * * Import is not supported for this resource. */ export declare class PurgeCache extends pulumi.CustomResource { /** * Get an existing PurgeCache 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?: PurgeCacheState, opts?: pulumi.CustomResourceOptions): PurgeCache; /** * Returns true if the given object is an instance of PurgeCache. 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 PurgeCache; /** * A resource to purge, specified by either a hostless absolute path starting with a single slash (Example: `/path/to/resource`) or by a relative path in which the first component will be interpreted as a domain protected by the WAAS policy (Example: `example.com/path/to/resource`). */ readonly resources: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the WAAS policy. * * ** 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 waasPolicyId: pulumi.Output; /** * Create a PurgeCache 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: PurgeCacheArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PurgeCache resources. */ export interface PurgeCacheState { /** * A resource to purge, specified by either a hostless absolute path starting with a single slash (Example: `/path/to/resource`) or by a relative path in which the first component will be interpreted as a domain protected by the WAAS policy (Example: `example.com/path/to/resource`). */ resources?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the WAAS policy. * * ** 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 */ waasPolicyId?: pulumi.Input; } /** * The set of arguments for constructing a PurgeCache resource. */ export interface PurgeCacheArgs { /** * A resource to purge, specified by either a hostless absolute path starting with a single slash (Example: `/path/to/resource`) or by a relative path in which the first component will be interpreted as a domain protected by the WAAS policy (Example: `example.com/path/to/resource`). */ resources?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the WAAS policy. * * ** 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 */ waasPolicyId: pulumi.Input; } //# sourceMappingURL=purgeCache.d.ts.map