1. Packages
  2. Azure Native
  3. API Docs
  4. datareplication
  5. Vault
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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.datareplication.Vault

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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Vault model. Azure REST API version: 2021-02-16-preview.

    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 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")
    
    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",
    });
    
    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)
    public Vault(String name, VaultArgs args)
    public Vault(String name, VaultArgs args, CustomResourceOptions options)
    
    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:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    Gets or sets the location of the vault.
    Properties Pulumi.AzureNative.DataReplication.Inputs.VaultModelProperties
    Vault properties.
    Tags Dictionary<string, string>
    Gets or sets the resource tags.
    VaultName string
    The vault name.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    Gets or sets the location of the vault.
    Properties VaultModelPropertiesArgs
    Vault properties.
    Tags map[string]string
    Gets or sets the resource tags.
    VaultName string
    The vault name.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    location String
    Gets or sets the location of the vault.
    properties VaultModelProperties
    Vault properties.
    tags Map<String,String>
    Gets or sets the resource tags.
    vaultName String
    The vault name.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    location string
    Gets or sets the location of the vault.
    properties VaultModelProperties
    Vault properties.
    tags {[key: string]: string}
    Gets or sets the resource tags.
    vaultName string
    The vault name.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    location str
    Gets or sets the location of the vault.
    properties VaultModelPropertiesArgs
    Vault properties.
    tags Mapping[str, str]
    Gets or sets the resource tags.
    vault_name str
    The vault name.
    resourceGroupName String
    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.
    tags 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.AzureNative.DataReplication.Outputs.VaultModelResponseSystemData
    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 VaultModelResponseSystemData
    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 VaultModelResponseSystemData
    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 VaultModelResponseSystemData
    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 VaultModelResponseSystemData
    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
    ReplicationVaultTypeDisasterRecovery
    DisasterRecovery
    ReplicationVaultTypeMigrate
    Migrate
    DisasterRecovery
    DisasterRecovery
    Migrate
    Migrate
    DisasterRecovery
    DisasterRecovery
    Migrate
    Migrate
    DISASTER_RECOVERY
    DisasterRecovery
    MIGRATE
    Migrate
    "DisasterRecovery"
    DisasterRecovery
    "Migrate"
    Migrate

    VaultModelProperties, VaultModelPropertiesArgs

    VaultType string | ReplicationVaultType
    Gets or sets the type of vault.
    vaultType String | ReplicationVaultType
    Gets or sets the type of vault.
    vaultType string | ReplicationVaultType
    Gets or sets the type of vault.
    vault_type str | ReplicationVaultType
    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.
    ServiceResourceId string
    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.
    ServiceResourceId string
    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.
    serviceResourceId String
    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.
    serviceResourceId string
    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_id str
    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.
    serviceResourceId String
    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.
    CreatedByType string
    Gets or sets the type of identity that created the resource: user, application, managedIdentity.
    LastModifiedAt string
    Gets or sets the timestamp of resource last modification (UTC).
    LastModifiedBy string
    Gets or sets the identity that last modified the resource.
    LastModifiedByType string
    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.
    CreatedByType string
    Gets or sets the type of identity that created the resource: user, application, managedIdentity.
    LastModifiedAt string
    Gets or sets the timestamp of resource last modification (UTC).
    LastModifiedBy string
    Gets or sets the identity that last modified the resource.
    LastModifiedByType string
    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.
    createdByType String
    Gets or sets the type of identity that created the resource: user, application, managedIdentity.
    lastModifiedAt String
    Gets or sets the timestamp of resource last modification (UTC).
    lastModifiedBy String
    Gets or sets the identity that last modified the resource.
    lastModifiedByType String
    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.
    createdByType string
    Gets or sets the type of identity that created the resource: user, application, managedIdentity.
    lastModifiedAt string
    Gets or sets the timestamp of resource last modification (UTC).
    lastModifiedBy string
    Gets or sets the identity that last modified the resource.
    lastModifiedByType string
    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_type str
    Gets or sets the type of identity that created the resource: user, application, managedIdentity.
    last_modified_at str
    Gets or sets the timestamp of resource last modification (UTC).
    last_modified_by str
    Gets or sets the identity that last modified the resource.
    last_modified_by_type str
    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.
    createdByType String
    Gets or sets the type of identity that created the resource: user, application, managedIdentity.
    lastModifiedAt String
    Gets or sets the timestamp of resource last modification (UTC).
    lastModifiedBy String
    Gets or sets the identity that last modified the resource.
    lastModifiedByType String
    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
    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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi