azure-native.datareplication.Vault
Explore with Pulumi AI
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)
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:
- Resource
Group 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.
- Vault
Name string - The vault name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- Gets or sets the location of the vault.
- Properties
Vault
Model Properties Args - Vault properties.
- map[string]string
- Gets or sets the resource tags.
- Vault
Name string - The vault name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- Gets or sets the location of the vault.
- properties
Vault
Model Properties - Vault properties.
- Map<String,String>
- Gets or sets the resource tags.
- vault
Name String - The vault name.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- location string
- Gets or sets the location of the vault.
- properties
Vault
Model Properties - Vault properties.
- {[key: string]: string}
- Gets or sets the resource tags.
- vault
Name 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
Vault
Model Properties Args - Vault properties.
- Mapping[str, str]
- Gets or sets the resource tags.
- vault_
name str - The vault name.
- resource
Group 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.
- vault
Name 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.
- System
Data 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.
- System
Data 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.
- system
Data 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.
- system
Data 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.
- system
Data Property Map - type String
- Gets or sets the type of the resource.
Supporting Types
ReplicationVaultType, ReplicationVaultTypeArgs
- Disaster
Recovery - DisasterRecovery
- Migrate
- Migrate
- Replication
Vault Type Disaster Recovery - DisasterRecovery
- Replication
Vault Type Migrate - Migrate
- Disaster
Recovery - DisasterRecovery
- Migrate
- Migrate
- Disaster
Recovery - DisasterRecovery
- Migrate
- Migrate
- DISASTER_RECOVERY
- DisasterRecovery
- MIGRATE
- Migrate
- "Disaster
Recovery" - DisasterRecovery
- "Migrate"
- Migrate
VaultModelProperties, VaultModelPropertiesArgs
- Vault
Type string | Pulumi.Azure Native. Data Replication. Replication Vault Type - Gets or sets the type of vault.
- Vault
Type string | ReplicationVault Type - Gets or sets the type of vault.
- vault
Type String | ReplicationVault Type - Gets or sets the type of vault.
- vault
Type string | ReplicationVault Type - Gets or sets the type of vault.
- vault_
type str | ReplicationVault Type - Gets or sets the type of vault.
- vault
Type String | "DisasterRecovery" | "Migrate" - Gets or sets the type of vault.
VaultModelPropertiesResponse, VaultModelPropertiesResponseArgs
- Provisioning
State string - Gets or sets the provisioning state of the vault.
- Service
Resource stringId - Gets or sets the service resource Id.
- Vault
Type string - Gets or sets the type of vault.
- Provisioning
State string - Gets or sets the provisioning state of the vault.
- Service
Resource stringId - Gets or sets the service resource Id.
- Vault
Type string - Gets or sets the type of vault.
- provisioning
State String - Gets or sets the provisioning state of the vault.
- service
Resource StringId - Gets or sets the service resource Id.
- vault
Type String - Gets or sets the type of vault.
- provisioning
State string - Gets or sets the provisioning state of the vault.
- service
Resource stringId - Gets or sets the service resource Id.
- vault
Type 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.
- provisioning
State String - Gets or sets the provisioning state of the vault.
- service
Resource StringId - Gets or sets the service resource Id.
- vault
Type String - Gets or sets the type of vault.
VaultModelResponseSystemData, VaultModelResponseSystemDataArgs
- Created
At string - Gets or sets the timestamp of resource creation (UTC).
- Created
By string - Gets or sets identity that created the resource.
- Created
By stringType - Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- Last
Modified stringAt - Gets or sets the timestamp of resource last modification (UTC).
- Last
Modified stringBy - Gets or sets the identity that last modified the resource.
- Last
Modified stringBy Type - Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
- Created
At string - Gets or sets the timestamp of resource creation (UTC).
- Created
By string - Gets or sets identity that created the resource.
- Created
By stringType - Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- Last
Modified stringAt - Gets or sets the timestamp of resource last modification (UTC).
- Last
Modified stringBy - Gets or sets the identity that last modified the resource.
- Last
Modified stringBy Type - Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
- created
At String - Gets or sets the timestamp of resource creation (UTC).
- created
By String - Gets or sets identity that created the resource.
- created
By StringType - Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- last
Modified StringAt - Gets or sets the timestamp of resource last modification (UTC).
- last
Modified StringBy - Gets or sets the identity that last modified the resource.
- last
Modified StringBy Type - Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
- created
At string - Gets or sets the timestamp of resource creation (UTC).
- created
By string - Gets or sets identity that created the resource.
- created
By stringType - Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- last
Modified stringAt - Gets or sets the timestamp of resource last modification (UTC).
- last
Modified stringBy - Gets or sets the identity that last modified the resource.
- last
Modified 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.
- created
At String - Gets or sets the timestamp of resource creation (UTC).
- created
By String - Gets or sets identity that created the resource.
- created
By StringType - Gets or sets the type of identity that created the resource: user, application, managedIdentity.
- last
Modified StringAt - Gets or sets the timestamp of resource last modification (UTC).
- last
Modified StringBy - Gets or sets the identity that last modified the resource.
- last
Modified 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