Module glacier

@pulumi/aws > glacier

Index

glacier/vault.ts glacier/vaultLock.ts

class Vault

Provides a Glacier Vault Resource. You can refer to the Glacier Developer Guide for a full explanation of the Glacier Vault functionality

~> NOTE: When removing a Glacier Vault, the Vault must be empty.

constructor

new Vault(name: string, args?: VaultArgs, opts?: pulumi.CustomResourceOptions)

Create a Vault resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VaultState): Vault

Get an existing Vault resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property accessPolicy

public accessPolicy: pulumi.Output<string | undefined>;

The policy document. This is a JSON formatted string. The heredoc syntax or file function is helpful here. Use the Glacier Developer Guide for more information on Glacier Vault Policy

property arn

public arn: pulumi.Output<string>;

The ARN of the vault.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property location

public location: pulumi.Output<string>;

The URI of the vault that was created.

property name

public name: pulumi.Output<string>;

The name of the Vault. Names can be between 1 and 255 characters long and the valid characters are a-z, A-Z, 0-9, ‘_’ (underscore), ‘-‘ (hyphen), and ‘.’ (period).

property notifications

public notifications: pulumi.Output<{ ... }[] | undefined>;

The notifications for the Vault. Fields documented below.

property tags

public tags: pulumi.Output<Tags | undefined>;

A mapping of tags to assign to the resource.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class VaultLock

Manages a Glacier Vault Lock. You can refer to the Glacier Developer Guide for a full explanation of the Glacier Vault Lock functionality.

~> NOTE: This resource allows you to test Glacier Vault Lock policies by setting the complete_lock argument to false. When testing policies in this manner, the Glacier Vault Lock automatically expires after 24 hours and Terraform will show this resource as needing recreation after that time. To permanently apply the policy, set the complete_lock argument to true. When changing complete_lock to true, it is expected the resource will show as recreating.

!> WARNING: Once a Glacier Vault Lock is completed, it is immutable. The deletion of the Glacier Vault Lock is not be possible and attempting to remove it from Terraform will return an error. Set the ignore_deletion_error argument to true and apply this configuration before attempting to delete this resource via Terraform or use terraform state rm to remove this resource from Terraform management.

constructor

new VaultLock(name: string, args: VaultLockArgs, opts?: pulumi.CustomResourceOptions)

Create a VaultLock resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VaultLockState): VaultLock

Get an existing VaultLock resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property completeLock

public completeLock: pulumi.Output<boolean>;

Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the Terraform resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property ignoreDeletionError

public ignoreDeletionError: pulumi.Output<boolean | undefined>;

Allow Terraform to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via Terraform, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.

property policy

public policy: pulumi.Output<string>;

JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property vaultName

public vaultName: pulumi.Output<string>;

The name of the Glacier Vault.

interface VaultArgs

The set of arguments for constructing a Vault resource.

property accessPolicy

accessPolicy?: pulumi.Input<string>;

The policy document. This is a JSON formatted string. The heredoc syntax or file function is helpful here. Use the Glacier Developer Guide for more information on Glacier Vault Policy

property name

name?: pulumi.Input<string>;

The name of the Vault. Names can be between 1 and 255 characters long and the valid characters are a-z, A-Z, 0-9, ‘_’ (underscore), ‘-‘ (hyphen), and ‘.’ (period).

property notifications

notifications?: pulumi.Input<pulumi.Input<{ ... }>[]>;

The notifications for the Vault. Fields documented below.

property tags

tags?: pulumi.Input<Tags>;

A mapping of tags to assign to the resource.

interface VaultLockArgs

The set of arguments for constructing a VaultLock resource.

property completeLock

completeLock: pulumi.Input<boolean>;

Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the Terraform resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.

property ignoreDeletionError

ignoreDeletionError?: pulumi.Input<boolean>;

Allow Terraform to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via Terraform, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.

property policy

policy: pulumi.Input<string>;

JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.

property vaultName

vaultName: pulumi.Input<string>;

The name of the Glacier Vault.

interface VaultLockState

Input properties used for looking up and filtering VaultLock resources.

property completeLock

completeLock?: pulumi.Input<boolean>;

Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the Terraform resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.

property ignoreDeletionError

ignoreDeletionError?: pulumi.Input<boolean>;

Allow Terraform to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via Terraform, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.

property policy

policy?: pulumi.Input<string>;

JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.

property vaultName

vaultName?: pulumi.Input<string>;

The name of the Glacier Vault.

interface VaultState

Input properties used for looking up and filtering Vault resources.

property accessPolicy

accessPolicy?: pulumi.Input<string>;

The policy document. This is a JSON formatted string. The heredoc syntax or file function is helpful here. Use the Glacier Developer Guide for more information on Glacier Vault Policy

property arn

arn?: pulumi.Input<string>;

The ARN of the vault.

property location

location?: pulumi.Input<string>;

The URI of the vault that was created.

property name

name?: pulumi.Input<string>;

The name of the Vault. Names can be between 1 and 255 characters long and the valid characters are a-z, A-Z, 0-9, ‘_’ (underscore), ‘-‘ (hyphen), and ‘.’ (period).

property notifications

notifications?: pulumi.Input<pulumi.Input<{ ... }>[]>;

The notifications for the Vault. Fields documented below.

property tags

tags?: pulumi.Input<Tags>;

A mapping of tags to assign to the resource.