azure-native.datareplication.Vault
Explore with Pulumi AI
Vault model.
Uses Azure REST API version 2021-02-16-preview.
Other available API versions: 2024-09-01.
Example Usage
Vault_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var vault = new AzureNative.DataReplication.Vault("vault", new()
    {
        Location = "eck",
        Properties = new AzureNative.DataReplication.Inputs.VaultModelPropertiesArgs
        {
            VaultType = AzureNative.DataReplication.ReplicationVaultType.DisasterRecovery,
        },
        ResourceGroupName = "rgrecoveryservicesdatareplication",
        Tags = 
        {
            { "key5359", "ljfilxolxzuxrauopwtyxghrp" },
        },
        VaultName = "4",
    });
});
package main
import (
	datareplication "github.com/pulumi/pulumi-azure-native-sdk/datareplication/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datareplication.NewVault(ctx, "vault", &datareplication.VaultArgs{
			Location: pulumi.String("eck"),
			Properties: &datareplication.VaultModelPropertiesArgs{
				VaultType: pulumi.String(datareplication.ReplicationVaultTypeDisasterRecovery),
			},
			ResourceGroupName: pulumi.String("rgrecoveryservicesdatareplication"),
			Tags: pulumi.StringMap{
				"key5359": pulumi.String("ljfilxolxzuxrauopwtyxghrp"),
			},
			VaultName: pulumi.String("4"),
		})
		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.datareplication.Vault;
import com.pulumi.azurenative.datareplication.VaultArgs;
import com.pulumi.azurenative.datareplication.inputs.VaultModelPropertiesArgs;
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 vault = new Vault("vault", VaultArgs.builder()
            .location("eck")
            .properties(VaultModelPropertiesArgs.builder()
                .vaultType("DisasterRecovery")
                .build())
            .resourceGroupName("rgrecoveryservicesdatareplication")
            .tags(Map.of("key5359", "ljfilxolxzuxrauopwtyxghrp"))
            .vaultName("4")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const vault = new azure_native.datareplication.Vault("vault", {
    location: "eck",
    properties: {
        vaultType: azure_native.datareplication.ReplicationVaultType.DisasterRecovery,
    },
    resourceGroupName: "rgrecoveryservicesdatareplication",
    tags: {
        key5359: "ljfilxolxzuxrauopwtyxghrp",
    },
    vaultName: "4",
});
import pulumi
import pulumi_azure_native as azure_native
vault = azure_native.datareplication.Vault("vault",
    location="eck",
    properties={
        "vault_type": azure_native.datareplication.ReplicationVaultType.DISASTER_RECOVERY,
    },
    resource_group_name="rgrecoveryservicesdatareplication",
    tags={
        "key5359": "ljfilxolxzuxrauopwtyxghrp",
    },
    vault_name="4")
resources:
  vault:
    type: azure-native:datareplication:Vault
    properties:
      location: eck
      properties:
        vaultType: DisasterRecovery
      resourceGroupName: rgrecoveryservicesdatareplication
      tags:
        key5359: ljfilxolxzuxrauopwtyxghrp
      vaultName: '4'
Create Vault Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Vault(name: string, args: VaultArgs, opts?: CustomResourceOptions);@overload
def Vault(resource_name: str,
          args: VaultArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def Vault(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          resource_group_name: Optional[str] = None,
          location: Optional[str] = None,
          properties: Optional[VaultModelPropertiesArgs] = None,
          tags: Optional[Mapping[str, str]] = None,
          vault_name: Optional[str] = None)func NewVault(ctx *Context, name string, args VaultArgs, opts ...ResourceOption) (*Vault, error)public Vault(string name, VaultArgs args, CustomResourceOptions? opts = null)type: azure-native:datareplication:Vault
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 VaultArgs
- 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 VaultArgs
- 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 VaultArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VaultArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VaultArgs
- 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 vaultResource = new AzureNative.DataReplication.Vault("vaultResource", new()
{
    ResourceGroupName = "string",
    Location = "string",
    Properties = new AzureNative.DataReplication.Inputs.VaultModelPropertiesArgs
    {
        VaultType = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
    VaultName = "string",
});
example, err := datareplication.NewVault(ctx, "vaultResource", &datareplication.VaultArgs{
	ResourceGroupName: pulumi.String("string"),
	Location:          pulumi.String("string"),
	Properties: &datareplication.VaultModelPropertiesArgs{
		VaultType: pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	VaultName: pulumi.String("string"),
})
var vaultResource = new Vault("vaultResource", VaultArgs.builder()
    .resourceGroupName("string")
    .location("string")
    .properties(VaultModelPropertiesArgs.builder()
        .vaultType("string")
        .build())
    .tags(Map.of("string", "string"))
    .vaultName("string")
    .build());
vault_resource = azure_native.datareplication.Vault("vaultResource",
    resource_group_name="string",
    location="string",
    properties={
        "vault_type": "string",
    },
    tags={
        "string": "string",
    },
    vault_name="string")
const vaultResource = new azure_native.datareplication.Vault("vaultResource", {
    resourceGroupName: "string",
    location: "string",
    properties: {
        vaultType: "string",
    },
    tags: {
        string: "string",
    },
    vaultName: "string",
});
type: azure-native:datareplication:Vault
properties:
    location: string
    properties:
        vaultType: string
    resourceGroupName: string
    tags:
        string: string
    vaultName: string
Vault 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 Vault resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Location string
- Gets or sets the location of the vault.
- Properties
Pulumi.Azure Native. Data Replication. Inputs. Vault Model Properties 
- Vault properties.
- Dictionary<string, string>
- Gets or sets the resource tags.
- VaultName string
- The vault name.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Location string
- Gets or sets the location of the vault.
- Properties
VaultModel Properties Args 
- Vault properties.
- map[string]string
- Gets or sets the resource tags.
- VaultName string
- The vault name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- location String
- Gets or sets the location of the vault.
- properties
VaultModel Properties 
- Vault properties.
- Map<String,String>
- Gets or sets the resource tags.
- vaultName String
- The vault name.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- location string
- Gets or sets the location of the vault.
- properties
VaultModel Properties 
- Vault properties.
- {[key: string]: string}
- Gets or sets the resource tags.
- vaultName string
- The vault name.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- location str
- Gets or sets the location of the vault.
- properties
VaultModel Properties Args 
- Vault properties.
- Mapping[str, str]
- Gets or sets the resource tags.
- vault_name str
- The vault name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- location String
- Gets or sets the location of the vault.
- properties Property Map
- Vault properties.
- Map<String>
- Gets or sets the resource tags.
- vaultName String
- The vault name.
Outputs
All input properties are implicitly available as output properties. Additionally, the Vault resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Gets or sets the name of the resource.
- SystemData Pulumi.Azure Native. Data Replication. Outputs. Vault Model Response System Data 
- Type string
- Gets or sets the type of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Gets or sets the name of the resource.
- SystemData VaultModel Response System Data 
- Type string
- Gets or sets the type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Gets or sets the name of the resource.
- systemData VaultModel Response System Data 
- type String
- Gets or sets the type of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Gets or sets the name of the resource.
- systemData VaultModel Response System Data 
- type string
- Gets or sets the type of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Gets or sets the name of the resource.
- system_data VaultModel Response System Data 
- type str
- Gets or sets the type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Gets or sets the name of the resource.
- systemData Property Map
- type String
- Gets or sets the type of the resource.
Supporting Types
ReplicationVaultType, ReplicationVaultTypeArgs      
- DisasterRecovery 
- DisasterRecovery
- Migrate
- Migrate
- ReplicationVault Type Disaster Recovery 
- DisasterRecovery
- ReplicationVault Type Migrate 
- Migrate
- DisasterRecovery 
- DisasterRecovery
- Migrate
- Migrate
- DisasterRecovery 
- DisasterRecovery
- Migrate
- Migrate
- DISASTER_RECOVERY
- DisasterRecovery
- MIGRATE
- Migrate
- "DisasterRecovery" 
- DisasterRecovery
- "Migrate"
- Migrate
VaultModelProperties, VaultModelPropertiesArgs      
- VaultType string | Pulumi.Azure Native. Data Replication. Replication Vault Type 
- Gets or sets the type of vault.
- VaultType string | ReplicationVault Type 
- Gets or sets the type of vault.
- vaultType String | ReplicationVault Type 
- Gets or sets the type of vault.
- vaultType string | ReplicationVault Type 
- Gets or sets the type of vault.
- vault_type str | ReplicationVault Type 
- Gets or sets the type of vault.
- vaultType String | "DisasterRecovery" | "Migrate" 
- Gets or sets the type of vault.
VaultModelPropertiesResponse, VaultModelPropertiesResponseArgs        
- ProvisioningState string
- Gets or sets the provisioning state of the vault.
- ServiceResource stringId 
- Gets or sets the service resource Id.
- VaultType string
- Gets or sets the type of vault.
- ProvisioningState string
- Gets or sets the provisioning state of the vault.
- ServiceResource stringId 
- Gets or sets the service resource Id.
- VaultType string
- Gets or sets the type of vault.
- provisioningState String
- Gets or sets the provisioning state of the vault.
- serviceResource StringId 
- Gets or sets the service resource Id.
- vaultType String
- Gets or sets the type of vault.
- provisioningState string
- Gets or sets the provisioning state of the vault.
- serviceResource stringId 
- Gets or sets the service resource Id.
- vaultType string
- Gets or sets the type of vault.
- provisioning_state str
- Gets or sets the provisioning state of the vault.
- service_resource_ strid 
- Gets or sets the service resource Id.
- vault_type str
- Gets or sets the type of vault.
- provisioningState String
- Gets or sets the provisioning state of the vault.
- serviceResource StringId 
- Gets or sets the service resource Id.
- vaultType String
- Gets or sets the type of vault.
VaultModelResponseSystemData, VaultModelResponseSystemDataArgs          
- CreatedAt string
- Gets or sets the timestamp of resource creation (UTC).
- CreatedBy string
- Gets or sets identity that created the resource.
- CreatedBy stringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- LastModified stringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- LastModified stringBy 
- Gets or sets the identity that last modified the resource.
- LastModified stringBy Type 
- Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
- CreatedAt string
- Gets or sets the timestamp of resource creation (UTC).
- CreatedBy string
- Gets or sets identity that created the resource.
- CreatedBy stringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- LastModified stringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- LastModified stringBy 
- Gets or sets the identity that last modified the resource.
- LastModified stringBy Type 
- Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
- createdAt String
- Gets or sets the timestamp of resource creation (UTC).
- createdBy String
- Gets or sets identity that created the resource.
- createdBy StringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- lastModified StringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- lastModified StringBy 
- Gets or sets the identity that last modified the resource.
- lastModified StringBy Type 
- Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
- createdAt string
- Gets or sets the timestamp of resource creation (UTC).
- createdBy string
- Gets or sets identity that created the resource.
- createdBy stringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- lastModified stringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- lastModified stringBy 
- Gets or sets the identity that last modified the resource.
- lastModified stringBy Type 
- Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
- created_at str
- Gets or sets the timestamp of resource creation (UTC).
- created_by str
- Gets or sets identity that created the resource.
- created_by_ strtype 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- last_modified_ strat 
- Gets or sets the timestamp of resource last modification (UTC).
- last_modified_ strby 
- Gets or sets the identity that last modified the resource.
- last_modified_ strby_ type 
- Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
- createdAt String
- Gets or sets the timestamp of resource creation (UTC).
- createdBy String
- Gets or sets identity that created the resource.
- createdBy StringType 
- Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- lastModified StringAt 
- Gets or sets the timestamp of resource last modification (UTC).
- lastModified StringBy 
- Gets or sets the identity that last modified the resource.
- lastModified StringBy Type 
- Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:datareplication:Vault bqgyqxmnlgwqxbmajddqwtao /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0