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.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var awsSnsTopic = new Aws.Sns.Topic("awsSnsTopic", new Aws.Sns.TopicArgs
{
});
var myArchive = new Aws.Glacier.Vault("myArchive", new Aws.Glacier.VaultArgs
{
AccessPolicy = @"{
""Version"":""2012-10-17"",
""Statement"":[
{
""Sid"": ""add-read-only-perm"",
""Principal"": ""*"",
""Effect"": ""Allow"",
""Action"": [
""glacier:InitiateJob"",
""glacier:GetJobOutput""
],
""Resource"": ""arn:aws:glacier:eu-west-1:432981146916:vaults/MyArchive""
}
]
}
",
Notifications =
{
new Aws.Glacier.Inputs.VaultNotificationArgs
{
Events =
{
"ArchiveRetrievalCompleted",
"InventoryRetrievalCompleted",
},
SnsTopic = awsSnsTopic.Arn,
},
},
Tags =
{
{ "Test", "MyArchive" },
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Glacier
Assembly: Pulumi.Aws.dll
Syntax
public class Vault : CustomResource
Constructors
View SourceVault(String, VaultArgs, CustomResourceOptions)
Create a Vault resource with the given unique name, arguments, and options.
Declaration
public Vault(string name, VaultArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VaultArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccessPolicy
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
Declaration
public Output<string> AccessPolicy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Arn
The ARN of the vault.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Location
The URI of the vault that was created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
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).
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Notifications
The notifications for the Vault. Fields documented below.
Declaration
public Output<ImmutableArray<VaultNotification>> Notifications { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<VaultNotification>> |
Tags
A map of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, VaultState, CustomResourceOptions)
Get an existing Vault resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Vault Get(string name, Input<string> id, VaultState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| VaultState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Vault |