import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Storage Object Replication. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const src = new azure.core.ResourceGroup("src", { * name: "srcResourceGroupName", * location: "West Europe", * }); * const srcAccount = new azure.storage.Account("src", { * name: "srcstorageaccount", * resourceGroupName: src.name, * location: src.location, * accountTier: "Standard", * accountReplicationType: "LRS", * blobProperties: { * versioningEnabled: true, * changeFeedEnabled: true, * }, * }); * const srcContainer = new azure.storage.Container("src", { * name: "srcstrcontainer", * storageAccountName: srcAccount.name, * containerAccessType: "private", * }); * const dst = new azure.core.ResourceGroup("dst", { * name: "dstResourceGroupName", * location: "East US", * }); * const dstAccount = new azure.storage.Account("dst", { * name: "dststorageaccount", * resourceGroupName: dst.name, * location: dst.location, * accountTier: "Standard", * accountReplicationType: "LRS", * blobProperties: { * versioningEnabled: true, * changeFeedEnabled: true, * }, * }); * const dstContainer = new azure.storage.Container("dst", { * name: "dststrcontainer", * storageAccountName: dstAccount.name, * containerAccessType: "private", * }); * const example = new azure.storage.ObjectReplication("example", { * sourceStorageAccountId: srcAccount.id, * destinationStorageAccountId: dstAccount.id, * rules: [{ * sourceContainerName: srcContainer.name, * destinationContainerName: dstContainer.name, * }], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Storage` - 2025-06-01 * * ## Import * * Storage Object Replication Policies can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:storage/objectReplication:ObjectReplication example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Storage/storageAccounts/storageAccount1/objectReplicationPolicies/objectReplicationPolicy1;/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group2/providers/Microsoft.Storage/storageAccounts/storageAccount2/objectReplicationPolicies/objectReplicationPolicy2 * ``` */ export declare class ObjectReplication extends pulumi.CustomResource { /** * Get an existing ObjectReplication 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?: ObjectReplicationState, opts?: pulumi.CustomResourceOptions): ObjectReplication; /** * Returns true if the given object is an instance of ObjectReplication. 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 ObjectReplication; /** * The ID of the Object Replication in the destination storage account. */ readonly destinationObjectReplicationId: pulumi.Output; /** * The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created. */ readonly destinationStorageAccountId: pulumi.Output; /** * One or more `rules` blocks as defined below. */ readonly rules: pulumi.Output; /** * The ID of the Object Replication in the source storage account. */ readonly sourceObjectReplicationId: pulumi.Output; /** * The ID of the source storage account. Changing this forces a new Storage Object Replication to be created. */ readonly sourceStorageAccountId: pulumi.Output; /** * Create a ObjectReplication 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: ObjectReplicationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ObjectReplication resources. */ export interface ObjectReplicationState { /** * The ID of the Object Replication in the destination storage account. */ destinationObjectReplicationId?: pulumi.Input; /** * The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created. */ destinationStorageAccountId?: pulumi.Input; /** * One or more `rules` blocks as defined below. */ rules?: pulumi.Input[]>; /** * The ID of the Object Replication in the source storage account. */ sourceObjectReplicationId?: pulumi.Input; /** * The ID of the source storage account. Changing this forces a new Storage Object Replication to be created. */ sourceStorageAccountId?: pulumi.Input; } /** * The set of arguments for constructing a ObjectReplication resource. */ export interface ObjectReplicationArgs { /** * The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created. */ destinationStorageAccountId: pulumi.Input; /** * One or more `rules` blocks as defined below. */ rules: pulumi.Input[]>; /** * The ID of the source storage account. Changing this forces a new Storage Object Replication to be created. */ sourceStorageAccountId: pulumi.Input; }