Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupVaultArgs ¶
type LookupVaultArgs struct { // Specifies the name of the Recovery Services Vault. Name string `pulumi:"name"` // The name of the resource group in which the Recovery Services Vault resides. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getVault.
type LookupVaultResult ¶
type LookupVaultResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Azure location where the resource resides. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The vault's current SKU. Sku string `pulumi:"sku"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getVault.
func LookupVault ¶
func LookupVault(ctx *pulumi.Context, args *LookupVaultArgs, opts ...pulumi.InvokeOption) (*LookupVaultResult, error)
Use this data source to access information about an existing Recovery Services Vault.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/recoveryservices" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := recoveryservices.LookupVault(ctx, &recoveryservices.LookupVaultArgs{ Name: "tfex-recovery_vault", ResourceGroupName: "tfex-resource_group", }, nil) if err != nil { return err } return nil }) }
```
type Vault ¶
type Vault struct { pulumi.CustomResourceState // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of the Recovery Services Vault. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Sets the vault's SKU. Possible values include: `Standard`, `RS0`. Sku pulumi.StringOutput `pulumi:"sku"` // Is soft delete enable for this Vault? Defaults to `true`. SoftDeleteEnabled pulumi.BoolPtrOutput `pulumi:"softDeleteEnabled"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages an Recovery Services Vault.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/recoveryservices" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { rg, err := core.NewResourceGroup(ctx, "rg", &core.ResourceGroupArgs{ Location: pulumi.String("West US"), }) if err != nil { return err } _, err = recoveryservices.NewVault(ctx, "vault", &recoveryservices.VaultArgs{ Location: rg.Location, ResourceGroupName: rg.Name, Sku: pulumi.String("Standard"), SoftDeleteEnabled: pulumi.Bool(true), }) if err != nil { return err } return nil }) }
```
func GetVault ¶
func GetVault(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VaultState, opts ...pulumi.ResourceOption) (*Vault, error)
GetVault gets an existing Vault resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
type VaultArgs ¶
type VaultArgs struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Recovery Services Vault. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Sets the vault's SKU. Possible values include: `Standard`, `RS0`. Sku pulumi.StringInput // Is soft delete enable for this Vault? Defaults to `true`. SoftDeleteEnabled pulumi.BoolPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a Vault resource.
func (VaultArgs) ElementType ¶
type VaultState ¶
type VaultState struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Recovery Services Vault. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Sets the vault's SKU. Possible values include: `Standard`, `RS0`. Sku pulumi.StringPtrInput // Is soft delete enable for this Vault? Defaults to `true`. SoftDeleteEnabled pulumi.BoolPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (VaultState) ElementType ¶
func (VaultState) ElementType() reflect.Type
Click to show internal directories.
Click to hide internal directories.