Documentation
¶
Index ¶
- type Vault
- func (r *Vault) AccessPolicy() *pulumi.StringOutput
- func (r *Vault) Arn() *pulumi.StringOutput
- func (r *Vault) ID() *pulumi.IDOutput
- func (r *Vault) Location() *pulumi.StringOutput
- func (r *Vault) Name() *pulumi.StringOutput
- func (r *Vault) Notifications() *pulumi.ArrayOutput
- func (r *Vault) Tags() *pulumi.MapOutput
- func (r *Vault) URN() *pulumi.URNOutput
- type VaultArgs
- type VaultLock
- func (r *VaultLock) CompleteLock() *pulumi.BoolOutput
- func (r *VaultLock) ID() *pulumi.IDOutput
- func (r *VaultLock) IgnoreDeletionError() *pulumi.BoolOutput
- func (r *VaultLock) Policy() *pulumi.StringOutput
- func (r *VaultLock) URN() *pulumi.URNOutput
- func (r *VaultLock) VaultName() *pulumi.StringOutput
- type VaultLockArgs
- type VaultLockState
- type VaultState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Provides a Glacier Vault Resource. You can refer to the [Glacier Developer Guide](https://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-vaults.html) for a full explanation of the Glacier Vault functionality
> **NOTE:** When removing a Glacier Vault, the Vault must be empty.
func GetVault ¶
func GetVault(ctx *pulumi.Context, name string, id pulumi.ID, state *VaultState, opts ...pulumi.ResourceOpt) (*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.ResourceOpt) (*Vault, error)
NewVault registers a new resource with the given unique name, arguments, and options.
func (*Vault) AccessPolicy ¶
func (r *Vault) AccessPolicy() *pulumi.StringOutput
The policy document. This is a JSON formatted string. The heredoc syntax or `file` function is helpful here. Use the [Glacier Developer Guide](https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html) for more information on Glacier Vault Policy
func (*Vault) Location ¶
func (r *Vault) Location() *pulumi.StringOutput
The URI of the vault that was created.
func (*Vault) Name ¶
func (r *Vault) Name() *pulumi.StringOutput
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).
func (*Vault) Notifications ¶
func (r *Vault) Notifications() *pulumi.ArrayOutput
The notifications for the Vault. Fields documented below.
type VaultArgs ¶
type VaultArgs struct { // The policy document. This is a JSON formatted string. // The heredoc syntax or `file` function is helpful here. Use the [Glacier Developer Guide](https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html) for more information on Glacier Vault Policy AccessPolicy interface{} // 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). Name interface{} // The notifications for the Vault. Fields documented below. Notifications interface{} // A mapping of tags to assign to the resource. Tags interface{} }
The set of arguments for constructing a Vault resource.
type VaultLock ¶ added in v0.16.3
type VaultLock struct {
// contains filtered or unexported fields
}
Manages a Glacier Vault Lock. You can refer to the [Glacier Developer Guide](https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html) 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.
func GetVaultLock ¶ added in v0.16.3
func GetVaultLock(ctx *pulumi.Context, name string, id pulumi.ID, state *VaultLockState, opts ...pulumi.ResourceOpt) (*VaultLock, error)
GetVaultLock gets an existing VaultLock 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 NewVaultLock ¶ added in v0.16.3
func NewVaultLock(ctx *pulumi.Context, name string, args *VaultLockArgs, opts ...pulumi.ResourceOpt) (*VaultLock, error)
NewVaultLock registers a new resource with the given unique name, arguments, and options.
func (*VaultLock) CompleteLock ¶ added in v0.16.3
func (r *VaultLock) CompleteLock() *pulumi.BoolOutput
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.
func (*VaultLock) ID ¶ added in v0.16.3
ID is this resource's unique identifier assigned by its provider.
func (*VaultLock) IgnoreDeletionError ¶ added in v0.16.3
func (r *VaultLock) IgnoreDeletionError() *pulumi.BoolOutput
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`.
func (*VaultLock) Policy ¶ added in v0.16.3
func (r *VaultLock) Policy() *pulumi.StringOutput
JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
func (*VaultLock) VaultName ¶ added in v0.16.3
func (r *VaultLock) VaultName() *pulumi.StringOutput
The name of the Glacier Vault.
type VaultLockArgs ¶ added in v0.16.3
type VaultLockArgs struct { // 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. CompleteLock interface{} // 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`. IgnoreDeletionError interface{} // JSON string containing the IAM policy to apply as the Glacier Vault Lock policy. Policy interface{} // The name of the Glacier Vault. VaultName interface{} }
The set of arguments for constructing a VaultLock resource.
type VaultLockState ¶ added in v0.16.3
type VaultLockState struct { // 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. CompleteLock interface{} // 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`. IgnoreDeletionError interface{} // JSON string containing the IAM policy to apply as the Glacier Vault Lock policy. Policy interface{} // The name of the Glacier Vault. VaultName interface{} }
Input properties used for looking up and filtering VaultLock resources.
type VaultState ¶
type VaultState struct { // The policy document. This is a JSON formatted string. // The heredoc syntax or `file` function is helpful here. Use the [Glacier Developer Guide](https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html) for more information on Glacier Vault Policy AccessPolicy interface{} // The ARN of the vault. Arn interface{} // The URI of the vault that was created. Location interface{} // 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). Name interface{} // The notifications for the Vault. Fields documented below. Notifications interface{} // A mapping of tags to assign to the resource. Tags interface{} }
Input properties used for looking up and filtering Vault resources.