import * as pulumi from "@pulumi/pulumi"; /** * This data source provides details about a specific Replication Policy resource in Oracle Cloud Infrastructure Object Storage service. * * Get the replication policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testReplicationPolicy = oci.objectstorage.getReplicationPolicy({ * bucket: replicationPolicyBucket, * namespace: replicationPolicyNamespace, * replicationId: testReplication.id, * }); * ``` */ export declare function getReplicationPolicy(args: GetReplicationPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getReplicationPolicy. */ export interface GetReplicationPolicyArgs { /** * 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; /** * The ID of the replication policy. */ replicationId: string; } /** * A collection of values returned by getReplicationPolicy. */ export interface GetReplicationPolicyResult { readonly bucket: string; /** * @deprecated The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported. */ readonly deleteObjectInDestinationBucket: string; /** * The bucket to replicate to in the destination region. Replication policy creation does not automatically create a destination bucket. Create the destination bucket before creating the policy. */ readonly destinationBucketName: string; /** * The destination region to replicate to, for example "us-ashburn-1". */ readonly destinationRegionName: string; /** * The id of the replication policy. */ readonly id: string; /** * The name of the policy. */ readonly name: string; readonly namespace: string; readonly replicationId: string; /** * The replication status of the policy. If the status is CLIENT_ERROR, once the user fixes the issue described in the status message, the status will become ACTIVE. */ readonly status: string; /** * A human-readable description of the status. */ readonly statusMessage: string; /** * The date when the replication policy was created as per [RFC 3339](https://tools.ietf.org/html/rfc3339). */ readonly timeCreated: string; /** * Changes made to the source bucket before this time has been replicated. */ readonly timeLastSync: string; } /** * This data source provides details about a specific Replication Policy resource in Oracle Cloud Infrastructure Object Storage service. * * Get the replication policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testReplicationPolicy = oci.objectstorage.getReplicationPolicy({ * bucket: replicationPolicyBucket, * namespace: replicationPolicyNamespace, * replicationId: testReplication.id, * }); * ``` */ export declare function getReplicationPolicyOutput(args: GetReplicationPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getReplicationPolicy. */ export interface GetReplicationPolicyOutputArgs { /** * 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; /** * The ID of the replication policy. */ replicationId: pulumi.Input; } //# sourceMappingURL=getReplicationPolicy.d.ts.map