import * as pulumi from "@pulumi/pulumi";
/**
 * The Google Cloud Storage (GCS) Anywhere Cache feature allows users to
 * create SSD backed zonal read cache for their buckets. These zonal
 * caches are co-located with the customers compute engines to provide
 * cost efficiency.
 *
 * ## Example Usage
 *
 * ### Storage Anywhere Cache Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * import * as time from "@pulumiverse/time";
 *
 * const bucket = new gcp.storage.Bucket("bucket", {
 *     name: "bucket-name",
 *     location: "US",
 * });
 * const destroyWait5000Seconds = new time.Sleep("destroy_wait_5000_seconds", {destroyDuration: "5000s"}, {
 *     dependsOn: [bucket],
 * });
 * const cache = new gcp.storage.AnywhereCache("cache", {
 *     bucket: bucket.name,
 *     zone: "us-central1-f",
 *     ttl: "3601s",
 * }, {
 *     dependsOn: [destroyWait5000Seconds],
 * });
 * ```
 *
 * ## Import
 *
 * AnywhereCache can be imported using any of these accepted formats:
 *
 * * `b/{{bucket}}/anywhereCaches/{{anywhere_cache_id}}`
 * * `{{bucket}}/{{anywhere_cache_id}}`
 *
 * When using the `pulumi import` command, AnywhereCache can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:storage/anywhereCache:AnywhereCache default b/{{bucket}}/anywhereCaches/{{anywhere_cache_id}}
 * $ pulumi import gcp:storage/anywhereCache:AnywhereCache default {{bucket}}/{{anywhere_cache_id}}
 * ```
 */
export declare class AnywhereCache extends pulumi.CustomResource {
    /**
     * Get an existing AnywhereCache 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<pulumi.ID>, state?: AnywhereCacheState, opts?: pulumi.CustomResourceOptions): AnywhereCache;
    /**
     * Returns true if the given object is an instance of AnywhereCache.  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 AnywhereCache;
    /**
     * The cache admission policy dictates whether a block should be inserted upon a cache miss.
     * Default value is `admit-on-first-miss`.
     * Possible values are: `admit-on-first-miss`, `admit-on-second-miss`.
     */
    readonly admissionPolicy: pulumi.Output<string | undefined>;
    /**
     * The ID of the Anywhere cache instance.
     */
    readonly anywhereCacheId: pulumi.Output<string>;
    /**
     * A reference to Bucket resource
     */
    readonly bucket: pulumi.Output<string>;
    /**
     * The creation time of the cache instance in RFC 3339 format.
     */
    readonly createTime: pulumi.Output<string>;
    /**
     * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
     * When a 'terraform destroy' or 'pulumi up' would delete the resource,
     * the command will fail if this field is set to "PREVENT" in Terraform state.
     * When set to "ABANDON", the command will remove the resource from Terraform
     * management without updating or deleting the resource in the API.
     * When set to "DELETE", deleting the resource is allowed.
     */
    readonly deletionPolicy: pulumi.Output<string>;
    /**
     * Whether or not the cache ingests data as the data is written to the bucket.
     */
    readonly ingestOnWrite: pulumi.Output<boolean | undefined>;
    /**
     * True if the cache instance has an active Update long-running operation.
     */
    readonly pendingUpdate: pulumi.Output<boolean>;
    /**
     * The current state of the cache instance.
     */
    readonly state: pulumi.Output<string>;
    /**
     * The TTL of all cache entries in whole seconds. e.g., "7200s". It defaults to `86400s`
     */
    readonly ttl: pulumi.Output<string | undefined>;
    /**
     * The modification time of the cache instance metadata in RFC 3339 format.
     */
    readonly updateTime: pulumi.Output<string>;
    /**
     * The zone in which the cache instance needs to be created. For example, `us-central1-a.`
     */
    readonly zone: pulumi.Output<string>;
    /**
     * Create a AnywhereCache 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: AnywhereCacheArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering AnywhereCache resources.
 */
export interface AnywhereCacheState {
    /**
     * The cache admission policy dictates whether a block should be inserted upon a cache miss.
     * Default value is `admit-on-first-miss`.
     * Possible values are: `admit-on-first-miss`, `admit-on-second-miss`.
     */
    admissionPolicy?: pulumi.Input<string | undefined>;
    /**
     * The ID of the Anywhere cache instance.
     */
    anywhereCacheId?: pulumi.Input<string | undefined>;
    /**
     * A reference to Bucket resource
     */
    bucket?: pulumi.Input<string | undefined>;
    /**
     * The creation time of the cache instance in RFC 3339 format.
     */
    createTime?: pulumi.Input<string | undefined>;
    /**
     * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
     * When a 'terraform destroy' or 'pulumi up' would delete the resource,
     * the command will fail if this field is set to "PREVENT" in Terraform state.
     * When set to "ABANDON", the command will remove the resource from Terraform
     * management without updating or deleting the resource in the API.
     * When set to "DELETE", deleting the resource is allowed.
     */
    deletionPolicy?: pulumi.Input<string | undefined>;
    /**
     * Whether or not the cache ingests data as the data is written to the bucket.
     */
    ingestOnWrite?: pulumi.Input<boolean | undefined>;
    /**
     * True if the cache instance has an active Update long-running operation.
     */
    pendingUpdate?: pulumi.Input<boolean | undefined>;
    /**
     * The current state of the cache instance.
     */
    state?: pulumi.Input<string | undefined>;
    /**
     * The TTL of all cache entries in whole seconds. e.g., "7200s". It defaults to `86400s`
     */
    ttl?: pulumi.Input<string | undefined>;
    /**
     * The modification time of the cache instance metadata in RFC 3339 format.
     */
    updateTime?: pulumi.Input<string | undefined>;
    /**
     * The zone in which the cache instance needs to be created. For example, `us-central1-a.`
     */
    zone?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a AnywhereCache resource.
 */
export interface AnywhereCacheArgs {
    /**
     * The cache admission policy dictates whether a block should be inserted upon a cache miss.
     * Default value is `admit-on-first-miss`.
     * Possible values are: `admit-on-first-miss`, `admit-on-second-miss`.
     */
    admissionPolicy?: pulumi.Input<string | undefined>;
    /**
     * A reference to Bucket resource
     */
    bucket: pulumi.Input<string>;
    /**
     * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
     * When a 'terraform destroy' or 'pulumi up' would delete the resource,
     * the command will fail if this field is set to "PREVENT" in Terraform state.
     * When set to "ABANDON", the command will remove the resource from Terraform
     * management without updating or deleting the resource in the API.
     * When set to "DELETE", deleting the resource is allowed.
     */
    deletionPolicy?: pulumi.Input<string | undefined>;
    /**
     * Whether or not the cache ingests data as the data is written to the bucket.
     */
    ingestOnWrite?: pulumi.Input<boolean | undefined>;
    /**
     * The TTL of all cache entries in whole seconds. e.g., "7200s". It defaults to `86400s`
     */
    ttl?: pulumi.Input<string | undefined>;
    /**
     * The zone in which the cache instance needs to be created. For example, `us-central1-a.`
     */
    zone: pulumi.Input<string>;
}
//# sourceMappingURL=anywhereCache.d.ts.map