1. Packages
  2. Azure Native
  3. API Docs
  4. recoveryservices
  5. ReplicationStorageClassificationMapping
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.recoveryservices.ReplicationStorageClassificationMapping

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    Storage mapping object. Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2018-07-10.

    Other available API versions: 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01.

    Example Usage

    Create storage classification mapping.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var replicationStorageClassificationMapping = new AzureNative.RecoveryServices.ReplicationStorageClassificationMapping("replicationStorageClassificationMapping", new()
        {
            FabricName = "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0",
            Properties = new AzureNative.RecoveryServices.Inputs.StorageMappingInputPropertiesArgs
            {
                TargetStorageClassificationId = "/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09",
            },
            ResourceGroupName = "resourceGroupPS1",
            ResourceName = "vault1",
            StorageClassificationMappingName = "testStorageMapping",
            StorageClassificationName = "8891569e-aaef-4a46-a4a0-78c14f2d7b09",
        });
    
    });
    
    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.NewReplicationStorageClassificationMapping(ctx, "replicationStorageClassificationMapping", &recoveryservices.ReplicationStorageClassificationMappingArgs{
    			FabricName: pulumi.String("2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0"),
    			Properties: &recoveryservices.StorageMappingInputPropertiesArgs{
    				TargetStorageClassificationId: pulumi.String("/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09"),
    			},
    			ResourceGroupName:                pulumi.String("resourceGroupPS1"),
    			ResourceName:                     pulumi.String("vault1"),
    			StorageClassificationMappingName: pulumi.String("testStorageMapping"),
    			StorageClassificationName:        pulumi.String("8891569e-aaef-4a46-a4a0-78c14f2d7b09"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.recoveryservices.ReplicationStorageClassificationMapping;
    import com.pulumi.azurenative.recoveryservices.ReplicationStorageClassificationMappingArgs;
    import com.pulumi.azurenative.recoveryservices.inputs.StorageMappingInputPropertiesArgs;
    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 replicationStorageClassificationMapping = new ReplicationStorageClassificationMapping("replicationStorageClassificationMapping", ReplicationStorageClassificationMappingArgs.builder()
                .fabricName("2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0")
                .properties(StorageMappingInputPropertiesArgs.builder()
                    .targetStorageClassificationId("/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09")
                    .build())
                .resourceGroupName("resourceGroupPS1")
                .resourceName("vault1")
                .storageClassificationMappingName("testStorageMapping")
                .storageClassificationName("8891569e-aaef-4a46-a4a0-78c14f2d7b09")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    replication_storage_classification_mapping = azure_native.recoveryservices.ReplicationStorageClassificationMapping("replicationStorageClassificationMapping",
        fabric_name="2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0",
        properties=azure_native.recoveryservices.StorageMappingInputPropertiesArgs(
            target_storage_classification_id="/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09",
        ),
        resource_group_name="resourceGroupPS1",
        resource_name_="vault1",
        storage_classification_mapping_name="testStorageMapping",
        storage_classification_name="8891569e-aaef-4a46-a4a0-78c14f2d7b09")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const replicationStorageClassificationMapping = new azure_native.recoveryservices.ReplicationStorageClassificationMapping("replicationStorageClassificationMapping", {
        fabricName: "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0",
        properties: {
            targetStorageClassificationId: "/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09",
        },
        resourceGroupName: "resourceGroupPS1",
        resourceName: "vault1",
        storageClassificationMappingName: "testStorageMapping",
        storageClassificationName: "8891569e-aaef-4a46-a4a0-78c14f2d7b09",
    });
    
    resources:
      replicationStorageClassificationMapping:
        type: azure-native:recoveryservices:ReplicationStorageClassificationMapping
        properties:
          fabricName: 2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0
          properties:
            targetStorageClassificationId: /Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09
          resourceGroupName: resourceGroupPS1
          resourceName: vault1
          storageClassificationMappingName: testStorageMapping
          storageClassificationName: 8891569e-aaef-4a46-a4a0-78c14f2d7b09
    

    Create ReplicationStorageClassificationMapping Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ReplicationStorageClassificationMapping(name: string, args: ReplicationStorageClassificationMappingArgs, opts?: CustomResourceOptions);
    @overload
    def ReplicationStorageClassificationMapping(resource_name: str,
                                                args: ReplicationStorageClassificationMappingArgs,
                                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReplicationStorageClassificationMapping(resource_name: str,
                                                opts: Optional[ResourceOptions] = None,
                                                fabric_name: Optional[str] = None,
                                                resource_group_name: Optional[str] = None,
                                                resource_name_: Optional[str] = None,
                                                storage_classification_name: Optional[str] = None,
                                                properties: Optional[StorageMappingInputPropertiesArgs] = None,
                                                storage_classification_mapping_name: Optional[str] = None)
    func NewReplicationStorageClassificationMapping(ctx *Context, name string, args ReplicationStorageClassificationMappingArgs, opts ...ResourceOption) (*ReplicationStorageClassificationMapping, error)
    public ReplicationStorageClassificationMapping(string name, ReplicationStorageClassificationMappingArgs args, CustomResourceOptions? opts = null)
    public ReplicationStorageClassificationMapping(String name, ReplicationStorageClassificationMappingArgs args)
    public ReplicationStorageClassificationMapping(String name, ReplicationStorageClassificationMappingArgs args, CustomResourceOptions options)
    
    type: azure-native:recoveryservices:ReplicationStorageClassificationMapping
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ReplicationStorageClassificationMappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ReplicationStorageClassificationMappingArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ReplicationStorageClassificationMappingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicationStorageClassificationMappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicationStorageClassificationMappingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var replicationStorageClassificationMappingResource = new AzureNative.RecoveryServices.ReplicationStorageClassificationMapping("replicationStorageClassificationMappingResource", new()
    {
        FabricName = "string",
        ResourceGroupName = "string",
        ResourceName = "string",
        StorageClassificationName = "string",
        Properties = new AzureNative.RecoveryServices.Inputs.StorageMappingInputPropertiesArgs
        {
            TargetStorageClassificationId = "string",
        },
        StorageClassificationMappingName = "string",
    });
    
    example, err := recoveryservices.NewReplicationStorageClassificationMapping(ctx, "replicationStorageClassificationMappingResource", &recoveryservices.ReplicationStorageClassificationMappingArgs{
    FabricName: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    ResourceName: pulumi.String("string"),
    StorageClassificationName: pulumi.String("string"),
    Properties: &recoveryservices.StorageMappingInputPropertiesArgs{
    TargetStorageClassificationId: pulumi.String("string"),
    },
    StorageClassificationMappingName: pulumi.String("string"),
    })
    
    var replicationStorageClassificationMappingResource = new ReplicationStorageClassificationMapping("replicationStorageClassificationMappingResource", ReplicationStorageClassificationMappingArgs.builder()
        .fabricName("string")
        .resourceGroupName("string")
        .resourceName("string")
        .storageClassificationName("string")
        .properties(StorageMappingInputPropertiesArgs.builder()
            .targetStorageClassificationId("string")
            .build())
        .storageClassificationMappingName("string")
        .build());
    
    replication_storage_classification_mapping_resource = azure_native.recoveryservices.ReplicationStorageClassificationMapping("replicationStorageClassificationMappingResource",
        fabric_name="string",
        resource_group_name="string",
        resource_name_="string",
        storage_classification_name="string",
        properties=azure_native.recoveryservices.StorageMappingInputPropertiesArgs(
            target_storage_classification_id="string",
        ),
        storage_classification_mapping_name="string")
    
    const replicationStorageClassificationMappingResource = new azure_native.recoveryservices.ReplicationStorageClassificationMapping("replicationStorageClassificationMappingResource", {
        fabricName: "string",
        resourceGroupName: "string",
        resourceName: "string",
        storageClassificationName: "string",
        properties: {
            targetStorageClassificationId: "string",
        },
        storageClassificationMappingName: "string",
    });
    
    type: azure-native:recoveryservices:ReplicationStorageClassificationMapping
    properties:
        fabricName: string
        properties:
            targetStorageClassificationId: string
        resourceGroupName: string
        resourceName: string
        storageClassificationMappingName: string
        storageClassificationName: string
    

    ReplicationStorageClassificationMapping Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ReplicationStorageClassificationMapping resource accepts the following input properties:

    FabricName string
    Fabric name.
    ResourceGroupName string
    The name of the resource group where the recovery services vault is present.
    ResourceName string
    The name of the recovery services vault.
    StorageClassificationName string
    Storage classification name.
    Properties Pulumi.AzureNative.RecoveryServices.Inputs.StorageMappingInputProperties
    Storage mapping input properties.
    StorageClassificationMappingName string
    Storage classification mapping name.
    FabricName string
    Fabric name.
    ResourceGroupName string
    The name of the resource group where the recovery services vault is present.
    ResourceName string
    The name of the recovery services vault.
    StorageClassificationName string
    Storage classification name.
    Properties StorageMappingInputPropertiesArgs
    Storage mapping input properties.
    StorageClassificationMappingName string
    Storage classification mapping name.
    fabricName String
    Fabric name.
    resourceGroupName String
    The name of the resource group where the recovery services vault is present.
    resourceName String
    The name of the recovery services vault.
    storageClassificationName String
    Storage classification name.
    properties StorageMappingInputProperties
    Storage mapping input properties.
    storageClassificationMappingName String
    Storage classification mapping name.
    fabricName string
    Fabric name.
    resourceGroupName string
    The name of the resource group where the recovery services vault is present.
    resourceName string
    The name of the recovery services vault.
    storageClassificationName string
    Storage classification name.
    properties StorageMappingInputProperties
    Storage mapping input properties.
    storageClassificationMappingName string
    Storage classification mapping name.
    fabric_name str
    Fabric name.
    resource_group_name str
    The name of the resource group where the recovery services vault is present.
    resource_name str
    The name of the recovery services vault.
    storage_classification_name str
    Storage classification name.
    properties StorageMappingInputPropertiesArgs
    Storage mapping input properties.
    storage_classification_mapping_name str
    Storage classification mapping name.
    fabricName String
    Fabric name.
    resourceGroupName String
    The name of the resource group where the recovery services vault is present.
    resourceName String
    The name of the recovery services vault.
    storageClassificationName String
    Storage classification name.
    properties Property Map
    Storage mapping input properties.
    storageClassificationMappingName String
    Storage classification mapping name.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ReplicationStorageClassificationMapping resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource Name
    Type string
    Resource Type
    Location string
    Resource Location
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource Name
    Type string
    Resource Type
    Location string
    Resource Location
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource Name
    type String
    Resource Type
    location String
    Resource Location
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource Name
    type string
    Resource Type
    location string
    Resource Location
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource Name
    type str
    Resource Type
    location str
    Resource Location
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource Name
    type String
    Resource Type
    location String
    Resource Location

    Supporting Types

    StorageClassificationMappingPropertiesResponse, StorageClassificationMappingPropertiesResponseArgs

    TargetStorageClassificationId string
    Target storage object Id.
    TargetStorageClassificationId string
    Target storage object Id.
    targetStorageClassificationId String
    Target storage object Id.
    targetStorageClassificationId string
    Target storage object Id.
    target_storage_classification_id str
    Target storage object Id.
    targetStorageClassificationId String
    Target storage object Id.

    StorageMappingInputProperties, StorageMappingInputPropertiesArgs

    TargetStorageClassificationId string
    The ID of the storage object.
    TargetStorageClassificationId string
    The ID of the storage object.
    targetStorageClassificationId String
    The ID of the storage object.
    targetStorageClassificationId string
    The ID of the storage object.
    target_storage_classification_id str
    The ID of the storage object.
    targetStorageClassificationId String
    The ID of the storage object.

    Import

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

    $ pulumi import azure-native:recoveryservices:ReplicationStorageClassificationMapping testStorageMapping /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationStorageClassifications/{storageClassificationName}/replicationStorageClassificationMappings/{storageClassificationMappingName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi