import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Object Lifecycle Policy resource in Oracle Cloud Infrastructure Object Storage service. * * Gets the object lifecycle policy for the bucket. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testObjectLifecyclePolicy = oci.objectstorage.getObjectLifecyclePolicy({ * bucket: objectLifecyclePolicyBucket, * namespace: objectLifecyclePolicyNamespace, * }); * ``` */ export declare function getObjectLifecyclePolicy(args: GetObjectLifecyclePolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getObjectLifecyclePolicy. */ export interface GetObjectLifecyclePolicyArgs { /** * The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` */ bucket: string; /** * The Object Storage namespace used for the request. */ namespace: string; } /** * A collection of values returned by getObjectLifecyclePolicy. */ export interface GetObjectLifecyclePolicyResult { readonly bucket: string; readonly id: string; readonly namespace: string; /** * The live lifecycle policy on the bucket. */ readonly rules: outputs.ObjectStorage.GetObjectLifecyclePolicyRule[]; /** * The date and time the object lifecycle policy was created, as described in [RFC 3339](https://tools.ietf.org/html/rfc3339). */ readonly timeCreated: string; } /** * This data source provides details about a specific Object Lifecycle Policy resource in Oracle Cloud Infrastructure Object Storage service. * * Gets the object lifecycle policy for the bucket. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testObjectLifecyclePolicy = oci.objectstorage.getObjectLifecyclePolicy({ * bucket: objectLifecyclePolicyBucket, * namespace: objectLifecyclePolicyNamespace, * }); * ``` */ export declare function getObjectLifecyclePolicyOutput(args: GetObjectLifecyclePolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getObjectLifecyclePolicy. */ export interface GetObjectLifecyclePolicyOutputArgs { /** * The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` */ bucket: pulumi.Input; /** * The Object Storage namespace used for the request. */ namespace: pulumi.Input; } //# sourceMappingURL=getObjectLifecyclePolicy.d.ts.map