azure-native-v2.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.
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
This property is required. string - The unique name of the resource.
- args
This property is required. ReplicationStorageClassificationMappingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. ReplicationStorageClassificationMappingArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ReplicationStorageClassificationMappingArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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 =
{
{ "targetStorageClassificationId", "string" },
},
StorageClassificationMappingName = "string",
});
example, err := recoveryservices.NewReplicationStorageClassificationMapping(ctx, "replicationStorageClassificationMappingResource", &recoveryservices.ReplicationStorageClassificationMappingArgs{
FabricName: "string",
ResourceGroupName: "string",
ResourceName: "string",
StorageClassificationName: "string",
Properties: map[string]interface{}{
"targetStorageClassificationId": "string",
},
StorageClassificationMappingName: "string",
})
var replicationStorageClassificationMappingResource = new ReplicationStorageClassificationMapping("replicationStorageClassificationMappingResource", ReplicationStorageClassificationMappingArgs.builder()
.fabricName("string")
.resourceGroupName("string")
.resourceName("string")
.storageClassificationName("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.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={
targetStorageClassificationId: 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 This property is required. Changes to this property will trigger replacement.
- Fabric name.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- Resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- Storage
Classification Name This property is required. Changes to this property will trigger replacement.
- Storage classification name.
- Properties
Pulumi.
Azure Native. Recovery Services. Inputs. Storage Mapping Input Properties - Storage mapping input properties.
- Storage
Classification Mapping Name Changes to this property will trigger replacement.
- Storage classification mapping name.
- Fabric
Name This property is required. Changes to this property will trigger replacement.
- Fabric name.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- Resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- Storage
Classification Name This property is required. Changes to this property will trigger replacement.
- Storage classification name.
- Properties
Storage
Mapping Input Properties Args - Storage mapping input properties.
- Storage
Classification Mapping Name Changes to this property will trigger replacement.
- Storage classification mapping name.
- fabric
Name This property is required. Changes to this property will trigger replacement.
- Fabric name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- storage
Classification Name This property is required. Changes to this property will trigger replacement.
- Storage classification name.
- properties
Storage
Mapping Input Properties - Storage mapping input properties.
- storage
Classification Mapping Name Changes to this property will trigger replacement.
- Storage classification mapping name.
- fabric
Name This property is required. Changes to this property will trigger replacement.
- Fabric name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- storage
Classification Name This property is required. Changes to this property will trigger replacement.
- Storage classification name.
- properties
Storage
Mapping Input Properties - Storage mapping input properties.
- storage
Classification Mapping Name Changes to this property will trigger replacement.
- Storage classification mapping name.
- fabric_
name This property is required. Changes to this property will trigger replacement.
- Fabric name.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- resource_
name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- storage_
classification_ name This property is required. Changes to this property will trigger replacement.
- Storage classification name.
- properties
Storage
Mapping Input Properties Args - Storage mapping input properties.
- storage_
classification_ mapping_ name Changes to this property will trigger replacement.
- Storage classification mapping name.
- fabric
Name This property is required. Changes to this property will trigger replacement.
- Fabric name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group where the recovery services vault is present.
- resource
Name This property is required. Changes to this property will trigger replacement.
- The name of the recovery services vault.
- storage
Classification Name This property is required. Changes to this property will trigger replacement.
- Storage classification name.
- properties Property Map
- Storage mapping input properties.
- storage
Classification Mapping Name Changes to this property will trigger replacement.
- 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-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0