azure-native.recoveryservices.ReplicationStorageClassificationMapping
Explore with Pulumi AI
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, 2024-10-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={
"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={
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ReplicationStorageClassificationMapping resource accepts the following input properties:
- Fabric
Name string - Fabric name.
- Resource
Group stringName - The name of the resource group where the recovery services vault is present.
- Resource
Name string - The name of the recovery services vault.
- Storage
Classification stringName - Storage classification name.
- Properties
Pulumi.
Azure Native. Recovery Services. Inputs. Storage Mapping Input Properties - Storage mapping input properties.
- Storage
Classification stringMapping Name - Storage classification mapping name.
- Fabric
Name string - Fabric name.
- Resource
Group stringName - The name of the resource group where the recovery services vault is present.
- Resource
Name string - The name of the recovery services vault.
- Storage
Classification stringName - Storage classification name.
- Properties
Storage
Mapping Input Properties Args - Storage mapping input properties.
- Storage
Classification stringMapping Name - Storage classification mapping name.
- fabric
Name String - Fabric name.
- resource
Group StringName - The name of the resource group where the recovery services vault is present.
- resource
Name String - The name of the recovery services vault.
- storage
Classification StringName - Storage classification name.
- properties
Storage
Mapping Input Properties - Storage mapping input properties.
- storage
Classification StringMapping Name - Storage classification mapping name.
- fabric
Name string - Fabric name.
- resource
Group stringName - The name of the resource group where the recovery services vault is present.
- resource
Name string - The name of the recovery services vault.
- storage
Classification stringName - Storage classification name.
- properties
Storage
Mapping Input Properties - Storage mapping input properties.
- storage
Classification stringMapping Name - Storage classification mapping name.
- fabric_
name str - Fabric name.
- resource_
group_ strname - 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_ strname - Storage classification name.
- properties
Storage
Mapping Input Properties Args - Storage mapping input properties.
- storage_
classification_ strmapping_ name - Storage classification mapping name.
- fabric
Name String - Fabric name.
- resource
Group StringName - The name of the resource group where the recovery services vault is present.
- resource
Name String - The name of the recovery services vault.
- storage
Classification StringName - Storage classification name.
- properties Property Map
- Storage mapping input properties.
- storage
Classification StringMapping Name - Storage classification mapping name.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReplicationStorageClassificationMapping resource produces the following output properties:
Supporting Types
StorageClassificationMappingPropertiesResponse, StorageClassificationMappingPropertiesResponseArgs
- Target
Storage stringClassification Id - Target storage object Id.
- Target
Storage stringClassification Id - Target storage object Id.
- target
Storage StringClassification Id - Target storage object Id.
- target
Storage stringClassification Id - Target storage object Id.
- target_
storage_ strclassification_ id - Target storage object Id.
- target
Storage StringClassification Id - Target storage object Id.
StorageMappingInputProperties, StorageMappingInputPropertiesArgs
- Target
Storage stringClassification Id - The ID of the storage object.
- Target
Storage stringClassification Id - The ID of the storage object.
- target
Storage StringClassification Id - The ID of the storage object.
- target
Storage stringClassification Id - The ID of the storage object.
- target_
storage_ strclassification_ id - The ID of the storage object.
- target
Storage StringClassification Id - 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