recoveryservices

package
v3.55.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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

	// An `identity` block as defined below.
	Identity VaultIdentityPtrOutput `pulumi:"identity"`
	// 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 a 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 Europe"),
		})
		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
	})
}

```

## 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

```

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).

func NewVault

func NewVault(ctx *pulumi.Context,
	name string, args *VaultArgs, opts ...pulumi.ResourceOption) (*Vault, error)

NewVault registers a new resource with the given unique name, arguments, and options.

func (*Vault) ElementType added in v3.31.1

func (*Vault) ElementType() reflect.Type

func (*Vault) ToVaultOutput added in v3.31.1

func (i *Vault) ToVaultOutput() VaultOutput

func (*Vault) ToVaultOutputWithContext added in v3.31.1

func (i *Vault) ToVaultOutputWithContext(ctx context.Context) VaultOutput

func (*Vault) ToVaultPtrOutput added in v3.47.1

func (i *Vault) ToVaultPtrOutput() VaultPtrOutput

func (*Vault) ToVaultPtrOutputWithContext added in v3.47.1

func (i *Vault) ToVaultPtrOutputWithContext(ctx context.Context) VaultPtrOutput

type VaultArgs

type VaultArgs struct {
	// An `identity` block as defined below.
	Identity VaultIdentityPtrInput
	// 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

func (VaultArgs) ElementType() reflect.Type

type VaultArray added in v3.47.1

type VaultArray []VaultInput

func (VaultArray) ElementType added in v3.47.1

func (VaultArray) ElementType() reflect.Type

func (VaultArray) ToVaultArrayOutput added in v3.47.1

func (i VaultArray) ToVaultArrayOutput() VaultArrayOutput

func (VaultArray) ToVaultArrayOutputWithContext added in v3.47.1

func (i VaultArray) ToVaultArrayOutputWithContext(ctx context.Context) VaultArrayOutput

type VaultArrayInput added in v3.47.1

type VaultArrayInput interface {
	pulumi.Input

	ToVaultArrayOutput() VaultArrayOutput
	ToVaultArrayOutputWithContext(context.Context) VaultArrayOutput
}

VaultArrayInput is an input type that accepts VaultArray and VaultArrayOutput values. You can construct a concrete instance of `VaultArrayInput` via:

VaultArray{ VaultArgs{...} }

type VaultArrayOutput added in v3.47.1

type VaultArrayOutput struct{ *pulumi.OutputState }

func (VaultArrayOutput) ElementType added in v3.47.1

func (VaultArrayOutput) ElementType() reflect.Type

func (VaultArrayOutput) Index added in v3.47.1

func (VaultArrayOutput) ToVaultArrayOutput added in v3.47.1

func (o VaultArrayOutput) ToVaultArrayOutput() VaultArrayOutput

func (VaultArrayOutput) ToVaultArrayOutputWithContext added in v3.47.1

func (o VaultArrayOutput) ToVaultArrayOutputWithContext(ctx context.Context) VaultArrayOutput

type VaultIdentity added in v3.40.0

type VaultIdentity struct {
	PrincipalId *string `pulumi:"principalId"`
	TenantId    *string `pulumi:"tenantId"`
	// The Type of Identity which should be used for this Recovery Services Vault. At this time the only possible value is `SystemAssigned`.
	Type string `pulumi:"type"`
}

type VaultIdentityArgs added in v3.40.0

type VaultIdentityArgs struct {
	PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
	TenantId    pulumi.StringPtrInput `pulumi:"tenantId"`
	// The Type of Identity which should be used for this Recovery Services Vault. At this time the only possible value is `SystemAssigned`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (VaultIdentityArgs) ElementType added in v3.40.0

func (VaultIdentityArgs) ElementType() reflect.Type

func (VaultIdentityArgs) ToVaultIdentityOutput added in v3.40.0

func (i VaultIdentityArgs) ToVaultIdentityOutput() VaultIdentityOutput

func (VaultIdentityArgs) ToVaultIdentityOutputWithContext added in v3.40.0

func (i VaultIdentityArgs) ToVaultIdentityOutputWithContext(ctx context.Context) VaultIdentityOutput

func (VaultIdentityArgs) ToVaultIdentityPtrOutput added in v3.40.0

func (i VaultIdentityArgs) ToVaultIdentityPtrOutput() VaultIdentityPtrOutput

func (VaultIdentityArgs) ToVaultIdentityPtrOutputWithContext added in v3.40.0

func (i VaultIdentityArgs) ToVaultIdentityPtrOutputWithContext(ctx context.Context) VaultIdentityPtrOutput

type VaultIdentityInput added in v3.40.0

type VaultIdentityInput interface {
	pulumi.Input

	ToVaultIdentityOutput() VaultIdentityOutput
	ToVaultIdentityOutputWithContext(context.Context) VaultIdentityOutput
}

VaultIdentityInput is an input type that accepts VaultIdentityArgs and VaultIdentityOutput values. You can construct a concrete instance of `VaultIdentityInput` via:

VaultIdentityArgs{...}

type VaultIdentityOutput added in v3.40.0

type VaultIdentityOutput struct{ *pulumi.OutputState }

func (VaultIdentityOutput) ElementType added in v3.40.0

func (VaultIdentityOutput) ElementType() reflect.Type

func (VaultIdentityOutput) PrincipalId added in v3.40.0

func (o VaultIdentityOutput) PrincipalId() pulumi.StringPtrOutput

func (VaultIdentityOutput) TenantId added in v3.40.0

func (VaultIdentityOutput) ToVaultIdentityOutput added in v3.40.0

func (o VaultIdentityOutput) ToVaultIdentityOutput() VaultIdentityOutput

func (VaultIdentityOutput) ToVaultIdentityOutputWithContext added in v3.40.0

func (o VaultIdentityOutput) ToVaultIdentityOutputWithContext(ctx context.Context) VaultIdentityOutput

func (VaultIdentityOutput) ToVaultIdentityPtrOutput added in v3.40.0

func (o VaultIdentityOutput) ToVaultIdentityPtrOutput() VaultIdentityPtrOutput

func (VaultIdentityOutput) ToVaultIdentityPtrOutputWithContext added in v3.40.0

func (o VaultIdentityOutput) ToVaultIdentityPtrOutputWithContext(ctx context.Context) VaultIdentityPtrOutput

func (VaultIdentityOutput) Type added in v3.40.0

The Type of Identity which should be used for this Recovery Services Vault. At this time the only possible value is `SystemAssigned`.

type VaultIdentityPtrInput added in v3.40.0

type VaultIdentityPtrInput interface {
	pulumi.Input

	ToVaultIdentityPtrOutput() VaultIdentityPtrOutput
	ToVaultIdentityPtrOutputWithContext(context.Context) VaultIdentityPtrOutput
}

VaultIdentityPtrInput is an input type that accepts VaultIdentityArgs, VaultIdentityPtr and VaultIdentityPtrOutput values. You can construct a concrete instance of `VaultIdentityPtrInput` via:

        VaultIdentityArgs{...}

or:

        nil

func VaultIdentityPtr added in v3.40.0

func VaultIdentityPtr(v *VaultIdentityArgs) VaultIdentityPtrInput

type VaultIdentityPtrOutput added in v3.40.0

type VaultIdentityPtrOutput struct{ *pulumi.OutputState }

func (VaultIdentityPtrOutput) Elem added in v3.40.0

func (VaultIdentityPtrOutput) ElementType added in v3.40.0

func (VaultIdentityPtrOutput) ElementType() reflect.Type

func (VaultIdentityPtrOutput) PrincipalId added in v3.40.0

func (VaultIdentityPtrOutput) TenantId added in v3.40.0

func (VaultIdentityPtrOutput) ToVaultIdentityPtrOutput added in v3.40.0

func (o VaultIdentityPtrOutput) ToVaultIdentityPtrOutput() VaultIdentityPtrOutput

func (VaultIdentityPtrOutput) ToVaultIdentityPtrOutputWithContext added in v3.40.0

func (o VaultIdentityPtrOutput) ToVaultIdentityPtrOutputWithContext(ctx context.Context) VaultIdentityPtrOutput

func (VaultIdentityPtrOutput) Type added in v3.40.0

The Type of Identity which should be used for this Recovery Services Vault. At this time the only possible value is `SystemAssigned`.

type VaultInput added in v3.31.1

type VaultInput interface {
	pulumi.Input

	ToVaultOutput() VaultOutput
	ToVaultOutputWithContext(ctx context.Context) VaultOutput
}

type VaultMap added in v3.47.1

type VaultMap map[string]VaultInput

func (VaultMap) ElementType added in v3.47.1

func (VaultMap) ElementType() reflect.Type

func (VaultMap) ToVaultMapOutput added in v3.47.1

func (i VaultMap) ToVaultMapOutput() VaultMapOutput

func (VaultMap) ToVaultMapOutputWithContext added in v3.47.1

func (i VaultMap) ToVaultMapOutputWithContext(ctx context.Context) VaultMapOutput

type VaultMapInput added in v3.47.1

type VaultMapInput interface {
	pulumi.Input

	ToVaultMapOutput() VaultMapOutput
	ToVaultMapOutputWithContext(context.Context) VaultMapOutput
}

VaultMapInput is an input type that accepts VaultMap and VaultMapOutput values. You can construct a concrete instance of `VaultMapInput` via:

VaultMap{ "key": VaultArgs{...} }

type VaultMapOutput added in v3.47.1

type VaultMapOutput struct{ *pulumi.OutputState }

func (VaultMapOutput) ElementType added in v3.47.1

func (VaultMapOutput) ElementType() reflect.Type

func (VaultMapOutput) MapIndex added in v3.47.1

func (VaultMapOutput) ToVaultMapOutput added in v3.47.1

func (o VaultMapOutput) ToVaultMapOutput() VaultMapOutput

func (VaultMapOutput) ToVaultMapOutputWithContext added in v3.47.1

func (o VaultMapOutput) ToVaultMapOutputWithContext(ctx context.Context) VaultMapOutput

type VaultOutput added in v3.31.1

type VaultOutput struct {
	*pulumi.OutputState
}

func (VaultOutput) ElementType added in v3.31.1

func (VaultOutput) ElementType() reflect.Type

func (VaultOutput) ToVaultOutput added in v3.31.1

func (o VaultOutput) ToVaultOutput() VaultOutput

func (VaultOutput) ToVaultOutputWithContext added in v3.31.1

func (o VaultOutput) ToVaultOutputWithContext(ctx context.Context) VaultOutput

func (VaultOutput) ToVaultPtrOutput added in v3.47.1

func (o VaultOutput) ToVaultPtrOutput() VaultPtrOutput

func (VaultOutput) ToVaultPtrOutputWithContext added in v3.47.1

func (o VaultOutput) ToVaultPtrOutputWithContext(ctx context.Context) VaultPtrOutput

type VaultPtrInput added in v3.47.1

type VaultPtrInput interface {
	pulumi.Input

	ToVaultPtrOutput() VaultPtrOutput
	ToVaultPtrOutputWithContext(ctx context.Context) VaultPtrOutput
}

type VaultPtrOutput added in v3.47.1

type VaultPtrOutput struct {
	*pulumi.OutputState
}

func (VaultPtrOutput) ElementType added in v3.47.1

func (VaultPtrOutput) ElementType() reflect.Type

func (VaultPtrOutput) ToVaultPtrOutput added in v3.47.1

func (o VaultPtrOutput) ToVaultPtrOutput() VaultPtrOutput

func (VaultPtrOutput) ToVaultPtrOutputWithContext added in v3.47.1

func (o VaultPtrOutput) ToVaultPtrOutputWithContext(ctx context.Context) VaultPtrOutput

type VaultState

type VaultState struct {
	// An `identity` block as defined below.
	Identity VaultIdentityPtrInput
	// 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL