# Functions
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).
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).
NewVault registers a new resource with the given unique name, arguments, and options.
NewVaultLock registers a new resource with the given unique name, arguments, and options.
No description provided by the author
# Structs
Provides a Glacier Vault Resource.
The set of arguments for constructing a Vault resource.
No description provided by the author
## Example Usage
### Testing Glacier Vault Lock Policy
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glacier" "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleVault, err := glacier.NewVault(ctx, "example", &glacier.VaultArgs{ Name: pulumi.String("example"), }) if err != nil { return err } example := iam.GetPolicyDocumentOutput(ctx, iam.GetPolicyDocumentOutputArgs{ Statements: iam.GetPolicyDocumentStatementArray{ &iam.GetPolicyDocumentStatementArgs{ Actions: pulumi.StringArray{ pulumi.String("glacier:DeleteArchive"), }, Effect: pulumi.String("Deny"), Resources: pulumi.StringArray{ exampleVault.Arn, }, Conditions: iam.GetPolicyDocumentStatementConditionArray{ &iam.GetPolicyDocumentStatementConditionArgs{ Test: pulumi.String("NumericLessThanEquals"), Variable: pulumi.String("glacier:ArchiveAgeinDays"), Values: pulumi.StringArray{ pulumi.String("365"), }, }, }, }, }, }, nil) _, err = glacier.NewVaultLock(ctx, "example", &glacier.VaultLockArgs{ CompleteLock: pulumi.Bool(false), Policy: pulumi.String(example.ApplyT(func(example iam.GetPolicyDocumentResult) (*string, error) { return &example.Json, nil }).(pulumi.StringPtrOutput)), VaultName: exampleVault.Name, }) if err != nil { return err } return nil }) }
```
### Permanently Applying Glacier Vault Lock Policy
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glacier" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := glacier.NewVaultLock(ctx, "example", &glacier.VaultLockArgs{ CompleteLock: pulumi.Bool(true), Policy: pulumi.Any(exampleAwsIamPolicyDocument.Json), VaultName: pulumi.Any(exampleAwsGlacierVault.Name), }) if err != nil { return err } return nil }) }
```
## Import
Using `pulumi import`, import Glacier Vault Locks using the Glacier Vault name.
The set of arguments for constructing a VaultLock resource.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
VaultArrayInput is an input type that accepts VaultArray and VaultArrayOutput values.
No description provided by the author
VaultLockArrayInput is an input type that accepts VaultLockArray and VaultLockArrayOutput values.
No description provided by the author
VaultLockMapInput is an input type that accepts VaultLockMap and VaultLockMapOutput values.
VaultMapInput is an input type that accepts VaultMap and VaultMapOutput values.
VaultNotificationInput is an input type that accepts VaultNotificationArgs and VaultNotificationOutput values.
VaultNotificationPtrInput is an input type that accepts VaultNotificationArgs, VaultNotificationPtr and VaultNotificationPtrOutput values.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author