azure-native.recoveryservices.ReplicationStorageClassificationMapping

Explore with Pulumi AI

Storage mapping object. API Version: 2018-07-10.

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"
	"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 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(Map.of("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")
            .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

new ReplicationStorageClassificationMapping(name: string, args: ReplicationStorageClassificationMappingArgs, opts?: CustomResourceOptions);
@overload
def ReplicationStorageClassificationMapping(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            fabric_name: Optional[str] = None,
                                            properties: Optional[StorageMappingInputPropertiesArgs] = None,
                                            resource_group_name: Optional[str] = None,
                                            resource_name_: Optional[str] = None,
                                            storage_classification_mapping_name: Optional[str] = None,
                                            storage_classification_name: Optional[str] = None)
@overload
def ReplicationStorageClassificationMapping(resource_name: str,
                                            args: ReplicationStorageClassificationMappingArgs,
                                            opts: Optional[ResourceOptions] = 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.

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.

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.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 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 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 StorageMappingInputPropertiesArgs

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

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

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/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09/replicationStorageClassificationMappings/testStorageMapping 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0