import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Replication Policy resource in Oracle Cloud Infrastructure Object Storage service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/objectstorage/latest/ReplicationPolicy * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/ * * Creates a replication policy for the specified bucket. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testReplicationPolicy = new oci.objectstorage.ReplicationPolicy("test_replication_policy", { * bucket: replicationPolicyBucket, * destinationBucketName: testBucket.name, * destinationRegionName: testRegion.name, * name: replicationPolicyName, * namespace: replicationPolicyNamespace, * }); * ``` * * ## Import * * ReplicationPolicies can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:ObjectStorage/replicationPolicy:ReplicationPolicy test_replication_policy "n/{namespaceName}/b/{bucketName}/replicationPolicies/{replicationId}" * ``` */ export declare class ReplicationPolicy extends pulumi.CustomResource { /** * Get an existing ReplicationPolicy 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?: ReplicationPolicyState, opts?: pulumi.CustomResourceOptions): ReplicationPolicy; /** * Returns true if the given object is an instance of ReplicationPolicy. 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 ReplicationPolicy; /** * The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` */ readonly bucket: pulumi.Output; /** * @deprecated The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported. */ readonly deleteObjectInDestinationBucket: pulumi.Output; /** * 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: pulumi.Output; /** * The destination region to replicate to, for example "us-ashburn-1". */ readonly destinationRegionName: pulumi.Output; /** * The name of the policy. Avoid entering confidential information. */ readonly name: pulumi.Output; /** * The Object Storage namespace used for the request. * * ** 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 namespace: pulumi.Output; /** * 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: pulumi.Output; /** * A human-readable description of the status. */ readonly statusMessage: pulumi.Output; /** * The date when the replication policy was created as per [RFC 3339](https://tools.ietf.org/html/rfc3339). */ readonly timeCreated: pulumi.Output; /** * Changes made to the source bucket before this time has been replicated. */ readonly timeLastSync: pulumi.Output; /** * Create a ReplicationPolicy 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: ReplicationPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ReplicationPolicy resources. */ export interface ReplicationPolicyState { /** * The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` */ bucket?: pulumi.Input; /** * @deprecated The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported. */ deleteObjectInDestinationBucket?: pulumi.Input; /** * 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. */ destinationBucketName?: pulumi.Input; /** * The destination region to replicate to, for example "us-ashburn-1". */ destinationRegionName?: pulumi.Input; /** * The name of the policy. Avoid entering confidential information. */ name?: pulumi.Input; /** * The Object Storage namespace used for the request. * * ** 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 */ namespace?: pulumi.Input; /** * 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. */ status?: pulumi.Input; /** * A human-readable description of the status. */ statusMessage?: pulumi.Input; /** * The date when the replication policy was created as per [RFC 3339](https://tools.ietf.org/html/rfc3339). */ timeCreated?: pulumi.Input; /** * Changes made to the source bucket before this time has been replicated. */ timeLastSync?: pulumi.Input; } /** * The set of arguments for constructing a ReplicationPolicy resource. */ export interface ReplicationPolicyArgs { /** * The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` */ bucket: pulumi.Input; /** * @deprecated The 'delete_object_in_destination_bucket' field has been deprecated. It is no longer supported. */ deleteObjectInDestinationBucket?: pulumi.Input; /** * 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. */ destinationBucketName: pulumi.Input; /** * The destination region to replicate to, for example "us-ashburn-1". */ destinationRegionName: pulumi.Input; /** * The name of the policy. Avoid entering confidential information. */ name?: pulumi.Input; /** * The Object Storage namespace used for the request. * * ** 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 */ namespace: pulumi.Input; } //# sourceMappingURL=replicationPolicy.d.ts.map