ReplicationPolicyArgs

data class ReplicationPolicyArgs(val policyName: Output<String>? = null, val properties: Output<CreatePolicyInputPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null) : ConvertibleToJava<ReplicationPolicyArgs>

Protection profile details. API Version: 2018-07-10.

Example Usage

Creates the policy.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var replicationPolicy = new AzureNative.RecoveryServices.ReplicationPolicy("replicationPolicy", new()
{
PolicyName = "protectionprofile1",
Properties = new AzureNative.RecoveryServices.Inputs.CreatePolicyInputPropertiesArgs
{
ProviderSpecificInput = new AzureNative.RecoveryServices.Inputs.HyperVReplicaAzurePolicyInputArgs
{
InstanceType = "HyperVReplicaAzure",
},
},
ResourceGroupName = "resourceGroupPS1",
ResourceName = "vault1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.recoveryservices.ReplicationPolicy;
import com.pulumi.azurenative.recoveryservices.ReplicationPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var replicationPolicy = new ReplicationPolicy("replicationPolicy", ReplicationPolicyArgs.builder()
.policyName("protectionprofile1")
.properties(Map.of("providerSpecificInput", Map.of("instanceType", "HyperVReplicaAzure")))
.resourceGroupName("resourceGroupPS1")
.resourceName("vault1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:recoveryservices:ReplicationPolicy protectionprofile1 /Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/protectionprofile1

Constructors

Link copied to clipboard
constructor(policyName: Output<String>? = null, properties: Output<CreatePolicyInputPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null)

Properties

Link copied to clipboard
val policyName: Output<String>? = null

Replication policy name

Link copied to clipboard

Policy creation properties.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group where the recovery services vault is present.

Link copied to clipboard
val resourceName: Output<String>? = null

The name of the recovery services vault.

Functions

Link copied to clipboard
open override fun toJava(): ReplicationPolicyArgs