libZSservicesZSamazonka-glacierZSamazonka-glacier
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Glacier.DescribeVault

Description

This operation returns information about a vault, including the vault's Amazon Resource Name (ARN), the date the vault was created, the number of archives it contains, and the total size of all the archives in the vault. The number of archives and their total size are as of the last inventory generation. This means that if you add or remove an archive from a vault, and then immediately use Describe Vault, the change in contents will not be immediately reflected. If you want to retrieve the latest inventory of the vault, use InitiateJob. Amazon S3 Glacier generates vault inventories approximately daily. For more information, see Downloading a Vault Inventory in Amazon S3 Glacier.

An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM).

For conceptual information and underlying REST API, see Retrieving Vault Metadata in Amazon S3 Glacier and Describe Vault in the Amazon Glacier Developer Guide.

Synopsis

Creating a Request

data DescribeVault Source #

Provides options for retrieving metadata for a specific vault in Amazon Glacier.

See: newDescribeVault smart constructor.

Constructors

DescribeVault' 

Fields

  • accountId :: Text

    The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

  • vaultName :: Text

    The name of the vault.

Instances

Instances details
Eq DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

Read DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

Show DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

Generic DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

Associated Types

type Rep DescribeVault :: Type -> Type #

NFData DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

Methods

rnf :: DescribeVault -> () #

Hashable DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

AWSRequest DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

Associated Types

type AWSResponse DescribeVault #

ToHeaders DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

ToPath DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

ToQuery DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

type Rep DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

type Rep DescribeVault = D1 ('MetaData "DescribeVault" "Amazonka.Glacier.DescribeVault" "libZSservicesZSamazonka-glacierZSamazonka-glacier" 'False) (C1 ('MetaCons "DescribeVault'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DescribeVault Source # 
Instance details

Defined in Amazonka.Glacier.DescribeVault

newDescribeVault Source #

Create a value of DescribeVault with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:accountId:DescribeVault', describeVault_accountId - The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

$sel:vaultName:DescribeVault', describeVault_vaultName - The name of the vault.

Request Lenses

describeVault_accountId :: Lens' DescribeVault Text Source #

The AccountId value is the AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, do not include any hyphens ('-') in the ID.

Destructuring the Response

data DescribeVaultOutput Source #

Contains the Amazon S3 Glacier response to your request.

See: newDescribeVaultOutput smart constructor.

Constructors

DescribeVaultOutput' 

Fields

  • vaultName :: Maybe Text

    The name of the vault.

  • sizeInBytes :: Maybe Integer

    Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault.

  • lastInventoryDate :: Maybe Text

    The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed the last vault inventory. This value should be a string in the ISO 8601 date format, for example 2012-03-20T17:03:43.221Z.

  • vaultARN :: Maybe Text

    The Amazon Resource Name (ARN) of the vault.

  • creationDate :: Maybe Text

    The Universal Coordinated Time (UTC) date when the vault was created. This value should be a string in the ISO 8601 date format, for example 2012-03-20T17:03:43.221Z.

  • numberOfArchives :: Maybe Integer

    The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault.

Instances

Instances details
Eq DescribeVaultOutput Source # 
Instance details

Defined in Amazonka.Glacier.Types.DescribeVaultOutput

Read DescribeVaultOutput Source # 
Instance details

Defined in Amazonka.Glacier.Types.DescribeVaultOutput

Show DescribeVaultOutput Source # 
Instance details

Defined in Amazonka.Glacier.Types.DescribeVaultOutput

Generic DescribeVaultOutput Source # 
Instance details

Defined in Amazonka.Glacier.Types.DescribeVaultOutput

Associated Types

type Rep DescribeVaultOutput :: Type -> Type #

NFData DescribeVaultOutput Source # 
Instance details

Defined in Amazonka.Glacier.Types.DescribeVaultOutput

Methods

rnf :: DescribeVaultOutput -> () #

Hashable DescribeVaultOutput Source # 
Instance details

Defined in Amazonka.Glacier.Types.DescribeVaultOutput

FromJSON DescribeVaultOutput Source # 
Instance details

Defined in Amazonka.Glacier.Types.DescribeVaultOutput

type Rep DescribeVaultOutput Source # 
Instance details

Defined in Amazonka.Glacier.Types.DescribeVaultOutput

type Rep DescribeVaultOutput = D1 ('MetaData "DescribeVaultOutput" "Amazonka.Glacier.Types.DescribeVaultOutput" "libZSservicesZSamazonka-glacierZSamazonka-glacier" 'False) (C1 ('MetaCons "DescribeVaultOutput'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "vaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sizeInBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "lastInventoryDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "vaultARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "creationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "numberOfArchives") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))))))

newDescribeVaultOutput :: DescribeVaultOutput Source #

Create a value of DescribeVaultOutput with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:vaultName:DescribeVaultOutput', describeVaultOutput_vaultName - The name of the vault.

$sel:sizeInBytes:DescribeVaultOutput', describeVaultOutput_sizeInBytes - Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault.

$sel:lastInventoryDate:DescribeVaultOutput', describeVaultOutput_lastInventoryDate - The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed the last vault inventory. This value should be a string in the ISO 8601 date format, for example 2012-03-20T17:03:43.221Z.

$sel:vaultARN:DescribeVaultOutput', describeVaultOutput_vaultARN - The Amazon Resource Name (ARN) of the vault.

$sel:creationDate:DescribeVaultOutput', describeVaultOutput_creationDate - The Universal Coordinated Time (UTC) date when the vault was created. This value should be a string in the ISO 8601 date format, for example 2012-03-20T17:03:43.221Z.

$sel:numberOfArchives:DescribeVaultOutput', describeVaultOutput_numberOfArchives - The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault.

Response Lenses

describeVaultOutput_sizeInBytes :: Lens' DescribeVaultOutput (Maybe Integer) Source #

Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault.

describeVaultOutput_lastInventoryDate :: Lens' DescribeVaultOutput (Maybe Text) Source #

The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed the last vault inventory. This value should be a string in the ISO 8601 date format, for example 2012-03-20T17:03:43.221Z.

describeVaultOutput_vaultARN :: Lens' DescribeVaultOutput (Maybe Text) Source #

The Amazon Resource Name (ARN) of the vault.

describeVaultOutput_creationDate :: Lens' DescribeVaultOutput (Maybe Text) Source #

The Universal Coordinated Time (UTC) date when the vault was created. This value should be a string in the ISO 8601 date format, for example 2012-03-20T17:03:43.221Z.

describeVaultOutput_numberOfArchives :: Lens' DescribeVaultOutput (Maybe Integer) Source #

The number of archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault.