Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Recovery Services Vaults can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:recoveryservices/vault:Vault vault1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.RecoveryServices/vaults/vault1
* ```
*
*/
@ResourceType(type="azure:recoveryservices/vault:Vault")
public class Vault extends com.pulumi.resources.CustomResource {
/**
* Whether to enable the Classic experience for VMware replication. If set to `false` VMware machines will be protected using the new stateless ASR replication appliance. Changing this forces a new resource to be created.
*
*/
@Export(name="classicVmwareReplicationEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> classicVmwareReplicationEnabled;
/**
* @return Whether to enable the Classic experience for VMware replication. If set to `false` VMware machines will be protected using the new stateless ASR replication appliance. Changing this forces a new resource to be created.
*
*/
public Output> classicVmwareReplicationEnabled() {
return Codegen.optional(this.classicVmwareReplicationEnabled);
}
/**
* Is cross region restore enabled for this Vault? Only can be `true`, when `storage_mode_type` is `GeoRedundant`. Defaults to `false`.
*
* > **Note:** Once `cross_region_restore_enabled` is set to `true`, changing it back to `false` forces a new Recovery Service Vault to be created.
*
*/
@Export(name="crossRegionRestoreEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> crossRegionRestoreEnabled;
/**
* @return Is cross region restore enabled for this Vault? Only can be `true`, when `storage_mode_type` is `GeoRedundant`. Defaults to `false`.
*
* > **Note:** Once `cross_region_restore_enabled` is set to `true`, changing it back to `false` forces a new Recovery Service Vault to be created.
*
*/
public Output> crossRegionRestoreEnabled() {
return Codegen.optional(this.crossRegionRestoreEnabled);
}
/**
* An `encryption` block as defined below. Required with `identity`.
*
* !> **Note:** Once Encryption with your own key has been Enabled it's not possible to Disable it.
*
*/
@Export(name="encryption", refs={VaultEncryption.class}, tree="[0]")
private Output* @Nullable */ VaultEncryption> encryption;
/**
* @return An `encryption` block as defined below. Required with `identity`.
*
* !> **Note:** Once Encryption with your own key has been Enabled it's not possible to Disable it.
*
*/
public Output> encryption() {
return Codegen.optional(this.encryption);
}
/**
* An `identity` block as defined below.
*
*/
@Export(name="identity", refs={VaultIdentity.class}, tree="[0]")
private Output* @Nullable */ VaultIdentity> identity;
/**
* @return An `identity` block as defined below.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* Immutability Settings of vault, possible values include: `Locked`, `Unlocked` and `Disabled`.
*
* > **Note:** Once `immutability` is set to `Locked`, changing it to other values forces a new Recovery Services Vault to be created.
*
*/
@Export(name="immutability", refs={String.class}, tree="[0]")
private Output immutability;
/**
* @return Immutability Settings of vault, possible values include: `Locked`, `Unlocked` and `Disabled`.
*
* > **Note:** Once `immutability` is set to `Locked`, changing it to other values forces a new Recovery Services Vault to be created.
*
*/
public Output immutability() {
return this.immutability;
}
/**
* Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*
*/
public Output location() {
return this.location;
}
/**
* A `monitoring` block as defined below.
*
*/
@Export(name="monitoring", refs={VaultMonitoring.class}, tree="[0]")
private Output* @Nullable */ VaultMonitoring> monitoring;
/**
* @return A `monitoring` block as defined below.
*
*/
public Output> monitoring() {
return Codegen.optional(this.monitoring);
}
/**
* Specifies the name of the Recovery Services Vault. Recovery Service Vault name must be 2 - 50 characters long, start with a letter, contain only letters, numbers and hyphens. Changing this forces a new resource to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Specifies the name of the Recovery Services Vault. Recovery Service Vault name must be 2 - 50 characters long, start with a letter, contain only letters, numbers and hyphens. Changing this forces a new resource to be created.
*
*/
public Output name() {
return this.name;
}
/**
* Is it enabled to access the vault from public networks. Defaults to `true`.
*
*/
@Export(name="publicNetworkAccessEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> publicNetworkAccessEnabled;
/**
* @return Is it enabled to access the vault from public networks. Defaults to `true`.
*
*/
public Output> publicNetworkAccessEnabled() {
return Codegen.optional(this.publicNetworkAccessEnabled);
}
/**
* The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* Sets the vault's SKU. Possible values include: `Standard`, `RS0`.
*
*/
@Export(name="sku", refs={String.class}, tree="[0]")
private Output sku;
/**
* @return Sets the vault's SKU. Possible values include: `Standard`, `RS0`.
*
*/
public Output sku() {
return this.sku;
}
/**
* Is soft delete enable for this Vault? Defaults to `true`.
*
*/
@Export(name="softDeleteEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> softDeleteEnabled;
/**
* @return Is soft delete enable for this Vault? Defaults to `true`.
*
*/
public Output> softDeleteEnabled() {
return Codegen.optional(this.softDeleteEnabled);
}
/**
* The storage type of the Recovery Services Vault. Possible values are `GeoRedundant`, `LocallyRedundant` and `ZoneRedundant`. Defaults to `GeoRedundant`.
*
*/
@Export(name="storageModeType", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> storageModeType;
/**
* @return The storage type of the Recovery Services Vault. Possible values are `GeoRedundant`, `LocallyRedundant` and `ZoneRedundant`. Defaults to `GeoRedundant`.
*
*/
public Output> storageModeType() {
return Codegen.optional(this.storageModeType);
}
/**
* A mapping of tags to assign to the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags to assign to the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Vault(java.lang.String name) {
this(name, VaultArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Vault(java.lang.String name, VaultArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Vault(java.lang.String name, VaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:recoveryservices/vault:Vault", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Vault(java.lang.String name, Output id, @Nullable VaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:recoveryservices/vault:Vault", name, state, makeResourceOptions(options, id), false);
}
private static VaultArgs makeArgs(VaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? VaultArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Vault get(java.lang.String name, Output id, @Nullable VaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Vault(name, id, state, options);
}
}