glacier

package
v6.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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 Vault

type Vault struct {
	pulumi.CustomResourceState

	// 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 pulumi.StringPtrOutput `pulumi:"accessPolicy"`
	// The ARN of the vault.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The URI of the vault that was created.
	Location pulumi.StringOutput `pulumi:"location"`
	// 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 pulumi.StringOutput `pulumi:"name"`
	// The notifications for the Vault. Fields documented below.
	Notification VaultNotificationPtrOutput `pulumi:"notification"`
	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	//
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

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.

## Example Usage

<!--Start PulumiCodeChooser --> ```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-aws/sdk/v6/go/aws/sns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		awsSnsTopic, err := sns.NewTopic(ctx, "aws_sns_topic", &sns.TopicArgs{
			Name: pulumi.String("glacier-sns-topic"),
		})
		if err != nil {
			return err
		}
		myArchive, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
			Statements: []iam.GetPolicyDocumentStatement{
				{
					Sid:    pulumi.StringRef("add-read-only-perm"),
					Effect: pulumi.StringRef("Allow"),
					Principals: []iam.GetPolicyDocumentStatementPrincipal{
						{
							Type: "*",
							Identifiers: []string{
								"*",
							},
						},
					},
					Actions: []string{
						"glacier:InitiateJob",
						"glacier:GetJobOutput",
					},
					Resources: []string{
						"arn:aws:glacier:eu-west-1:432981146916:vaults/MyArchive",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		_, err = glacier.NewVault(ctx, "my_archive", &glacier.VaultArgs{
			Name: pulumi.String("MyArchive"),
			Notification: &glacier.VaultNotificationArgs{
				SnsTopic: awsSnsTopic.Arn,
				Events: pulumi.StringArray{
					pulumi.String("ArchiveRetrievalCompleted"),
					pulumi.String("InventoryRetrievalCompleted"),
				},
			},
			AccessPolicy: pulumi.String(myArchive.Json),
			Tags: pulumi.StringMap{
				"Test": pulumi.String("MyArchive"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Using `pulumi import`, import Glacier Vaults using the `name`. For example:

```sh $ pulumi import aws:glacier/vault:Vault archive my_archive ```

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

func (*Vault) ElementType() reflect.Type

func (*Vault) ToVaultOutput

func (i *Vault) ToVaultOutput() VaultOutput

func (*Vault) ToVaultOutputWithContext

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

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 pulumi.StringPtrInput
	// 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 pulumi.StringPtrInput
	// The notifications for the Vault. Fields documented below.
	Notification VaultNotificationPtrInput
	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Vault resource.

func (VaultArgs) ElementType

func (VaultArgs) ElementType() reflect.Type

type VaultArray

type VaultArray []VaultInput

func (VaultArray) ElementType

func (VaultArray) ElementType() reflect.Type

func (VaultArray) ToVaultArrayOutput

func (i VaultArray) ToVaultArrayOutput() VaultArrayOutput

func (VaultArray) ToVaultArrayOutputWithContext

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

type VaultArrayInput

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

type VaultArrayOutput struct{ *pulumi.OutputState }

func (VaultArrayOutput) ElementType

func (VaultArrayOutput) ElementType() reflect.Type

func (VaultArrayOutput) Index

func (VaultArrayOutput) ToVaultArrayOutput

func (o VaultArrayOutput) ToVaultArrayOutput() VaultArrayOutput

func (VaultArrayOutput) ToVaultArrayOutputWithContext

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

type VaultInput

type VaultInput interface {
	pulumi.Input

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

type VaultLock

type VaultLock struct {
	pulumi.CustomResourceState

	// 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 this provider 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 pulumi.BoolOutput `pulumi:"completeLock"`
	// Allow this provider 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 this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with `completeLock` being set to `true`.
	IgnoreDeletionError pulumi.BoolPtrOutput `pulumi:"ignoreDeletionError"`
	// JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
	Policy pulumi.StringOutput `pulumi:"policy"`
	// The name of the Glacier Vault.
	VaultName pulumi.StringOutput `pulumi:"vaultName"`
}

## Example Usage

### Testing Glacier Vault Lock Policy

<!--Start PulumiCodeChooser --> ```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: example.ApplyT(func(example iam.GetPolicyDocumentResult) (*string, error) {
				return &example.Json, nil
			}).(pulumi.StringPtrOutput),
			VaultName: exampleVault.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

### Permanently Applying Glacier Vault Lock Policy

<!--Start PulumiCodeChooser --> ```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
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Using `pulumi import`, import Glacier Vault Locks using the Glacier Vault name. For example:

```sh $ pulumi import aws:glacier/vaultLock:VaultLock example example-vault ```

func GetVaultLock

func GetVaultLock(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VaultLockState, opts ...pulumi.ResourceOption) (*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

func NewVaultLock(ctx *pulumi.Context,
	name string, args *VaultLockArgs, opts ...pulumi.ResourceOption) (*VaultLock, error)

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

func (*VaultLock) ElementType

func (*VaultLock) ElementType() reflect.Type

func (*VaultLock) ToVaultLockOutput

func (i *VaultLock) ToVaultLockOutput() VaultLockOutput

func (*VaultLock) ToVaultLockOutputWithContext

func (i *VaultLock) ToVaultLockOutputWithContext(ctx context.Context) VaultLockOutput

type VaultLockArgs

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 this provider 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 pulumi.BoolInput
	// Allow this provider 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 this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with `completeLock` being set to `true`.
	IgnoreDeletionError pulumi.BoolPtrInput
	// JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
	Policy pulumi.StringInput
	// The name of the Glacier Vault.
	VaultName pulumi.StringInput
}

The set of arguments for constructing a VaultLock resource.

func (VaultLockArgs) ElementType

func (VaultLockArgs) ElementType() reflect.Type

type VaultLockArray

type VaultLockArray []VaultLockInput

func (VaultLockArray) ElementType

func (VaultLockArray) ElementType() reflect.Type

func (VaultLockArray) ToVaultLockArrayOutput

func (i VaultLockArray) ToVaultLockArrayOutput() VaultLockArrayOutput

func (VaultLockArray) ToVaultLockArrayOutputWithContext

func (i VaultLockArray) ToVaultLockArrayOutputWithContext(ctx context.Context) VaultLockArrayOutput

type VaultLockArrayInput

type VaultLockArrayInput interface {
	pulumi.Input

	ToVaultLockArrayOutput() VaultLockArrayOutput
	ToVaultLockArrayOutputWithContext(context.Context) VaultLockArrayOutput
}

VaultLockArrayInput is an input type that accepts VaultLockArray and VaultLockArrayOutput values. You can construct a concrete instance of `VaultLockArrayInput` via:

VaultLockArray{ VaultLockArgs{...} }

type VaultLockArrayOutput

type VaultLockArrayOutput struct{ *pulumi.OutputState }

func (VaultLockArrayOutput) ElementType

func (VaultLockArrayOutput) ElementType() reflect.Type

func (VaultLockArrayOutput) Index

func (VaultLockArrayOutput) ToVaultLockArrayOutput

func (o VaultLockArrayOutput) ToVaultLockArrayOutput() VaultLockArrayOutput

func (VaultLockArrayOutput) ToVaultLockArrayOutputWithContext

func (o VaultLockArrayOutput) ToVaultLockArrayOutputWithContext(ctx context.Context) VaultLockArrayOutput

type VaultLockInput

type VaultLockInput interface {
	pulumi.Input

	ToVaultLockOutput() VaultLockOutput
	ToVaultLockOutputWithContext(ctx context.Context) VaultLockOutput
}

type VaultLockMap

type VaultLockMap map[string]VaultLockInput

func (VaultLockMap) ElementType

func (VaultLockMap) ElementType() reflect.Type

func (VaultLockMap) ToVaultLockMapOutput

func (i VaultLockMap) ToVaultLockMapOutput() VaultLockMapOutput

func (VaultLockMap) ToVaultLockMapOutputWithContext

func (i VaultLockMap) ToVaultLockMapOutputWithContext(ctx context.Context) VaultLockMapOutput

type VaultLockMapInput

type VaultLockMapInput interface {
	pulumi.Input

	ToVaultLockMapOutput() VaultLockMapOutput
	ToVaultLockMapOutputWithContext(context.Context) VaultLockMapOutput
}

VaultLockMapInput is an input type that accepts VaultLockMap and VaultLockMapOutput values. You can construct a concrete instance of `VaultLockMapInput` via:

VaultLockMap{ "key": VaultLockArgs{...} }

type VaultLockMapOutput

type VaultLockMapOutput struct{ *pulumi.OutputState }

func (VaultLockMapOutput) ElementType

func (VaultLockMapOutput) ElementType() reflect.Type

func (VaultLockMapOutput) MapIndex

func (VaultLockMapOutput) ToVaultLockMapOutput

func (o VaultLockMapOutput) ToVaultLockMapOutput() VaultLockMapOutput

func (VaultLockMapOutput) ToVaultLockMapOutputWithContext

func (o VaultLockMapOutput) ToVaultLockMapOutputWithContext(ctx context.Context) VaultLockMapOutput

type VaultLockOutput

type VaultLockOutput struct{ *pulumi.OutputState }

func (VaultLockOutput) CompleteLock

func (o VaultLockOutput) 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 this provider 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 (VaultLockOutput) ElementType

func (VaultLockOutput) ElementType() reflect.Type

func (VaultLockOutput) IgnoreDeletionError

func (o VaultLockOutput) IgnoreDeletionError() pulumi.BoolPtrOutput

Allow this provider 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 this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with `completeLock` being set to `true`.

func (VaultLockOutput) Policy

func (o VaultLockOutput) Policy() pulumi.StringOutput

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

func (VaultLockOutput) ToVaultLockOutput

func (o VaultLockOutput) ToVaultLockOutput() VaultLockOutput

func (VaultLockOutput) ToVaultLockOutputWithContext

func (o VaultLockOutput) ToVaultLockOutputWithContext(ctx context.Context) VaultLockOutput

func (VaultLockOutput) VaultName

func (o VaultLockOutput) VaultName() pulumi.StringOutput

The name of the Glacier Vault.

type VaultLockState

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 this provider 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 pulumi.BoolPtrInput
	// Allow this provider 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 this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with `completeLock` being set to `true`.
	IgnoreDeletionError pulumi.BoolPtrInput
	// JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
	Policy pulumi.StringPtrInput
	// The name of the Glacier Vault.
	VaultName pulumi.StringPtrInput
}

func (VaultLockState) ElementType

func (VaultLockState) ElementType() reflect.Type

type VaultMap

type VaultMap map[string]VaultInput

func (VaultMap) ElementType

func (VaultMap) ElementType() reflect.Type

func (VaultMap) ToVaultMapOutput

func (i VaultMap) ToVaultMapOutput() VaultMapOutput

func (VaultMap) ToVaultMapOutputWithContext

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

type VaultMapInput

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

type VaultMapOutput struct{ *pulumi.OutputState }

func (VaultMapOutput) ElementType

func (VaultMapOutput) ElementType() reflect.Type

func (VaultMapOutput) MapIndex

func (VaultMapOutput) ToVaultMapOutput

func (o VaultMapOutput) ToVaultMapOutput() VaultMapOutput

func (VaultMapOutput) ToVaultMapOutputWithContext

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

type VaultNotification

type VaultNotification struct {
	// You can configure a vault to publish a notification for `ArchiveRetrievalCompleted` and `InventoryRetrievalCompleted` events.
	Events []string `pulumi:"events"`
	// The SNS Topic ARN.
	SnsTopic string `pulumi:"snsTopic"`
}

type VaultNotificationArgs

type VaultNotificationArgs struct {
	// You can configure a vault to publish a notification for `ArchiveRetrievalCompleted` and `InventoryRetrievalCompleted` events.
	Events pulumi.StringArrayInput `pulumi:"events"`
	// The SNS Topic ARN.
	SnsTopic pulumi.StringInput `pulumi:"snsTopic"`
}

func (VaultNotificationArgs) ElementType

func (VaultNotificationArgs) ElementType() reflect.Type

func (VaultNotificationArgs) ToVaultNotificationOutput

func (i VaultNotificationArgs) ToVaultNotificationOutput() VaultNotificationOutput

func (VaultNotificationArgs) ToVaultNotificationOutputWithContext

func (i VaultNotificationArgs) ToVaultNotificationOutputWithContext(ctx context.Context) VaultNotificationOutput

func (VaultNotificationArgs) ToVaultNotificationPtrOutput

func (i VaultNotificationArgs) ToVaultNotificationPtrOutput() VaultNotificationPtrOutput

func (VaultNotificationArgs) ToVaultNotificationPtrOutputWithContext

func (i VaultNotificationArgs) ToVaultNotificationPtrOutputWithContext(ctx context.Context) VaultNotificationPtrOutput

type VaultNotificationInput

type VaultNotificationInput interface {
	pulumi.Input

	ToVaultNotificationOutput() VaultNotificationOutput
	ToVaultNotificationOutputWithContext(context.Context) VaultNotificationOutput
}

VaultNotificationInput is an input type that accepts VaultNotificationArgs and VaultNotificationOutput values. You can construct a concrete instance of `VaultNotificationInput` via:

VaultNotificationArgs{...}

type VaultNotificationOutput

type VaultNotificationOutput struct{ *pulumi.OutputState }

func (VaultNotificationOutput) ElementType

func (VaultNotificationOutput) ElementType() reflect.Type

func (VaultNotificationOutput) Events

You can configure a vault to publish a notification for `ArchiveRetrievalCompleted` and `InventoryRetrievalCompleted` events.

func (VaultNotificationOutput) SnsTopic

The SNS Topic ARN.

func (VaultNotificationOutput) ToVaultNotificationOutput

func (o VaultNotificationOutput) ToVaultNotificationOutput() VaultNotificationOutput

func (VaultNotificationOutput) ToVaultNotificationOutputWithContext

func (o VaultNotificationOutput) ToVaultNotificationOutputWithContext(ctx context.Context) VaultNotificationOutput

func (VaultNotificationOutput) ToVaultNotificationPtrOutput

func (o VaultNotificationOutput) ToVaultNotificationPtrOutput() VaultNotificationPtrOutput

func (VaultNotificationOutput) ToVaultNotificationPtrOutputWithContext

func (o VaultNotificationOutput) ToVaultNotificationPtrOutputWithContext(ctx context.Context) VaultNotificationPtrOutput

type VaultNotificationPtrInput

type VaultNotificationPtrInput interface {
	pulumi.Input

	ToVaultNotificationPtrOutput() VaultNotificationPtrOutput
	ToVaultNotificationPtrOutputWithContext(context.Context) VaultNotificationPtrOutput
}

VaultNotificationPtrInput is an input type that accepts VaultNotificationArgs, VaultNotificationPtr and VaultNotificationPtrOutput values. You can construct a concrete instance of `VaultNotificationPtrInput` via:

        VaultNotificationArgs{...}

or:

        nil

type VaultNotificationPtrOutput

type VaultNotificationPtrOutput struct{ *pulumi.OutputState }

func (VaultNotificationPtrOutput) Elem

func (VaultNotificationPtrOutput) ElementType

func (VaultNotificationPtrOutput) ElementType() reflect.Type

func (VaultNotificationPtrOutput) Events

You can configure a vault to publish a notification for `ArchiveRetrievalCompleted` and `InventoryRetrievalCompleted` events.

func (VaultNotificationPtrOutput) SnsTopic

The SNS Topic ARN.

func (VaultNotificationPtrOutput) ToVaultNotificationPtrOutput

func (o VaultNotificationPtrOutput) ToVaultNotificationPtrOutput() VaultNotificationPtrOutput

func (VaultNotificationPtrOutput) ToVaultNotificationPtrOutputWithContext

func (o VaultNotificationPtrOutput) ToVaultNotificationPtrOutputWithContext(ctx context.Context) VaultNotificationPtrOutput

type VaultOutput

type VaultOutput struct{ *pulumi.OutputState }

func (VaultOutput) AccessPolicy

func (o VaultOutput) AccessPolicy() pulumi.StringPtrOutput

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 (VaultOutput) Arn

The ARN of the vault.

func (VaultOutput) ElementType

func (VaultOutput) ElementType() reflect.Type

func (VaultOutput) Location

func (o VaultOutput) Location() pulumi.StringOutput

The URI of the vault that was created.

func (VaultOutput) Name

func (o VaultOutput) 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 (VaultOutput) Notification

func (o VaultOutput) Notification() VaultNotificationPtrOutput

The notifications for the Vault. Fields documented below.

func (VaultOutput) Tags

A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (VaultOutput) TagsAll deprecated

func (o VaultOutput) TagsAll() pulumi.StringMapOutput

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

Deprecated: Please use `tags` instead.

func (VaultOutput) ToVaultOutput

func (o VaultOutput) ToVaultOutput() VaultOutput

func (VaultOutput) ToVaultOutputWithContext

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

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 pulumi.StringPtrInput
	// The ARN of the vault.
	Arn pulumi.StringPtrInput
	// The URI of the vault that was created.
	Location pulumi.StringPtrInput
	// 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 pulumi.StringPtrInput
	// The notifications for the Vault. Fields documented below.
	Notification VaultNotificationPtrInput
	// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	//
	// Deprecated: Please use `tags` instead.
	TagsAll 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