Replication Protection Container Mapping Args
data class ReplicationProtectionContainerMappingArgs(val fabricName: Output<String>? = null, val mappingName: Output<String>? = null, val properties: Output<CreateProtectionContainerMappingInputPropertiesArgs>? = null, val protectionContainerName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null) : ConvertibleToJava<ReplicationProtectionContainerMappingArgs>
Protection container mapping object. Uses Azure REST API version 2023-04-01. In version 1.x of the Azure Native provider, it used API version 2018-07-10. Other available API versions: 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01, 2024-10-01.
Example Usage
Create protection container mapping.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var replicationProtectionContainerMapping = new AzureNative.RecoveryServices.ReplicationProtectionContainerMapping("replicationProtectionContainerMapping", new()
{
FabricName = "cloud1",
MappingName = "cloud1protectionprofile1",
Properties = new AzureNative.RecoveryServices.Inputs.CreateProtectionContainerMappingInputPropertiesArgs
{
PolicyId = "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/protectionprofile1",
ProviderSpecificInput =
{
{ "instanceType", "ReplicationProviderSpecificContainerMappingInput" },
},
TargetProtectionContainerId = "Microsoft Azure",
},
ProtectionContainerName = "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179",
ResourceGroupName = "resourceGroupPS1",
ResourceName = "vault1",
});
});
Content copied to clipboard
package main
import (
recoveryservices "github.com/pulumi/pulumi-azure-native-sdk/recoveryservices/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := recoveryservices.NewReplicationProtectionContainerMapping(ctx, "replicationProtectionContainerMapping", &recoveryservices.ReplicationProtectionContainerMappingArgs{
FabricName: pulumi.String("cloud1"),
MappingName: pulumi.String("cloud1protectionprofile1"),
Properties: &recoveryservices.CreateProtectionContainerMappingInputPropertiesArgs{
PolicyId: pulumi.String("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/protectionprofile1"),
ProviderSpecificInput: pulumi.Any{
InstanceType: pulumi.String("ReplicationProviderSpecificContainerMappingInput"),
},
TargetProtectionContainerId: pulumi.String("Microsoft Azure"),
},
ProtectionContainerName: pulumi.String("cloud_6d224fc6-f326-5d35-96de-fbf51efb3179"),
ResourceGroupName: pulumi.String("resourceGroupPS1"),
ResourceName: pulumi.String("vault1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.recoveryservices.ReplicationProtectionContainerMapping;
import com.pulumi.azurenative.recoveryservices.ReplicationProtectionContainerMappingArgs;
import com.pulumi.azurenative.recoveryservices.inputs.CreateProtectionContainerMappingInputPropertiesArgs;
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 replicationProtectionContainerMapping = new ReplicationProtectionContainerMapping("replicationProtectionContainerMapping", ReplicationProtectionContainerMappingArgs.builder()
.fabricName("cloud1")
.mappingName("cloud1protectionprofile1")
.properties(CreateProtectionContainerMappingInputPropertiesArgs.builder()
.policyId("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/protectionprofile1")
.providerSpecificInput(A2AContainerMappingInputArgs.builder()
.instanceType("ReplicationProviderSpecificContainerMappingInput")
.build())
.targetProtectionContainerId("Microsoft Azure")
.build())
.protectionContainerName("cloud_6d224fc6-f326-5d35-96de-fbf51efb3179")
.resourceGroupName("resourceGroupPS1")
.resourceName("vault1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:recoveryservices:ReplicationProtectionContainerMapping cloud1protectionprofile1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
Content copied to clipboard
Properties
Link copied to clipboard
Fabric name.
Link copied to clipboard
Protection container mapping name.
Link copied to clipboard
Configure protection input properties.
Link copied to clipboard
Protection container name.
Link copied to clipboard
The name of the resource group where the recovery services vault is present.
Link copied to clipboard
The name of the recovery services vault.