-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Amazon Glacier SDK.
--   
--   The types from this library are intended to be used with
--   <a>amazonka</a>, which provides mechanisms for specifying AuthN/AuthZ
--   information, sending requests, and receiving responses.
--   
--   Lenses are used for constructing and manipulating types, due to the
--   depth of nesting of AWS types and transparency regarding
--   de/serialisation into more palatable Haskell values. The provided
--   lenses should be compatible with any of the major lens libraries such
--   as <a>lens</a> or <a>lens-family-core</a>.
--   
--   See <a>Network.AWS.Glacier</a> or <a>the AWS documentation</a> to get
--   started.
@package amazonka-glacier
@version 1.6.1


module Network.AWS.Glacier.Types

-- | API version <tt>2012-06-01</tt> of the Amazon Glacier SDK
--   configuration.
glacier :: Service

-- | Returned if a retrieval job would exceed the current data policy's
--   retrieval rate limit. For more information about data retrieval
--   policies,
_PolicyEnforcedException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if a parameter of the request is incorrectly specified.
_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if, when uploading an archive, Amazon Glacier times out while
--   receiving the upload.
_RequestTimeoutException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if the service cannot complete the request.
_ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if there is insufficient capacity to process this expedited
--   request. This error only applies to expedited retrievals and not to
--   standard or bulk retrievals.
_InsufficientCapacityException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if the specified resource (such as a vault, upload ID, or job
--   ID) doesn't exist.
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if the request results in a vault or account limit being
--   exceeded.
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if a required header or parameter is missing from the
--   request.
_MissingParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError
data ActionCode
ArchiveRetrieval :: ActionCode
InventoryRetrieval :: ActionCode
Select :: ActionCode
data CannedACL
AWSExecRead :: CannedACL
AuthenticatedRead :: CannedACL
BucketOwnerFullControl :: CannedACL
BucketOwnerRead :: CannedACL
Private :: CannedACL
PublicRead :: CannedACL
PublicReadWrite :: CannedACL
data EncryptionType
AES256 :: EncryptionType
AWSKMS :: EncryptionType
data ExpressionType
Sql :: ExpressionType
data FileHeaderInfo
Ignore :: FileHeaderInfo
None :: FileHeaderInfo
Use :: FileHeaderInfo
data Permission
FullControl :: Permission
Read :: Permission
ReadAcp :: Permission
Write :: Permission
WriteAcp :: Permission
data QuoteFields
ASNeeded :: QuoteFields
Always :: QuoteFields
data StatusCode
Failed :: StatusCode
InProgress :: StatusCode
Succeeded :: StatusCode
data StorageClass
ReducedRedundancy :: StorageClass
Standard :: StorageClass
StandardIA :: StorageClass
data Type
AmazonCustomerByEmail :: Type
CanonicalUser :: Type
Group :: Type

-- | Contains the Amazon Glacier response to your request.
--   
--   For information about the underlying REST API, see <a>Upload
--   Archive</a> . For conceptual information, see <a>Working with Archives
--   in Amazon Glacier</a> .
--   
--   <i>See:</i> <a>archiveCreationOutput</a> smart constructor.
data ArchiveCreationOutput

-- | Creates a value of <a>ArchiveCreationOutput</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>acoArchiveId</a> - The ID of the archive. This value is also
--   included as part of the location.</li>
--   <li><a>acoChecksum</a> - The checksum of the archive computed by
--   Amazon Glacier.</li>
--   <li><a>acoLocation</a> - The relative URI path of the newly added
--   archive resource.</li>
--   </ul>
archiveCreationOutput :: ArchiveCreationOutput

-- | The ID of the archive. This value is also included as part of the
--   location.
acoArchiveId :: Lens' ArchiveCreationOutput (Maybe Text)

-- | The checksum of the archive computed by Amazon Glacier.
acoChecksum :: Lens' ArchiveCreationOutput (Maybe Text)

-- | The relative URI path of the newly added archive resource.
acoLocation :: Lens' ArchiveCreationOutput (Maybe Text)

-- | Contains information about the comma-separated value (CSV) file to
--   select from.
--   
--   <i>See:</i> <a>csvInput</a> smart constructor.
data CSVInput

-- | Creates a value of <a>CSVInput</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ciQuoteCharacter</a> - A value used as an escape character
--   where the field delimiter is part of the value.</li>
--   <li><a>ciRecordDelimiter</a> - A value used to separate individual
--   records from each other.</li>
--   <li><a>ciFileHeaderInfo</a> - Describes the first line of input. Valid
--   values are <tt>None</tt> , <tt>Ignore</tt> , and <tt>Use</tt> .</li>
--   <li><a>ciQuoteEscapeCharacter</a> - A single character used for
--   escaping the quotation-mark character inside an already escaped
--   value.</li>
--   <li><a>ciComments</a> - A single character used to indicate that a row
--   should be ignored when the character is present at the start of that
--   row.</li>
--   <li><a>ciFieldDelimiter</a> - A value used to separate individual
--   fields from each other within a record.</li>
--   </ul>
csvInput :: CSVInput

-- | A value used as an escape character where the field delimiter is part
--   of the value.
ciQuoteCharacter :: Lens' CSVInput (Maybe Text)

-- | A value used to separate individual records from each other.
ciRecordDelimiter :: Lens' CSVInput (Maybe Text)

-- | Describes the first line of input. Valid values are <tt>None</tt> ,
--   <tt>Ignore</tt> , and <tt>Use</tt> .
ciFileHeaderInfo :: Lens' CSVInput (Maybe FileHeaderInfo)

-- | A single character used for escaping the quotation-mark character
--   inside an already escaped value.
ciQuoteEscapeCharacter :: Lens' CSVInput (Maybe Text)

-- | A single character used to indicate that a row should be ignored when
--   the character is present at the start of that row.
ciComments :: Lens' CSVInput (Maybe Text)

-- | A value used to separate individual fields from each other within a
--   record.
ciFieldDelimiter :: Lens' CSVInput (Maybe Text)

-- | Contains information about the comma-separated value (CSV) file that
--   the job results are stored in.
--   
--   <i>See:</i> <a>csvOutput</a> smart constructor.
data CSVOutput

-- | Creates a value of <a>CSVOutput</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>coQuoteCharacter</a> - A value used as an escape character
--   where the field delimiter is part of the value.</li>
--   <li><a>coQuoteFields</a> - A value that indicates whether all output
--   fields should be contained within quotation marks.</li>
--   <li><a>coRecordDelimiter</a> - A value used to separate individual
--   records from each other.</li>
--   <li><a>coQuoteEscapeCharacter</a> - A single character used for
--   escaping the quotation-mark character inside an already escaped
--   value.</li>
--   <li><a>coFieldDelimiter</a> - A value used to separate individual
--   fields from each other within a record.</li>
--   </ul>
csvOutput :: CSVOutput

-- | A value used as an escape character where the field delimiter is part
--   of the value.
coQuoteCharacter :: Lens' CSVOutput (Maybe Text)

-- | A value that indicates whether all output fields should be contained
--   within quotation marks.
coQuoteFields :: Lens' CSVOutput (Maybe QuoteFields)

-- | A value used to separate individual records from each other.
coRecordDelimiter :: Lens' CSVOutput (Maybe Text)

-- | A single character used for escaping the quotation-mark character
--   inside an already escaped value.
coQuoteEscapeCharacter :: Lens' CSVOutput (Maybe Text)

-- | A value used to separate individual fields from each other within a
--   record.
coFieldDelimiter :: Lens' CSVOutput (Maybe Text)

-- | Data retrieval policy.
--   
--   <i>See:</i> <a>dataRetrievalPolicy</a> smart constructor.
data DataRetrievalPolicy

-- | Creates a value of <a>DataRetrievalPolicy</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>drpRules</a> - The policy rule. Although this is a list type,
--   currently there must be only one rule, which contains a Strategy field
--   and optionally a BytesPerHour field.</li>
--   </ul>
dataRetrievalPolicy :: DataRetrievalPolicy

-- | The policy rule. Although this is a list type, currently there must be
--   only one rule, which contains a Strategy field and optionally a
--   BytesPerHour field.
drpRules :: Lens' DataRetrievalPolicy [DataRetrievalRule]

-- | Data retrieval policy rule.
--   
--   <i>See:</i> <a>dataRetrievalRule</a> smart constructor.
data DataRetrievalRule

-- | Creates a value of <a>DataRetrievalRule</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>drrStrategy</a> - The type of data retrieval policy to set.
--   Valid values: BytesPerHour|FreeTier|None</li>
--   <li><a>drrBytesPerHour</a> - The maximum number of bytes that can be
--   retrieved in an hour. This field is required only if the value of the
--   Strategy field is <tt>BytesPerHour</tt> . Your PUT operation will be
--   rejected if the Strategy field is not set to <tt>BytesPerHour</tt> and
--   you set this field.</li>
--   </ul>
dataRetrievalRule :: DataRetrievalRule

-- | The type of data retrieval policy to set. Valid values:
--   BytesPerHour|FreeTier|None
drrStrategy :: Lens' DataRetrievalRule (Maybe Text)

-- | The maximum number of bytes that can be retrieved in an hour. This
--   field is required only if the value of the Strategy field is
--   <tt>BytesPerHour</tt> . Your PUT operation will be rejected if the
--   Strategy field is not set to <tt>BytesPerHour</tt> and you set this
--   field.
drrBytesPerHour :: Lens' DataRetrievalRule (Maybe Integer)

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>describeVaultOutput</a> smart constructor.
data DescribeVaultOutput

-- | Creates a value of <a>DescribeVaultOutput</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dvoVaultName</a> - The name of the vault.</li>
--   <li><a>dvoSizeInBytes</a> - 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.</li>
--   <li><a>dvoLastInventoryDate</a> - The Universal Coordinated Time (UTC)
--   date when Amazon Glacier completed the last vault inventory. This
--   value should be a string in the ISO 8601 date format, for example
--   <tt>2012-03-20T17:03:43.221Z</tt> .</li>
--   <li><a>dvoVaultARN</a> - The Amazon Resource Name (ARN) of the
--   vault.</li>
--   <li><a>dvoCreationDate</a> - 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 <tt>2012-03-20T17:03:43.221Z</tt> .</li>
--   <li><a>dvoNumberOfArchives</a> - The number of archives in the vault
--   as of the last inventory date. This field will return <tt>null</tt> if
--   an inventory has not yet run on the vault, for example if you just
--   created the vault.</li>
--   </ul>
describeVaultOutput :: DescribeVaultOutput

-- | The name of the vault.
dvoVaultName :: Lens' DescribeVaultOutput (Maybe Text)

-- | 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.
dvoSizeInBytes :: Lens' DescribeVaultOutput (Maybe Integer)

-- | The Universal Coordinated Time (UTC) date when Amazon Glacier
--   completed the last vault inventory. This value should be a string in
--   the ISO 8601 date format, for example
--   <tt>2012-03-20T17:03:43.221Z</tt> .
dvoLastInventoryDate :: Lens' DescribeVaultOutput (Maybe Text)

-- | The Amazon Resource Name (ARN) of the vault.
dvoVaultARN :: Lens' DescribeVaultOutput (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
--   <tt>2012-03-20T17:03:43.221Z</tt> .
dvoCreationDate :: Lens' DescribeVaultOutput (Maybe Text)

-- | The number of archives in the vault as of the last inventory date.
--   This field will return <tt>null</tt> if an inventory has not yet run
--   on the vault, for example if you just created the vault.
dvoNumberOfArchives :: Lens' DescribeVaultOutput (Maybe Integer)

-- | Contains information about the encryption used to store the job
--   results in Amazon S3.
--   
--   <i>See:</i> <a>encryption</a> smart constructor.
data Encryption

-- | Creates a value of <a>Encryption</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>eEncryptionType</a> - The server-side encryption algorithm used
--   when storing job results in Amazon S3, for example <tt>AES256</tt> or
--   <tt>aws:kms</tt> .</li>
--   <li><a>eKMSKeyId</a> - The AWS KMS key ID to use for object
--   encryption. All GET and PUT requests for an object protected by AWS
--   KMS fail if not made by using Secure Sockets Layer (SSL) or Signature
--   Version 4.</li>
--   <li><a>eKMSContext</a> - Optional. If the encryption type is
--   <tt>aws:kms</tt> , you can use this value to specify the encryption
--   context for the job results.</li>
--   </ul>
encryption :: Encryption

-- | The server-side encryption algorithm used when storing job results in
--   Amazon S3, for example <tt>AES256</tt> or <tt>aws:kms</tt> .
eEncryptionType :: Lens' Encryption (Maybe EncryptionType)

-- | The AWS KMS key ID to use for object encryption. All GET and PUT
--   requests for an object protected by AWS KMS fail if not made by using
--   Secure Sockets Layer (SSL) or Signature Version 4.
eKMSKeyId :: Lens' Encryption (Maybe Text)

-- | Optional. If the encryption type is <tt>aws:kms</tt> , you can use
--   this value to specify the encryption context for the job results.
eKMSContext :: Lens' Encryption (Maybe Text)

-- | Contains the description of an Amazon Glacier job.
--   
--   <i>See:</i> <a>glacierJobDescription</a> smart constructor.
data GlacierJobDescription

-- | Creates a value of <a>GlacierJobDescription</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gjdSHA256TreeHash</a> - For an archive retrieval job, this
--   value is the checksum of the archive. Otherwise, this value is null.
--   The SHA256 tree hash value for the requested range of an archive. If
--   the <b>InitiateJob</b> request for an archive specified a tree-hash
--   aligned range, then this field returns a value. If the whole archive
--   is retrieved, this value is the same as the ArchiveSHA256TreeHash
--   value. This field is null for the following: * Archive retrieval jobs
--   that specify a range that is not tree-hash aligned * Archival jobs
--   that specify a range that is equal to the whole archive, when the job
--   status is <tt>InProgress</tt> * Inventory jobs * Select jobs</li>
--   <li><a>gjdArchiveId</a> - The archive ID requested for a select job or
--   archive retrieval. Otherwise, this field is null.</li>
--   <li><a>gjdSelectParameters</a> - Contains the parameters used for a
--   select.</li>
--   <li><a>gjdJobId</a> - An opaque string that identifies an Amazon
--   Glacier job.</li>
--   <li><a>gjdJobOutputPath</a> - Contains the job output location.</li>
--   <li><a>gjdRetrievalByteRange</a> - The retrieved byte range for
--   archive retrieval jobs in the form <i>StartByteValue</i>
--   -<i>EndByteValue</i> . If no range was specified in the archive
--   retrieval, then the whole archive is retrieved. In this case,
--   <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size
--   of the archive minus 1. For inventory retrieval or select jobs, this
--   field is null.</li>
--   <li><a>gjdInventoryRetrievalParameters</a> - Parameters used for range
--   inventory retrieval.</li>
--   <li><a>gjdAction</a> - The job type. This value is either
--   <tt>ArchiveRetrieval</tt> , <tt>InventoryRetrieval</tt> , or
--   <tt>Select</tt> .</li>
--   <li><a>gjdJobDescription</a> - The job description provided when
--   initiating the job.</li>
--   <li><a>gjdSNSTopic</a> - An Amazon SNS topic that receives
--   notification.</li>
--   <li><a>gjdStatusMessage</a> - A friendly message that describes the
--   job status.</li>
--   <li><a>gjdVaultARN</a> - The Amazon Resource Name (ARN) of the vault
--   from which an archive retrieval was requested.</li>
--   <li><a>gjdOutputLocation</a> - Contains the location where the data
--   from the select job is stored.</li>
--   <li><a>gjdTier</a> - The tier to use for a select or an archive
--   retrieval. Valid values are <tt>Expedited</tt> , <tt>Standard</tt> ,
--   or <tt>Bulk</tt> . <tt>Standard</tt> is the default.</li>
--   <li><a>gjdArchiveSHA256TreeHash</a> - The SHA256 tree hash of the
--   entire archive for an archive retrieval. For inventory retrieval or
--   select jobs, this field is null.</li>
--   <li><a>gjdCreationDate</a> - The UTC date when the job was created.
--   This value is a string representation of ISO 8601 date format, for
--   example <tt>"2012-03-20T17:03:43.221Z"</tt> .</li>
--   <li><a>gjdCompleted</a> - The job status. When a job is completed, you
--   get the job's output using Get Job Output (GET output).</li>
--   <li><a>gjdCompletionDate</a> - The UTC time that the job request
--   completed. While the job is in progress, the value is null.</li>
--   <li><a>gjdInventorySizeInBytes</a> - For an inventory retrieval job,
--   this value is the size in bytes of the inventory requested for
--   download. For an archive retrieval or select job, this value is
--   null.</li>
--   <li><a>gjdArchiveSizeInBytes</a> - For an archive retrieval job, this
--   value is the size in bytes of the archive being requested for
--   download. For an inventory retrieval or select job, this value is
--   null.</li>
--   <li><a>gjdStatusCode</a> - The status code can be <tt>InProgress</tt>
--   , <tt>Succeeded</tt> , or <tt>Failed</tt> , and indicates the status
--   of the job.</li>
--   </ul>
glacierJobDescription :: GlacierJobDescription

-- | For an archive retrieval job, this value is the checksum of the
--   archive. Otherwise, this value is null. The SHA256 tree hash value for
--   the requested range of an archive. If the <b>InitiateJob</b> request
--   for an archive specified a tree-hash aligned range, then this field
--   returns a value. If the whole archive is retrieved, this value is the
--   same as the ArchiveSHA256TreeHash value. This field is null for the
--   following: * Archive retrieval jobs that specify a range that is not
--   tree-hash aligned * Archival jobs that specify a range that is equal
--   to the whole archive, when the job status is <tt>InProgress</tt> *
--   Inventory jobs * Select jobs
gjdSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)

-- | The archive ID requested for a select job or archive retrieval.
--   Otherwise, this field is null.
gjdArchiveId :: Lens' GlacierJobDescription (Maybe Text)

-- | Contains the parameters used for a select.
gjdSelectParameters :: Lens' GlacierJobDescription (Maybe SelectParameters)

-- | An opaque string that identifies an Amazon Glacier job.
gjdJobId :: Lens' GlacierJobDescription (Maybe Text)

-- | Contains the job output location.
gjdJobOutputPath :: Lens' GlacierJobDescription (Maybe Text)

-- | The retrieved byte range for archive retrieval jobs in the form
--   <i>StartByteValue</i> -<i>EndByteValue</i> . If no range was specified
--   in the archive retrieval, then the whole archive is retrieved. In this
--   case, <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals
--   the size of the archive minus 1. For inventory retrieval or select
--   jobs, this field is null.
gjdRetrievalByteRange :: Lens' GlacierJobDescription (Maybe Text)

-- | Parameters used for range inventory retrieval.
gjdInventoryRetrievalParameters :: Lens' GlacierJobDescription (Maybe InventoryRetrievalJobDescription)

-- | The job type. This value is either <tt>ArchiveRetrieval</tt> ,
--   <tt>InventoryRetrieval</tt> , or <tt>Select</tt> .
gjdAction :: Lens' GlacierJobDescription (Maybe ActionCode)

-- | The job description provided when initiating the job.
gjdJobDescription :: Lens' GlacierJobDescription (Maybe Text)

-- | An Amazon SNS topic that receives notification.
gjdSNSTopic :: Lens' GlacierJobDescription (Maybe Text)

-- | A friendly message that describes the job status.
gjdStatusMessage :: Lens' GlacierJobDescription (Maybe Text)

-- | The Amazon Resource Name (ARN) of the vault from which an archive
--   retrieval was requested.
gjdVaultARN :: Lens' GlacierJobDescription (Maybe Text)

-- | Contains the location where the data from the select job is stored.
gjdOutputLocation :: Lens' GlacierJobDescription (Maybe OutputLocation)

-- | The tier to use for a select or an archive retrieval. Valid values are
--   <tt>Expedited</tt> , <tt>Standard</tt> , or <tt>Bulk</tt> .
--   <tt>Standard</tt> is the default.
gjdTier :: Lens' GlacierJobDescription (Maybe Text)

-- | The SHA256 tree hash of the entire archive for an archive retrieval.
--   For inventory retrieval or select jobs, this field is null.
gjdArchiveSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)

-- | The UTC date when the job was created. This value is a string
--   representation of ISO 8601 date format, for example
--   <tt>"2012-03-20T17:03:43.221Z"</tt> .
gjdCreationDate :: Lens' GlacierJobDescription (Maybe Text)

-- | The job status. When a job is completed, you get the job's output
--   using Get Job Output (GET output).
gjdCompleted :: Lens' GlacierJobDescription (Maybe Bool)

-- | The UTC time that the job request completed. While the job is in
--   progress, the value is null.
gjdCompletionDate :: Lens' GlacierJobDescription (Maybe Text)

-- | For an inventory retrieval job, this value is the size in bytes of the
--   inventory requested for download. For an archive retrieval or select
--   job, this value is null.
gjdInventorySizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)

-- | For an archive retrieval job, this value is the size in bytes of the
--   archive being requested for download. For an inventory retrieval or
--   select job, this value is null.
gjdArchiveSizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)

-- | The status code can be <tt>InProgress</tt> , <tt>Succeeded</tt> , or
--   <tt>Failed</tt> , and indicates the status of the job.
gjdStatusCode :: Lens' GlacierJobDescription (Maybe StatusCode)

-- | Contains information about a grant.
--   
--   <i>See:</i> <a>grant</a> smart constructor.
data Grant

-- | Creates a value of <a>Grant</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gPermission</a> - Specifies the permission given to the
--   grantee.</li>
--   <li><a>gGrantee</a> - The grantee.</li>
--   </ul>
grant :: Grant

-- | Specifies the permission given to the grantee.
gPermission :: Lens' Grant (Maybe Permission)

-- | The grantee.
gGrantee :: Lens' Grant (Maybe Grantee)

-- | Contains information about the grantee.
--   
--   <i>See:</i> <a>grantee</a> smart constructor.
data Grantee

-- | Creates a value of <a>Grantee</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gURI</a> - URI of the grantee group.</li>
--   <li><a>gEmailAddress</a> - Email address of the grantee.</li>
--   <li><a>gDisplayName</a> - Screen name of the grantee.</li>
--   <li><a>gId</a> - The canonical user ID of the grantee.</li>
--   <li><a>gType</a> - Type of grantee</li>
--   </ul>
grantee :: Type -> Grantee

-- | URI of the grantee group.
gURI :: Lens' Grantee (Maybe Text)

-- | Email address of the grantee.
gEmailAddress :: Lens' Grantee (Maybe Text)

-- | Screen name of the grantee.
gDisplayName :: Lens' Grantee (Maybe Text)

-- | The canonical user ID of the grantee.
gId :: Lens' Grantee (Maybe Text)

-- | Type of grantee
gType :: Lens' Grantee Type

-- | Describes how the archive is serialized.
--   
--   <i>See:</i> <a>inputSerialization</a> smart constructor.
data InputSerialization

-- | Creates a value of <a>InputSerialization</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>isCsv</a> - Describes the serialization of a CSV-encoded
--   object.</li>
--   </ul>
inputSerialization :: InputSerialization

-- | Describes the serialization of a CSV-encoded object.
isCsv :: Lens' InputSerialization (Maybe CSVInput)

-- | Describes the options for a range inventory retrieval job.
--   
--   <i>See:</i> <a>inventoryRetrievalJobDescription</a> smart constructor.
data InventoryRetrievalJobDescription

-- | Creates a value of <a>InventoryRetrievalJobDescription</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>irjdFormat</a> - The output format for the vault inventory
--   list, which is set by the <b>InitiateJob</b> request when initiating a
--   job to retrieve a vault inventory. Valid values are <tt>CSV</tt> and
--   <tt>JSON</tt> .</li>
--   <li><a>irjdEndDate</a> - The end of the date range in UTC for vault
--   inventory retrieval that includes archives created before this date.
--   This value should be a string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .</li>
--   <li><a>irjdStartDate</a> - The start of the date range in Universal
--   Coordinated Time (UTC) for vault inventory retrieval that includes
--   archives created on or after this date. This value should be a string
--   in the ISO 8601 date format, for example <tt>2013-03-20T17:03:43Z</tt>
--   .</li>
--   <li><a>irjdMarker</a> - An opaque string that represents where to
--   continue pagination of the vault inventory retrieval results. You use
--   the marker in a new <b>InitiateJob</b> request to obtain additional
--   inventory items. If there are no more inventory items, this value is
--   <tt>null</tt> . For more information, see <a>Range Inventory
--   Retrieval</a> .</li>
--   <li><a>irjdLimit</a> - The maximum number of inventory items returned
--   per vault inventory retrieval request. This limit is set when
--   initiating the job with the a <b>InitiateJob</b> request.</li>
--   </ul>
inventoryRetrievalJobDescription :: InventoryRetrievalJobDescription

-- | The output format for the vault inventory list, which is set by the
--   <b>InitiateJob</b> request when initiating a job to retrieve a vault
--   inventory. Valid values are <tt>CSV</tt> and <tt>JSON</tt> .
irjdFormat :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | The end of the date range in UTC for vault inventory retrieval that
--   includes archives created before this date. This value should be a
--   string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .
irjdEndDate :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | The start of the date range in Universal Coordinated Time (UTC) for
--   vault inventory retrieval that includes archives created on or after
--   this date. This value should be a string in the ISO 8601 date format,
--   for example <tt>2013-03-20T17:03:43Z</tt> .
irjdStartDate :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | An opaque string that represents where to continue pagination of the
--   vault inventory retrieval results. You use the marker in a new
--   <b>InitiateJob</b> request to obtain additional inventory items. If
--   there are no more inventory items, this value is <tt>null</tt> . For
--   more information, see <a>Range Inventory Retrieval</a> .
irjdMarker :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | The maximum number of inventory items returned per vault inventory
--   retrieval request. This limit is set when initiating the job with the
--   a <b>InitiateJob</b> request.
irjdLimit :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | Provides options for specifying a range inventory retrieval job.
--   
--   <i>See:</i> <a>inventoryRetrievalJobInput</a> smart constructor.
data InventoryRetrievalJobInput

-- | Creates a value of <a>InventoryRetrievalJobInput</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>irjiEndDate</a> - The end of the date range in UTC for vault
--   inventory retrieval that includes archives created before this date.
--   This value should be a string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .</li>
--   <li><a>irjiStartDate</a> - The start of the date range in UTC for
--   vault inventory retrieval that includes archives created on or after
--   this date. This value should be a string in the ISO 8601 date format,
--   for example <tt>2013-03-20T17:03:43Z</tt> .</li>
--   <li><a>irjiMarker</a> - An opaque string that represents where to
--   continue pagination of the vault inventory retrieval results. You use
--   the marker in a new <b>InitiateJob</b> request to obtain additional
--   inventory items. If there are no more inventory items, this value is
--   <tt>null</tt> .</li>
--   <li><a>irjiLimit</a> - Specifies the maximum number of inventory items
--   returned per vault inventory retrieval request. Valid values are
--   greater than or equal to 1.</li>
--   </ul>
inventoryRetrievalJobInput :: InventoryRetrievalJobInput

-- | The end of the date range in UTC for vault inventory retrieval that
--   includes archives created before this date. This value should be a
--   string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .
irjiEndDate :: Lens' InventoryRetrievalJobInput (Maybe Text)

-- | The start of the date range in UTC for vault inventory retrieval that
--   includes archives created on or after this date. This value should be
--   a string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .
irjiStartDate :: Lens' InventoryRetrievalJobInput (Maybe Text)

-- | An opaque string that represents where to continue pagination of the
--   vault inventory retrieval results. You use the marker in a new
--   <b>InitiateJob</b> request to obtain additional inventory items. If
--   there are no more inventory items, this value is <tt>null</tt> .
irjiMarker :: Lens' InventoryRetrievalJobInput (Maybe Text)

-- | Specifies the maximum number of inventory items returned per vault
--   inventory retrieval request. Valid values are greater than or equal to
--   1.
irjiLimit :: Lens' InventoryRetrievalJobInput (Maybe Text)

-- | Provides options for defining a job.
--   
--   <i>See:</i> <a>jobParameters</a> smart constructor.
data JobParameters

-- | Creates a value of <a>JobParameters</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>jpArchiveId</a> - The ID of the archive that you want to
--   retrieve. This field is required only if <tt>Type</tt> is set to
--   <tt>select</tt> or <tt>archive-retrieval</tt> code&gt;. An error
--   occurs if you specify this request parameter for an inventory
--   retrieval job request.</li>
--   <li><a>jpSelectParameters</a> - Contains the parameters that define a
--   job.</li>
--   <li><a>jpFormat</a> - When initiating a job to retrieve a vault
--   inventory, you can optionally add this parameter to your request to
--   specify the output format. If you are initiating an inventory job and
--   do not specify a Format field, JSON is the default format. Valid
--   values are <a>CSV</a> and <a>JSON</a>.</li>
--   <li><a>jpRetrievalByteRange</a> - The byte range to retrieve for an
--   archive retrieval. in the form "<i>StartByteValue</i>
--   -<i>EndByteValue</i> " If not specified, the whole archive is
--   retrieved. If specified, the byte range must be megabyte (1024*1024)
--   aligned which means that <i>StartByteValue</i> must be divisible by 1
--   MB and <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the
--   end of the archive specified as the archive byte size value minus 1.
--   If RetrievalByteRange is not megabyte aligned, this operation returns
--   a 400 response. An error occurs if you specify this field for an
--   inventory retrieval job request.</li>
--   <li><a>jpInventoryRetrievalParameters</a> - Input parameters used for
--   range inventory retrieval.</li>
--   <li><a>jpSNSTopic</a> - The Amazon SNS topic ARN to which Amazon
--   Glacier sends a notification when the job is completed and the output
--   is ready for you to download. The specified topic publishes the
--   notification to its subscribers. The SNS topic must exist.</li>
--   <li><a>jpOutputLocation</a> - Contains information about the location
--   where the select job results are stored.</li>
--   <li><a>jpTier</a> - The tier to use for a select or an archive
--   retrieval job. Valid values are <tt>Expedited</tt> , <tt>Standard</tt>
--   , or <tt>Bulk</tt> . <tt>Standard</tt> is the default.</li>
--   <li><a>jpType</a> - The job type. You can initiate a job to perform a
--   select query on an archive, retrieve an archive, or get an inventory
--   of a vault. Valid values are "select", "archive-retrieval" and
--   "inventory-retrieval".</li>
--   <li><a>jpDescription</a> - The optional description for the job. The
--   description must be less than or equal to 1,024 bytes. The allowable
--   characters are 7-bit ASCII without control codes-specifically, ASCII
--   values 32-126 decimal or 0x20-0x7E hexadecimal.</li>
--   </ul>
jobParameters :: JobParameters

-- | The ID of the archive that you want to retrieve. This field is
--   required only if <tt>Type</tt> is set to <tt>select</tt> or
--   <tt>archive-retrieval</tt> code&gt;. An error occurs if you specify
--   this request parameter for an inventory retrieval job request.
jpArchiveId :: Lens' JobParameters (Maybe Text)

-- | Contains the parameters that define a job.
jpSelectParameters :: Lens' JobParameters (Maybe SelectParameters)

-- | When initiating a job to retrieve a vault inventory, you can
--   optionally add this parameter to your request to specify the output
--   format. If you are initiating an inventory job and do not specify a
--   Format field, JSON is the default format. Valid values are <a>CSV</a>
--   and <a>JSON</a>.
jpFormat :: Lens' JobParameters (Maybe Text)

-- | The byte range to retrieve for an archive retrieval. in the form
--   "<i>StartByteValue</i> -<i>EndByteValue</i> " If not specified, the
--   whole archive is retrieved. If specified, the byte range must be
--   megabyte (1024*1024) aligned which means that <i>StartByteValue</i>
--   must be divisible by 1 MB and <i>EndByteValue</i> plus 1 must be
--   divisible by 1 MB or be the end of the archive specified as the
--   archive byte size value minus 1. If RetrievalByteRange is not megabyte
--   aligned, this operation returns a 400 response. An error occurs if you
--   specify this field for an inventory retrieval job request.
jpRetrievalByteRange :: Lens' JobParameters (Maybe Text)

-- | Input parameters used for range inventory retrieval.
jpInventoryRetrievalParameters :: Lens' JobParameters (Maybe InventoryRetrievalJobInput)

-- | The Amazon SNS topic ARN to which Amazon Glacier sends a notification
--   when the job is completed and the output is ready for you to download.
--   The specified topic publishes the notification to its subscribers. The
--   SNS topic must exist.
jpSNSTopic :: Lens' JobParameters (Maybe Text)

-- | Contains information about the location where the select job results
--   are stored.
jpOutputLocation :: Lens' JobParameters (Maybe OutputLocation)

-- | The tier to use for a select or an archive retrieval job. Valid values
--   are <tt>Expedited</tt> , <tt>Standard</tt> , or <tt>Bulk</tt> .
--   <tt>Standard</tt> is the default.
jpTier :: Lens' JobParameters (Maybe Text)

-- | The job type. You can initiate a job to perform a select query on an
--   archive, retrieve an archive, or get an inventory of a vault. Valid
--   values are "select", "archive-retrieval" and "inventory-retrieval".
jpType :: Lens' JobParameters (Maybe Text)

-- | The optional description for the job. The description must be less
--   than or equal to 1,024 bytes. The allowable characters are 7-bit ASCII
--   without control codes-specifically, ASCII values 32-126 decimal or
--   0x20-0x7E hexadecimal.
jpDescription :: Lens' JobParameters (Maybe Text)

-- | Contains information about the location where the select job results
--   are stored.
--   
--   <i>See:</i> <a>outputLocation</a> smart constructor.
data OutputLocation

-- | Creates a value of <a>OutputLocation</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>olS3</a> - Describes an S3 location that will receive the
--   results of the job request.</li>
--   </ul>
outputLocation :: OutputLocation

-- | Describes an S3 location that will receive the results of the job
--   request.
olS3 :: Lens' OutputLocation (Maybe S3Location)

-- | Describes how the select output is serialized.
--   
--   <i>See:</i> <a>outputSerialization</a> smart constructor.
data OutputSerialization

-- | Creates a value of <a>OutputSerialization</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>osCsv</a> - Describes the serialization of CSV-encoded query
--   results.</li>
--   </ul>
outputSerialization :: OutputSerialization

-- | Describes the serialization of CSV-encoded query results.
osCsv :: Lens' OutputSerialization (Maybe CSVOutput)

-- | A list of the part sizes of the multipart upload.
--   
--   <i>See:</i> <a>partListElement</a> smart constructor.
data PartListElement

-- | Creates a value of <a>PartListElement</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>pleSHA256TreeHash</a> - The SHA256 tree hash value that Amazon
--   Glacier calculated for the part. This field is never <tt>null</tt>
--   .</li>
--   <li><a>pleRangeInBytes</a> - The byte range of a part, inclusive of
--   the upper value of the range.</li>
--   </ul>
partListElement :: PartListElement

-- | The SHA256 tree hash value that Amazon Glacier calculated for the
--   part. This field is never <tt>null</tt> .
pleSHA256TreeHash :: Lens' PartListElement (Maybe Text)

-- | The byte range of a part, inclusive of the upper value of the range.
pleRangeInBytes :: Lens' PartListElement (Maybe Text)

-- | The definition for a provisioned capacity unit.
--   
--   <i>See:</i> <a>provisionedCapacityDescription</a> smart constructor.
data ProvisionedCapacityDescription

-- | Creates a value of <a>ProvisionedCapacityDescription</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>pcdCapacityId</a> - The ID that identifies the provisioned
--   capacity unit.</li>
--   <li><a>pcdStartDate</a> - The date that the provisioned capacity unit
--   was purchased, in Universal Coordinated Time (UTC).</li>
--   <li><a>pcdExpirationDate</a> - The date that the provisioned capacity
--   unit expires, in Universal Coordinated Time (UTC).</li>
--   </ul>
provisionedCapacityDescription :: ProvisionedCapacityDescription

-- | The ID that identifies the provisioned capacity unit.
pcdCapacityId :: Lens' ProvisionedCapacityDescription (Maybe Text)

-- | The date that the provisioned capacity unit was purchased, in
--   Universal Coordinated Time (UTC).
pcdStartDate :: Lens' ProvisionedCapacityDescription (Maybe Text)

-- | The date that the provisioned capacity unit expires, in Universal
--   Coordinated Time (UTC).
pcdExpirationDate :: Lens' ProvisionedCapacityDescription (Maybe Text)

-- | Contains information about the location in Amazon S3 where the select
--   job results are stored.
--   
--   <i>See:</i> <a>s3Location</a> smart constructor.
data S3Location

-- | Creates a value of <a>S3Location</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>slCannedACL</a> - The canned access control list (ACL) to apply
--   to the job results.</li>
--   <li><a>slPrefix</a> - The prefix that is prepended to the results for
--   this request.</li>
--   <li><a>slBucketName</a> - The name of the Amazon S3 bucket where the
--   job results are stored.</li>
--   <li><a>slAccessControlList</a> - A list of grants that control access
--   to the staged results.</li>
--   <li><a>slUserMetadata</a> - A map of metadata to store with the job
--   results in Amazon S3.</li>
--   <li><a>slEncryption</a> - Contains information about the encryption
--   used to store the job results in Amazon S3.</li>
--   <li><a>slStorageClass</a> - The storage class used to store the job
--   results.</li>
--   <li><a>slTagging</a> - The tag-set that is applied to the job
--   results.</li>
--   </ul>
s3Location :: S3Location

-- | The canned access control list (ACL) to apply to the job results.
slCannedACL :: Lens' S3Location (Maybe CannedACL)

-- | The prefix that is prepended to the results for this request.
slPrefix :: Lens' S3Location (Maybe Text)

-- | The name of the Amazon S3 bucket where the job results are stored.
slBucketName :: Lens' S3Location (Maybe Text)

-- | A list of grants that control access to the staged results.
slAccessControlList :: Lens' S3Location [Grant]

-- | A map of metadata to store with the job results in Amazon S3.
slUserMetadata :: Lens' S3Location (HashMap Text Text)

-- | Contains information about the encryption used to store the job
--   results in Amazon S3.
slEncryption :: Lens' S3Location (Maybe Encryption)

-- | The storage class used to store the job results.
slStorageClass :: Lens' S3Location (Maybe StorageClass)

-- | The tag-set that is applied to the job results.
slTagging :: Lens' S3Location (HashMap Text Text)

-- | Contains information about the parameters used for a select.
--   
--   <i>See:</i> <a>selectParameters</a> smart constructor.
data SelectParameters

-- | Creates a value of <a>SelectParameters</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>spExpressionType</a> - The type of the provided expression, for
--   example <tt>SQL</tt> .</li>
--   <li><a>spOutputSerialization</a> - Describes how the results of the
--   select job are serialized.</li>
--   <li><a>spExpression</a> - The expression that is used to select the
--   object.</li>
--   <li><a>spInputSerialization</a> - Describes the serialization format
--   of the object.</li>
--   </ul>
selectParameters :: SelectParameters

-- | The type of the provided expression, for example <tt>SQL</tt> .
spExpressionType :: Lens' SelectParameters (Maybe ExpressionType)

-- | Describes how the results of the select job are serialized.
spOutputSerialization :: Lens' SelectParameters (Maybe OutputSerialization)

-- | The expression that is used to select the object.
spExpression :: Lens' SelectParameters (Maybe Text)

-- | Describes the serialization format of the object.
spInputSerialization :: Lens' SelectParameters (Maybe InputSerialization)

-- | A list of in-progress multipart uploads for a vault.
--   
--   <i>See:</i> <a>uploadListElement</a> smart constructor.
data UploadListElement

-- | Creates a value of <a>UploadListElement</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>uleMultipartUploadId</a> - The ID of a multipart upload.</li>
--   <li><a>ulePartSizeInBytes</a> - The part size, in bytes, specified in
--   the Initiate Multipart Upload request. This is the size of all the
--   parts in the upload except the last part, which may be smaller than
--   this size.</li>
--   <li><a>uleArchiveDescription</a> - The description of the archive that
--   was specified in the Initiate Multipart Upload request.</li>
--   <li><a>uleVaultARN</a> - The Amazon Resource Name (ARN) of the vault
--   that contains the archive.</li>
--   <li><a>uleCreationDate</a> - The UTC time at which the multipart
--   upload was initiated.</li>
--   </ul>
uploadListElement :: UploadListElement

-- | The ID of a multipart upload.
uleMultipartUploadId :: Lens' UploadListElement (Maybe Text)

-- | The part size, in bytes, specified in the Initiate Multipart Upload
--   request. This is the size of all the parts in the upload except the
--   last part, which may be smaller than this size.
ulePartSizeInBytes :: Lens' UploadListElement (Maybe Integer)

-- | The description of the archive that was specified in the Initiate
--   Multipart Upload request.
uleArchiveDescription :: Lens' UploadListElement (Maybe Text)

-- | The Amazon Resource Name (ARN) of the vault that contains the archive.
uleVaultARN :: Lens' UploadListElement (Maybe Text)

-- | The UTC time at which the multipart upload was initiated.
uleCreationDate :: Lens' UploadListElement (Maybe Text)

-- | Contains the vault access policy.
--   
--   <i>See:</i> <a>vaultAccessPolicy</a> smart constructor.
data VaultAccessPolicy

-- | Creates a value of <a>VaultAccessPolicy</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>vapPolicy</a> - The vault access policy.</li>
--   </ul>
vaultAccessPolicy :: VaultAccessPolicy

-- | The vault access policy.
vapPolicy :: Lens' VaultAccessPolicy (Maybe Text)

-- | Contains the vault lock policy.
--   
--   <i>See:</i> <a>vaultLockPolicy</a> smart constructor.
data VaultLockPolicy

-- | Creates a value of <a>VaultLockPolicy</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>vlpPolicy</a> - The vault lock policy.</li>
--   </ul>
vaultLockPolicy :: VaultLockPolicy

-- | The vault lock policy.
vlpPolicy :: Lens' VaultLockPolicy (Maybe Text)

-- | Represents a vault's notification configuration.
--   
--   <i>See:</i> <a>vaultNotificationConfig</a> smart constructor.
data VaultNotificationConfig

-- | Creates a value of <a>VaultNotificationConfig</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>vncSNSTopic</a> - The Amazon Simple Notification Service
--   (Amazon SNS) topic Amazon Resource Name (ARN).</li>
--   <li><a>vncEvents</a> - A list of one or more events for which Amazon
--   Glacier will send a notification to the specified Amazon SNS
--   topic.</li>
--   </ul>
vaultNotificationConfig :: VaultNotificationConfig

-- | The Amazon Simple Notification Service (Amazon SNS) topic Amazon
--   Resource Name (ARN).
vncSNSTopic :: Lens' VaultNotificationConfig (Maybe Text)

-- | A list of one or more events for which Amazon Glacier will send a
--   notification to the specified Amazon SNS topic.
vncEvents :: Lens' VaultNotificationConfig [Text]


-- | This operation configures notifications that will be sent when
--   specific events happen to a vault. By default, you don't get any
--   notifications.
--   
--   To configure vault notifications, send a PUT request to the
--   <tt>notification-configuration</tt> subresource of the vault. The
--   request should include a JSON document that provides an Amazon SNS
--   topic and specific events for which you want Amazon Glacier to send
--   notifications to the topic.
--   
--   Amazon SNS topics must grant permission to the vault to be allowed to
--   publish notifications to the topic. You can configure a vault to
--   publish a notification for the following vault events:
--   
--   <ul>
--   <li><b>ArchiveRetrievalCompleted</b> This event occurs when a job that
--   was initiated for an archive retrieval is completed
--   (<tt>InitiateJob</tt> ). The status of the completed job can be
--   <a>Succeeded</a> or <a>Failed</a>. The notification sent to the SNS
--   topic is the same output as returned from <tt>DescribeJob</tt> .</li>
--   <li><b>InventoryRetrievalCompleted</b> This event occurs when a job
--   that was initiated for an inventory retrieval is completed
--   (<tt>InitiateJob</tt> ). The status of the completed job can be
--   <a>Succeeded</a> or <a>Failed</a>. The notification sent to the SNS
--   topic is the same output as returned from <tt>DescribeJob</tt> .</li>
--   </ul>
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Configuring
--   Vault Notifications in Amazon Glacier</a> and <a>Set Vault
--   Notification Configuration</a> in the <i>Amazon Glacier Developer
--   Guide</i> .
module Network.AWS.Glacier.SetVaultNotifications

-- | Creates a value of <a>SetVaultNotifications</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>svnVaultNotificationConfig</a> - Provides options for
--   specifying notification configuration.</li>
--   <li><a>svnAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>svnVaultName</a> - The name of the vault.</li>
--   </ul>
setVaultNotifications :: Text -> Text -> SetVaultNotifications

-- | Provides options to configure notifications that will be sent when
--   specific events happen to a vault.
--   
--   <i>See:</i> <a>setVaultNotifications</a> smart constructor.
data SetVaultNotifications

-- | Provides options for specifying notification configuration.
svnVaultNotificationConfig :: Lens' SetVaultNotifications (Maybe VaultNotificationConfig)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
svnAccountId :: Lens' SetVaultNotifications Text

-- | The name of the vault.
svnVaultName :: Lens' SetVaultNotifications Text

-- | Creates a value of <a>SetVaultNotificationsResponse</a> with the
--   minimum fields required to make a request.
setVaultNotificationsResponse :: SetVaultNotificationsResponse

-- | <i>See:</i> <a>setVaultNotificationsResponse</a> smart constructor.
data SetVaultNotificationsResponse
instance GHC.Generics.Generic Network.AWS.Glacier.SetVaultNotifications.SetVaultNotificationsResponse
instance Data.Data.Data Network.AWS.Glacier.SetVaultNotifications.SetVaultNotificationsResponse
instance GHC.Show.Show Network.AWS.Glacier.SetVaultNotifications.SetVaultNotificationsResponse
instance GHC.Read.Read Network.AWS.Glacier.SetVaultNotifications.SetVaultNotificationsResponse
instance GHC.Classes.Eq Network.AWS.Glacier.SetVaultNotifications.SetVaultNotificationsResponse
instance GHC.Generics.Generic Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance Data.Data.Data Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance GHC.Show.Show Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance GHC.Read.Read Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance GHC.Classes.Eq Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance Control.DeepSeq.NFData Network.AWS.Glacier.SetVaultNotifications.SetVaultNotificationsResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance Control.DeepSeq.NFData Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.SetVaultNotifications.SetVaultNotifications


-- | This operation configures an access policy for a vault and will
--   overwrite an existing policy. To configure a vault access policy, send
--   a PUT request to the <tt>access-policy</tt> subresource of the vault.
--   An access policy is specific to a vault and is also called a vault
--   subresource. You can set one access policy per vault and the policy
--   can be up to 20 KB in size. For more information about vault access
--   policies, see <a>Amazon Glacier Access Control with Vault Access
--   Policies</a> .
module Network.AWS.Glacier.SetVaultAccessPolicy

-- | Creates a value of <a>SetVaultAccessPolicy</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>svapPolicy</a> - The vault access policy as a JSON string.</li>
--   <li><a>svapAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>svapVaultName</a> - The name of the vault.</li>
--   </ul>
setVaultAccessPolicy :: Text -> Text -> SetVaultAccessPolicy

-- | SetVaultAccessPolicy input.
--   
--   <i>See:</i> <a>setVaultAccessPolicy</a> smart constructor.
data SetVaultAccessPolicy

-- | The vault access policy as a JSON string.
svapPolicy :: Lens' SetVaultAccessPolicy (Maybe VaultAccessPolicy)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
svapAccountId :: Lens' SetVaultAccessPolicy Text

-- | The name of the vault.
svapVaultName :: Lens' SetVaultAccessPolicy Text

-- | Creates a value of <a>SetVaultAccessPolicyResponse</a> with the
--   minimum fields required to make a request.
setVaultAccessPolicyResponse :: SetVaultAccessPolicyResponse

-- | <i>See:</i> <a>setVaultAccessPolicyResponse</a> smart constructor.
data SetVaultAccessPolicyResponse
instance GHC.Generics.Generic Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicyResponse
instance Data.Data.Data Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicyResponse
instance GHC.Show.Show Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicyResponse
instance GHC.Read.Read Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicyResponse
instance GHC.Classes.Eq Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicyResponse
instance GHC.Generics.Generic Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance Data.Data.Data Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance GHC.Show.Show Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance GHC.Read.Read Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance GHC.Classes.Eq Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicyResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.SetVaultAccessPolicy.SetVaultAccessPolicy


-- | This operation sets and then enacts a data retrieval policy in the
--   region specified in the PUT request. You can set one policy per region
--   for an AWS account. The policy is enacted within a few minutes of a
--   successful PUT operation.
--   
--   The set policy operation does not affect retrieval jobs that were in
--   progress before the policy was enacted. For more information about
--   data retrieval policies, see <a>Amazon Glacier Data Retrieval
--   Policies</a> .
module Network.AWS.Glacier.SetDataRetrievalPolicy

-- | Creates a value of <a>SetDataRetrievalPolicy</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>sdrpPolicy</a> - The data retrieval policy in JSON format.</li>
--   <li><a>sdrpAccountId</a> - The <tt>AccountId</tt> value is the AWS
--   account ID. This value must match the AWS account ID associated with
--   the credentials used to sign the request. You can either specify an
--   AWS account ID or optionally a single '<tt>-</tt> ' (hyphen), in which
--   case Amazon Glacier uses the AWS account ID associated with the
--   credentials used to sign the request. If you specify your account ID,
--   do not include any hyphens (<a>-</a>) in the ID.</li>
--   </ul>
setDataRetrievalPolicy :: Text -> SetDataRetrievalPolicy

-- | SetDataRetrievalPolicy input.
--   
--   <i>See:</i> <a>setDataRetrievalPolicy</a> smart constructor.
data SetDataRetrievalPolicy

-- | The data retrieval policy in JSON format.
sdrpPolicy :: Lens' SetDataRetrievalPolicy (Maybe DataRetrievalPolicy)

-- | The <tt>AccountId</tt> value is the AWS account ID. This value must
--   match the AWS account ID associated with the credentials used to sign
--   the request. You can either specify an AWS account ID or optionally a
--   single '<tt>-</tt> ' (hyphen), in which case Amazon Glacier uses the
--   AWS account ID associated with the credentials used to sign the
--   request. If you specify your account ID, do not include any hyphens
--   (<a>-</a>) in the ID.
sdrpAccountId :: Lens' SetDataRetrievalPolicy Text

-- | Creates a value of <a>SetDataRetrievalPolicyResponse</a> with the
--   minimum fields required to make a request.
setDataRetrievalPolicyResponse :: SetDataRetrievalPolicyResponse

-- | <i>See:</i> <a>setDataRetrievalPolicyResponse</a> smart constructor.
data SetDataRetrievalPolicyResponse
instance GHC.Generics.Generic Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicyResponse
instance Data.Data.Data Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicyResponse
instance GHC.Show.Show Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicyResponse
instance GHC.Read.Read Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicyResponse
instance GHC.Classes.Eq Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicyResponse
instance GHC.Generics.Generic Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance Data.Data.Data Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance GHC.Show.Show Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance GHC.Read.Read Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance GHC.Classes.Eq Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicyResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.SetDataRetrievalPolicy.SetDataRetrievalPolicy


-- | This operation removes one or more tags from the set of tags attached
--   to a vault. For more information about tags, see <a>Tagging Amazon
--   Glacier Resources</a> . This operation is idempotent. The operation
--   will be successful, even if there are no tags attached to the vault.
module Network.AWS.Glacier.RemoveTagsFromVault

-- | Creates a value of <a>RemoveTagsFromVault</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>rtfvTagKeys</a> - A list of tag keys. Each corresponding tag is
--   removed from the vault.</li>
--   <li><a>rtfvAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>rtfvVaultName</a> - The name of the vault.</li>
--   </ul>
removeTagsFromVault :: Text -> Text -> RemoveTagsFromVault

-- | The input value for <tt>RemoveTagsFromVaultInput</tt> .
--   
--   <i>See:</i> <a>removeTagsFromVault</a> smart constructor.
data RemoveTagsFromVault

-- | A list of tag keys. Each corresponding tag is removed from the vault.
rtfvTagKeys :: Lens' RemoveTagsFromVault [Text]

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
rtfvAccountId :: Lens' RemoveTagsFromVault Text

-- | The name of the vault.
rtfvVaultName :: Lens' RemoveTagsFromVault Text

-- | Creates a value of <a>RemoveTagsFromVaultResponse</a> with the minimum
--   fields required to make a request.
removeTagsFromVaultResponse :: RemoveTagsFromVaultResponse

-- | <i>See:</i> <a>removeTagsFromVaultResponse</a> smart constructor.
data RemoveTagsFromVaultResponse
instance GHC.Generics.Generic Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVaultResponse
instance Data.Data.Data Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVaultResponse
instance GHC.Show.Show Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVaultResponse
instance GHC.Read.Read Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVaultResponse
instance GHC.Classes.Eq Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVaultResponse
instance GHC.Generics.Generic Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance Data.Data.Data Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance GHC.Show.Show Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance GHC.Read.Read Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance GHC.Classes.Eq Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVaultResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.RemoveTagsFromVault.RemoveTagsFromVault


-- | This operation purchases a provisioned capacity unit for an AWS
--   account.
module Network.AWS.Glacier.PurchaseProvisionedCapacity

-- | Creates a value of <a>PurchaseProvisionedCapacity</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ppcAccountId</a> - The AWS account ID of the account that owns
--   the vault. You can either specify an AWS account ID or optionally a
--   single <a>-</a> (hyphen), in which case Amazon Glacier uses the AWS
--   account ID associated with the credentials used to sign the request.
--   If you use an account ID, don't include any hyphens (<a>-</a>) in the
--   ID.</li>
--   </ul>
purchaseProvisionedCapacity :: Text -> PurchaseProvisionedCapacity

-- | <i>See:</i> <a>purchaseProvisionedCapacity</a> smart constructor.
data PurchaseProvisionedCapacity

-- | The AWS account ID of the account that owns the vault. You can either
--   specify an AWS account ID or optionally a single <a>-</a> (hyphen), in
--   which case Amazon Glacier uses the AWS account ID associated with the
--   credentials used to sign the request. If you use an account ID, don't
--   include any hyphens (<a>-</a>) in the ID.
ppcAccountId :: Lens' PurchaseProvisionedCapacity Text

-- | Creates a value of <a>PurchaseProvisionedCapacityResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ppcrsCapacityId</a> - The ID that identifies the provisioned
--   capacity unit.</li>
--   <li><a>ppcrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
purchaseProvisionedCapacityResponse :: Int -> PurchaseProvisionedCapacityResponse

-- | <i>See:</i> <a>purchaseProvisionedCapacityResponse</a> smart
--   constructor.
data PurchaseProvisionedCapacityResponse

-- | The ID that identifies the provisioned capacity unit.
ppcrsCapacityId :: Lens' PurchaseProvisionedCapacityResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
ppcrsResponseStatus :: Lens' PurchaseProvisionedCapacityResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacityResponse
instance Data.Data.Data Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacityResponse
instance GHC.Show.Show Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacityResponse
instance GHC.Read.Read Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacityResponse
instance GHC.Classes.Eq Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacityResponse
instance GHC.Generics.Generic Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance Data.Data.Data Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance GHC.Show.Show Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance GHC.Read.Read Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance GHC.Classes.Eq Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance Control.DeepSeq.NFData Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacityResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance Control.DeepSeq.NFData Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.PurchaseProvisionedCapacity.PurchaseProvisionedCapacity


-- | This operation lists all vaults owned by the calling user's account.
--   The list returned in the response is ASCII-sorted by vault name.
--   
--   By default, this operation returns up to 1,000 items. If there are
--   more vaults to list, the response <tt>marker</tt> field contains the
--   vault Amazon Resource Name (ARN) at which to continue the list with a
--   new List Vaults request; otherwise, the <tt>marker</tt> field is
--   <tt>null</tt> . To return a list of vaults that begins at a specific
--   vault, set the <tt>marker</tt> request parameter to the vault ARN you
--   obtained from a previous List Vaults request. You can also limit the
--   number of vaults returned in the response by specifying the
--   <tt>limit</tt> parameter in the request.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Retrieving
--   Vault Metadata in Amazon Glacier</a> and <a>List Vaults</a> in the
--   <i>Amazon Glacier Developer Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.Glacier.ListVaults

-- | Creates a value of <a>ListVaults</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lvMarker</a> - A string used for pagination. The marker
--   specifies the vault ARN after which the listing of vaults should
--   begin.</li>
--   <li><a>lvLimit</a> - The maximum number of vaults to be returned. The
--   default limit is 1000. The number of vaults returned might be fewer
--   than the specified limit, but the number of returned vaults never
--   exceeds the limit.</li>
--   <li><a>lvAccountId</a> - The <tt>AccountId</tt> value is the AWS
--   account ID. This value must match the AWS account ID associated with
--   the credentials used to sign the request. You can either specify an
--   AWS account ID or optionally a single '<tt>-</tt> ' (hyphen), in which
--   case Amazon Glacier uses the AWS account ID associated with the
--   credentials used to sign the request. If you specify your account ID,
--   do not include any hyphens (<a>-</a>) in the ID.</li>
--   </ul>
listVaults :: Text -> ListVaults

-- | Provides options to retrieve the vault list owned by the calling
--   user's account. The list provides metadata information for each vault.
--   
--   <i>See:</i> <a>listVaults</a> smart constructor.
data ListVaults

-- | A string used for pagination. The marker specifies the vault ARN after
--   which the listing of vaults should begin.
lvMarker :: Lens' ListVaults (Maybe Text)

-- | The maximum number of vaults to be returned. The default limit is
--   1000. The number of vaults returned might be fewer than the specified
--   limit, but the number of returned vaults never exceeds the limit.
lvLimit :: Lens' ListVaults (Maybe Text)

-- | The <tt>AccountId</tt> value is the AWS account ID. This value must
--   match the AWS account ID associated with the credentials used to sign
--   the request. You can either specify an AWS account ID or optionally a
--   single '<tt>-</tt> ' (hyphen), in which case Amazon Glacier uses the
--   AWS account ID associated with the credentials used to sign the
--   request. If you specify your account ID, do not include any hyphens
--   (<a>-</a>) in the ID.
lvAccountId :: Lens' ListVaults Text

-- | Creates a value of <a>ListVaultsResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lvrsMarker</a> - The vault ARN at which to continue pagination
--   of the results. You use the marker in another List Vaults request to
--   obtain more vaults in the list.</li>
--   <li><a>lvrsVaultList</a> - List of vaults.</li>
--   <li><a>lvrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listVaultsResponse :: Int -> ListVaultsResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>listVaultsResponse</a> smart constructor.
data ListVaultsResponse

-- | The vault ARN at which to continue pagination of the results. You use
--   the marker in another List Vaults request to obtain more vaults in the
--   list.
lvrsMarker :: Lens' ListVaultsResponse (Maybe Text)

-- | List of vaults.
lvrsVaultList :: Lens' ListVaultsResponse [DescribeVaultOutput]

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
lvrsResponseStatus :: Lens' ListVaultsResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.ListVaults.ListVaultsResponse
instance Data.Data.Data Network.AWS.Glacier.ListVaults.ListVaultsResponse
instance GHC.Show.Show Network.AWS.Glacier.ListVaults.ListVaultsResponse
instance GHC.Read.Read Network.AWS.Glacier.ListVaults.ListVaultsResponse
instance GHC.Classes.Eq Network.AWS.Glacier.ListVaults.ListVaultsResponse
instance GHC.Generics.Generic Network.AWS.Glacier.ListVaults.ListVaults
instance Data.Data.Data Network.AWS.Glacier.ListVaults.ListVaults
instance GHC.Show.Show Network.AWS.Glacier.ListVaults.ListVaults
instance GHC.Read.Read Network.AWS.Glacier.ListVaults.ListVaults
instance GHC.Classes.Eq Network.AWS.Glacier.ListVaults.ListVaults
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.ListVaults.ListVaults
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListVaults.ListVaultsResponse
instance Network.AWS.Pager.AWSPager Network.AWS.Glacier.ListVaults.ListVaults
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.ListVaults.ListVaults
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListVaults.ListVaults
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.ListVaults.ListVaults
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.ListVaults.ListVaults
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.ListVaults.ListVaults


-- | This operation lists all the tags attached to a vault. The operation
--   returns an empty map if there are no tags. For more information about
--   tags, see <a>Tagging Amazon Glacier Resources</a> .
module Network.AWS.Glacier.ListTagsForVault

-- | Creates a value of <a>ListTagsForVault</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ltfvAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>ltfvVaultName</a> - The name of the vault.</li>
--   </ul>
listTagsForVault :: Text -> Text -> ListTagsForVault

-- | The input value for <tt>ListTagsForVaultInput</tt> .
--   
--   <i>See:</i> <a>listTagsForVault</a> smart constructor.
data ListTagsForVault

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
ltfvAccountId :: Lens' ListTagsForVault Text

-- | The name of the vault.
ltfvVaultName :: Lens' ListTagsForVault Text

-- | Creates a value of <a>ListTagsForVaultResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ltfvrsTags</a> - The tags attached to the vault. Each tag is
--   composed of a key and a value.</li>
--   <li><a>ltfvrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listTagsForVaultResponse :: Int -> ListTagsForVaultResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>listTagsForVaultResponse</a> smart constructor.
data ListTagsForVaultResponse

-- | The tags attached to the vault. Each tag is composed of a key and a
--   value.
ltfvrsTags :: Lens' ListTagsForVaultResponse (HashMap Text Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
ltfvrsResponseStatus :: Lens' ListTagsForVaultResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.ListTagsForVault.ListTagsForVaultResponse
instance Data.Data.Data Network.AWS.Glacier.ListTagsForVault.ListTagsForVaultResponse
instance GHC.Show.Show Network.AWS.Glacier.ListTagsForVault.ListTagsForVaultResponse
instance GHC.Read.Read Network.AWS.Glacier.ListTagsForVault.ListTagsForVaultResponse
instance GHC.Classes.Eq Network.AWS.Glacier.ListTagsForVault.ListTagsForVaultResponse
instance GHC.Generics.Generic Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance Data.Data.Data Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance GHC.Show.Show Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance GHC.Read.Read Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance GHC.Classes.Eq Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListTagsForVault.ListTagsForVaultResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.ListTagsForVault.ListTagsForVault
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.ListTagsForVault.ListTagsForVault


-- | This operation lists the provisioned capacity units for the specified
--   AWS account.
module Network.AWS.Glacier.ListProvisionedCapacity

-- | Creates a value of <a>ListProvisionedCapacity</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lpcAccountId</a> - The AWS account ID of the account that owns
--   the vault. You can either specify an AWS account ID or optionally a
--   single <a>-</a> (hyphen), in which case Amazon Glacier uses the AWS
--   account ID associated with the credentials used to sign the request.
--   If you use an account ID, don't include any hyphens (<a>-</a>) in the
--   ID.</li>
--   </ul>
listProvisionedCapacity :: Text -> ListProvisionedCapacity

-- | <i>See:</i> <a>listProvisionedCapacity</a> smart constructor.
data ListProvisionedCapacity

-- | The AWS account ID of the account that owns the vault. You can either
--   specify an AWS account ID or optionally a single <a>-</a> (hyphen), in
--   which case Amazon Glacier uses the AWS account ID associated with the
--   credentials used to sign the request. If you use an account ID, don't
--   include any hyphens (<a>-</a>) in the ID.
lpcAccountId :: Lens' ListProvisionedCapacity Text

-- | Creates a value of <a>ListProvisionedCapacityResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lpcrsProvisionedCapacityList</a> - The response body contains
--   the following JSON fields.</li>
--   <li><a>lpcrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listProvisionedCapacityResponse :: Int -> ListProvisionedCapacityResponse

-- | <i>See:</i> <a>listProvisionedCapacityResponse</a> smart constructor.
data ListProvisionedCapacityResponse

-- | The response body contains the following JSON fields.
lpcrsProvisionedCapacityList :: Lens' ListProvisionedCapacityResponse [ProvisionedCapacityDescription]

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
lpcrsResponseStatus :: Lens' ListProvisionedCapacityResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacityResponse
instance Data.Data.Data Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacityResponse
instance GHC.Show.Show Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacityResponse
instance GHC.Read.Read Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacityResponse
instance GHC.Classes.Eq Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacityResponse
instance GHC.Generics.Generic Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance Data.Data.Data Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance GHC.Show.Show Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance GHC.Read.Read Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance GHC.Classes.Eq Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacityResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.ListProvisionedCapacity.ListProvisionedCapacity


-- | This operation lists the parts of an archive that have been uploaded
--   in a specific multipart upload. You can make this request at any time
--   during an in-progress multipart upload before you complete the upload
--   (see <tt>CompleteMultipartUpload</tt> . List Parts returns an error
--   for completed uploads. The list returned in the List Parts response is
--   sorted by part range.
--   
--   The List Parts operation supports pagination. By default, this
--   operation returns up to 1,000 uploaded parts in the response. You
--   should always check the response for a <tt>marker</tt> at which to
--   continue the list; if there are no more items the <tt>marker</tt> is
--   <tt>null</tt> . To return a list of parts that begins at a specific
--   part, set the <tt>marker</tt> request parameter to the value you
--   obtained from a previous List Parts request. You can also limit the
--   number of parts returned in the response by specifying the
--   <tt>limit</tt> parameter in the request.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and the underlying REST API, see <a>Working
--   with Archives in Amazon Glacier</a> and <a>List Parts</a> in the
--   <i>Amazon Glacier Developer Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.Glacier.ListParts

-- | Creates a value of <a>ListParts</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lpMarker</a> - An opaque string used for pagination. This value
--   specifies the part at which the listing of parts should begin. Get the
--   marker value from the response of a previous List Parts response. You
--   need only include the marker if you are continuing the pagination of
--   results started in a previous List Parts request.</li>
--   <li><a>lpLimit</a> - The maximum number of parts to be returned. The
--   default limit is 1000. The number of parts returned might be fewer
--   than the specified limit, but the number of returned parts never
--   exceeds the limit.</li>
--   <li><a>lpAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>lpVaultName</a> - The name of the vault.</li>
--   <li><a>lpUploadId</a> - The upload ID of the multipart upload.</li>
--   </ul>
listParts :: Text -> Text -> Text -> ListParts

-- | Provides options for retrieving a list of parts of an archive that
--   have been uploaded in a specific multipart upload.
--   
--   <i>See:</i> <a>listParts</a> smart constructor.
data ListParts

-- | An opaque string used for pagination. This value specifies the part at
--   which the listing of parts should begin. Get the marker value from the
--   response of a previous List Parts response. You need only include the
--   marker if you are continuing the pagination of results started in a
--   previous List Parts request.
lpMarker :: Lens' ListParts (Maybe Text)

-- | The maximum number of parts to be returned. The default limit is 1000.
--   The number of parts returned might be fewer than the specified limit,
--   but the number of returned parts never exceeds the limit.
lpLimit :: Lens' ListParts (Maybe Text)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
lpAccountId :: Lens' ListParts Text

-- | The name of the vault.
lpVaultName :: Lens' ListParts Text

-- | The upload ID of the multipart upload.
lpUploadId :: Lens' ListParts Text

-- | Creates a value of <a>ListPartsResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lprsParts</a> - A list of the part sizes of the multipart
--   upload. Each object in the array contains a <tt>RangeBytes</tt> and
--   <tt>sha256-tree-hash</tt> name/value pair.</li>
--   <li><a>lprsMultipartUploadId</a> - The ID of the upload to which the
--   parts are associated.</li>
--   <li><a>lprsPartSizeInBytes</a> - The part size in bytes. This is the
--   same value that you specified in the Initiate Multipart Upload
--   request.</li>
--   <li><a>lprsArchiveDescription</a> - The description of the archive
--   that was specified in the Initiate Multipart Upload request.</li>
--   <li><a>lprsVaultARN</a> - The Amazon Resource Name (ARN) of the vault
--   to which the multipart upload was initiated.</li>
--   <li><a>lprsMarker</a> - An opaque string that represents where to
--   continue pagination of the results. You use the marker in a new List
--   Parts request to obtain more jobs in the list. If there are no more
--   parts, this value is <tt>null</tt> .</li>
--   <li><a>lprsCreationDate</a> - The UTC time at which the multipart
--   upload was initiated.</li>
--   <li><a>lprsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listPartsResponse :: Int -> ListPartsResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>listPartsResponse</a> smart constructor.
data ListPartsResponse

-- | A list of the part sizes of the multipart upload. Each object in the
--   array contains a <tt>RangeBytes</tt> and <tt>sha256-tree-hash</tt>
--   name/value pair.
lprsParts :: Lens' ListPartsResponse [PartListElement]

-- | The ID of the upload to which the parts are associated.
lprsMultipartUploadId :: Lens' ListPartsResponse (Maybe Text)

-- | The part size in bytes. This is the same value that you specified in
--   the Initiate Multipart Upload request.
lprsPartSizeInBytes :: Lens' ListPartsResponse (Maybe Integer)

-- | The description of the archive that was specified in the Initiate
--   Multipart Upload request.
lprsArchiveDescription :: Lens' ListPartsResponse (Maybe Text)

-- | The Amazon Resource Name (ARN) of the vault to which the multipart
--   upload was initiated.
lprsVaultARN :: Lens' ListPartsResponse (Maybe Text)

-- | An opaque string that represents where to continue pagination of the
--   results. You use the marker in a new List Parts request to obtain more
--   jobs in the list. If there are no more parts, this value is
--   <tt>null</tt> .
lprsMarker :: Lens' ListPartsResponse (Maybe Text)

-- | The UTC time at which the multipart upload was initiated.
lprsCreationDate :: Lens' ListPartsResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
lprsResponseStatus :: Lens' ListPartsResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.ListParts.ListPartsResponse
instance Data.Data.Data Network.AWS.Glacier.ListParts.ListPartsResponse
instance GHC.Show.Show Network.AWS.Glacier.ListParts.ListPartsResponse
instance GHC.Read.Read Network.AWS.Glacier.ListParts.ListPartsResponse
instance GHC.Classes.Eq Network.AWS.Glacier.ListParts.ListPartsResponse
instance GHC.Generics.Generic Network.AWS.Glacier.ListParts.ListParts
instance Data.Data.Data Network.AWS.Glacier.ListParts.ListParts
instance GHC.Show.Show Network.AWS.Glacier.ListParts.ListParts
instance GHC.Read.Read Network.AWS.Glacier.ListParts.ListParts
instance GHC.Classes.Eq Network.AWS.Glacier.ListParts.ListParts
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.ListParts.ListParts
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListParts.ListPartsResponse
instance Network.AWS.Pager.AWSPager Network.AWS.Glacier.ListParts.ListParts
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.ListParts.ListParts
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListParts.ListParts
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.ListParts.ListParts
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.ListParts.ListParts
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.ListParts.ListParts


-- | This operation lists in-progress multipart uploads for the specified
--   vault. An in-progress multipart upload is a multipart upload that has
--   been initiated by an <tt>InitiateMultipartUpload</tt> request, but has
--   not yet been completed or aborted. The list returned in the List
--   Multipart Upload response has no guaranteed order.
--   
--   The List Multipart Uploads operation supports pagination. By default,
--   this operation returns up to 1,000 multipart uploads in the response.
--   You should always check the response for a <tt>marker</tt> at which to
--   continue the list; if there are no more items the <tt>marker</tt> is
--   <tt>null</tt> . To return a list of multipart uploads that begins at a
--   specific upload, set the <tt>marker</tt> request parameter to the
--   value you obtained from a previous List Multipart Upload request. You
--   can also limit the number of uploads returned in the response by
--   specifying the <tt>limit</tt> parameter in the request.
--   
--   Note the difference between this operation and listing parts
--   (<tt>ListParts</tt> ). The List Multipart Uploads operation lists all
--   multipart uploads for a vault and does not require a multipart upload
--   ID. The List Parts operation requires a multipart upload ID since
--   parts are associated with a single upload.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and the underlying REST API, see <a>Working
--   with Archives in Amazon Glacier</a> and <a>List Multipart Uploads</a>
--   in the <i>Amazon Glacier Developer Guide</i> .
--   
--   This operation returns paginated results.
module Network.AWS.Glacier.ListMultipartUploads

-- | Creates a value of <a>ListMultipartUploads</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lmuMarker</a> - An opaque string used for pagination. This
--   value specifies the upload at which the listing of uploads should
--   begin. Get the marker value from a previous List Uploads response. You
--   need only include the marker if you are continuing the pagination of
--   results started in a previous List Uploads request.</li>
--   <li><a>lmuLimit</a> - Specifies the maximum number of uploads returned
--   in the response body. If this value is not specified, the List Uploads
--   operation returns up to 1,000 uploads.</li>
--   <li><a>lmuAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>lmuVaultName</a> - The name of the vault.</li>
--   </ul>
listMultipartUploads :: Text -> Text -> ListMultipartUploads

-- | Provides options for retrieving list of in-progress multipart uploads
--   for an Amazon Glacier vault.
--   
--   <i>See:</i> <a>listMultipartUploads</a> smart constructor.
data ListMultipartUploads

-- | An opaque string used for pagination. This value specifies the upload
--   at which the listing of uploads should begin. Get the marker value
--   from a previous List Uploads response. You need only include the
--   marker if you are continuing the pagination of results started in a
--   previous List Uploads request.
lmuMarker :: Lens' ListMultipartUploads (Maybe Text)

-- | Specifies the maximum number of uploads returned in the response body.
--   If this value is not specified, the List Uploads operation returns up
--   to 1,000 uploads.
lmuLimit :: Lens' ListMultipartUploads (Maybe Text)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
lmuAccountId :: Lens' ListMultipartUploads Text

-- | The name of the vault.
lmuVaultName :: Lens' ListMultipartUploads Text

-- | Creates a value of <a>ListMultipartUploadsResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>lmursUploadsList</a> - A list of in-progress multipart
--   uploads.</li>
--   <li><a>lmursMarker</a> - An opaque string that represents where to
--   continue pagination of the results. You use the marker in a new List
--   Multipart Uploads request to obtain more uploads in the list. If there
--   are no more uploads, this value is <tt>null</tt> .</li>
--   <li><a>lmursResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listMultipartUploadsResponse :: Int -> ListMultipartUploadsResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>listMultipartUploadsResponse</a> smart constructor.
data ListMultipartUploadsResponse

-- | A list of in-progress multipart uploads.
lmursUploadsList :: Lens' ListMultipartUploadsResponse [UploadListElement]

-- | An opaque string that represents where to continue pagination of the
--   results. You use the marker in a new List Multipart Uploads request to
--   obtain more uploads in the list. If there are no more uploads, this
--   value is <tt>null</tt> .
lmursMarker :: Lens' ListMultipartUploadsResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
lmursResponseStatus :: Lens' ListMultipartUploadsResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploadsResponse
instance Data.Data.Data Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploadsResponse
instance GHC.Show.Show Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploadsResponse
instance GHC.Read.Read Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploadsResponse
instance GHC.Classes.Eq Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploadsResponse
instance GHC.Generics.Generic Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance Data.Data.Data Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance GHC.Show.Show Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance GHC.Read.Read Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance GHC.Classes.Eq Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploadsResponse
instance Network.AWS.Pager.AWSPager Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.ListMultipartUploads.ListMultipartUploads


-- | This operation lists jobs for a vault, including jobs that are
--   in-progress and jobs that have recently finished. The List Job
--   operation returns a list of these jobs sorted by job initiation time.
--   
--   The List Jobs operation supports pagination. You should always check
--   the response <tt>Marker</tt> field. If there are no more jobs to list,
--   the <tt>Marker</tt> field is set to <tt>null</tt> . If there are more
--   jobs to list, the <tt>Marker</tt> field is set to a non-null value,
--   which you can use to continue the pagination of the list. To return a
--   list of jobs that begins at a specific job, set the marker request
--   parameter to the <tt>Marker</tt> value for that job that you obtained
--   from a previous List Jobs request.
--   
--   You can set a maximum limit for the number of jobs returned in the
--   response by specifying the <tt>limit</tt> parameter in the request.
--   The default limit is 1000. The number of jobs returned might be fewer
--   than the limit, but the number of returned jobs never exceeds the
--   limit.
--   
--   Additionally, you can filter the jobs list returned by specifying the
--   optional <tt>statuscode</tt> parameter or <tt>completed</tt>
--   parameter, or both. Using the <tt>statuscode</tt> parameter, you can
--   specify to return only jobs that match either the <tt>InProgress</tt>
--   , <tt>Succeeded</tt> , or <tt>Failed</tt> status. Using the
--   <tt>completed</tt> parameter, you can specify to return only jobs that
--   were completed (<tt>true</tt> ) or jobs that were not completed
--   (<tt>false</tt> ).
--   
--   For more information about using this operation, see the documentation
--   for the underlying REST API <a>List Jobs</a> .
--   
--   This operation returns paginated results.
module Network.AWS.Glacier.ListJobs

-- | Creates a value of <a>ListJobs</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ljMarker</a> - An opaque string used for pagination. This value
--   specifies the job at which the listing of jobs should begin. Get the
--   marker value from a previous List Jobs response. You only need to
--   include the marker if you are continuing the pagination of results
--   started in a previous List Jobs request.</li>
--   <li><a>ljCompleted</a> - The state of the jobs to return. You can
--   specify <tt>true</tt> or <tt>false</tt> .</li>
--   <li><a>ljLimit</a> - The maximum number of jobs to be returned. The
--   default limit is 1000. The number of jobs returned might be fewer than
--   the specified limit, but the number of returned jobs never exceeds the
--   limit.</li>
--   <li><a>ljStatuscode</a> - The type of job status to return. You can
--   specify the following values: <tt>InProgress</tt> , <tt>Succeeded</tt>
--   , or <tt>Failed</tt> .</li>
--   <li><a>ljAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>ljVaultName</a> - The name of the vault.</li>
--   </ul>
listJobs :: Text -> Text -> ListJobs

-- | Provides options for retrieving a job list for an Amazon Glacier
--   vault.
--   
--   <i>See:</i> <a>listJobs</a> smart constructor.
data ListJobs

-- | An opaque string used for pagination. This value specifies the job at
--   which the listing of jobs should begin. Get the marker value from a
--   previous List Jobs response. You only need to include the marker if
--   you are continuing the pagination of results started in a previous
--   List Jobs request.
ljMarker :: Lens' ListJobs (Maybe Text)

-- | The state of the jobs to return. You can specify <tt>true</tt> or
--   <tt>false</tt> .
ljCompleted :: Lens' ListJobs (Maybe Text)

-- | The maximum number of jobs to be returned. The default limit is 1000.
--   The number of jobs returned might be fewer than the specified limit,
--   but the number of returned jobs never exceeds the limit.
ljLimit :: Lens' ListJobs (Maybe Text)

-- | The type of job status to return. You can specify the following
--   values: <tt>InProgress</tt> , <tt>Succeeded</tt> , or <tt>Failed</tt>
--   .
ljStatuscode :: Lens' ListJobs (Maybe Text)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
ljAccountId :: Lens' ListJobs Text

-- | The name of the vault.
ljVaultName :: Lens' ListJobs Text

-- | Creates a value of <a>ListJobsResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ljrsMarker</a> - An opaque string used for pagination that
--   specifies the job at which the listing of jobs should begin. You get
--   the <tt>marker</tt> value from a previous List Jobs response. You only
--   need to include the marker if you are continuing the pagination of the
--   results started in a previous List Jobs request.</li>
--   <li><a>ljrsJobList</a> - A list of job objects. Each job object
--   contains metadata describing the job.</li>
--   <li><a>ljrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listJobsResponse :: Int -> ListJobsResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>listJobsResponse</a> smart constructor.
data ListJobsResponse

-- | An opaque string used for pagination that specifies the job at which
--   the listing of jobs should begin. You get the <tt>marker</tt> value
--   from a previous List Jobs response. You only need to include the
--   marker if you are continuing the pagination of the results started in
--   a previous List Jobs request.
ljrsMarker :: Lens' ListJobsResponse (Maybe Text)

-- | A list of job objects. Each job object contains metadata describing
--   the job.
ljrsJobList :: Lens' ListJobsResponse [GlacierJobDescription]

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
ljrsResponseStatus :: Lens' ListJobsResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.ListJobs.ListJobsResponse
instance Data.Data.Data Network.AWS.Glacier.ListJobs.ListJobsResponse
instance GHC.Show.Show Network.AWS.Glacier.ListJobs.ListJobsResponse
instance GHC.Read.Read Network.AWS.Glacier.ListJobs.ListJobsResponse
instance GHC.Classes.Eq Network.AWS.Glacier.ListJobs.ListJobsResponse
instance GHC.Generics.Generic Network.AWS.Glacier.ListJobs.ListJobs
instance Data.Data.Data Network.AWS.Glacier.ListJobs.ListJobs
instance GHC.Show.Show Network.AWS.Glacier.ListJobs.ListJobs
instance GHC.Read.Read Network.AWS.Glacier.ListJobs.ListJobs
instance GHC.Classes.Eq Network.AWS.Glacier.ListJobs.ListJobs
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.ListJobs.ListJobs
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListJobs.ListJobsResponse
instance Network.AWS.Pager.AWSPager Network.AWS.Glacier.ListJobs.ListJobs
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.ListJobs.ListJobs
instance Control.DeepSeq.NFData Network.AWS.Glacier.ListJobs.ListJobs
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.ListJobs.ListJobs
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.ListJobs.ListJobs
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.ListJobs.ListJobs


-- | This operation initiates the vault locking process by doing the
--   following:
--   
--   <ul>
--   <li>Installing a vault lock policy on the specified vault.</li>
--   <li>Setting the lock state of vault lock to <tt>InProgress</tt> .</li>
--   <li>Returning a lock ID, which is used to complete the vault locking
--   process.</li>
--   </ul>
--   
--   You can set one vault lock policy for each vault and this policy can
--   be up to 20 KB in size. For more information about vault lock
--   policies, see <a>Amazon Glacier Access Control with Vault Lock
--   Policies</a> .
--   
--   You must complete the vault locking process within 24 hours after the
--   vault lock enters the <tt>InProgress</tt> state. After the 24 hour
--   window ends, the lock ID expires, the vault automatically exits the
--   <tt>InProgress</tt> state, and the vault lock policy is removed from
--   the vault. You call <tt>CompleteVaultLock</tt> to complete the vault
--   locking process by setting the state of the vault lock to
--   <tt>Locked</tt> .
--   
--   After a vault lock is in the <tt>Locked</tt> state, you cannot
--   initiate a new vault lock for the vault.
--   
--   You can abort the vault locking process by calling
--   <tt>AbortVaultLock</tt> . You can get the state of the vault lock by
--   calling <tt>GetVaultLock</tt> . For more information about the vault
--   locking process, <a>Amazon Glacier Vault Lock</a> .
--   
--   If this operation is called when the vault lock is in the
--   <tt>InProgress</tt> state, the operation returns an
--   <tt>AccessDeniedException</tt> error. When the vault lock is in the
--   <tt>InProgress</tt> state you must call <tt>AbortVaultLock</tt> before
--   you can initiate a new vault lock policy.
module Network.AWS.Glacier.InitiateVaultLock

-- | Creates a value of <a>InitiateVaultLock</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ivlPolicy</a> - The vault lock policy as a JSON string, which
--   uses "" as an escape character.</li>
--   <li><a>ivlAccountId</a> - The <tt>AccountId</tt> value is the AWS
--   account ID. This value must match the AWS account ID associated with
--   the credentials used to sign the request. You can either specify an
--   AWS account ID or optionally a single '<tt>-</tt> ' (hyphen), in which
--   case Amazon Glacier uses the AWS account ID associated with the
--   credentials used to sign the request. If you specify your account ID,
--   do not include any hyphens (<a>-</a>) in the ID.</li>
--   <li><a>ivlVaultName</a> - The name of the vault.</li>
--   </ul>
initiateVaultLock :: Text -> Text -> InitiateVaultLock

-- | The input values for <tt>InitiateVaultLock</tt> .
--   
--   <i>See:</i> <a>initiateVaultLock</a> smart constructor.
data InitiateVaultLock

-- | The vault lock policy as a JSON string, which uses "" as an escape
--   character.
ivlPolicy :: Lens' InitiateVaultLock (Maybe VaultLockPolicy)

-- | The <tt>AccountId</tt> value is the AWS account ID. This value must
--   match the AWS account ID associated with the credentials used to sign
--   the request. You can either specify an AWS account ID or optionally a
--   single '<tt>-</tt> ' (hyphen), in which case Amazon Glacier uses the
--   AWS account ID associated with the credentials used to sign the
--   request. If you specify your account ID, do not include any hyphens
--   (<a>-</a>) in the ID.
ivlAccountId :: Lens' InitiateVaultLock Text

-- | The name of the vault.
ivlVaultName :: Lens' InitiateVaultLock Text

-- | Creates a value of <a>InitiateVaultLockResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ivlrsLockId</a> - The lock ID, which is used to complete the
--   vault locking process.</li>
--   <li><a>ivlrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
initiateVaultLockResponse :: Int -> InitiateVaultLockResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>initiateVaultLockResponse</a> smart constructor.
data InitiateVaultLockResponse

-- | The lock ID, which is used to complete the vault locking process.
ivlrsLockId :: Lens' InitiateVaultLockResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
ivlrsResponseStatus :: Lens' InitiateVaultLockResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLockResponse
instance Data.Data.Data Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLockResponse
instance GHC.Show.Show Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLockResponse
instance GHC.Read.Read Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLockResponse
instance GHC.Classes.Eq Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLockResponse
instance GHC.Generics.Generic Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance Data.Data.Data Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance GHC.Show.Show Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance GHC.Read.Read Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance GHC.Classes.Eq Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance Control.DeepSeq.NFData Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLockResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance Control.DeepSeq.NFData Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.InitiateVaultLock.InitiateVaultLock


-- | This operation initiates a multipart upload. Amazon Glacier creates a
--   multipart upload resource and returns its ID in the response. The
--   multipart upload ID is used in subsequent requests to upload parts of
--   an archive (see <tt>UploadMultipartPart</tt> ).
--   
--   When you initiate a multipart upload, you specify the part size in
--   number of bytes. The part size must be a megabyte (1024 KB) multiplied
--   by a power of 2-for example, 1048576 (1 MB), 2097152 (2 MB), 4194304
--   (4 MB), 8388608 (8 MB), and so on. The minimum allowable part size is
--   1 MB, and the maximum is 4 GB.
--   
--   Every part you upload to this resource (see
--   <tt>UploadMultipartPart</tt> ), except the last one, must have the
--   same size. The last one can be the same size or smaller. For example,
--   suppose you want to upload a 16.2 MB file. If you initiate the
--   multipart upload with a part size of 4 MB, you will upload four parts
--   of 4 MB each and one part of 0.2 MB.
--   
--   After you complete the multipart upload, Amazon Glacier removes the
--   multipart upload resource referenced by the ID. Amazon Glacier also
--   removes the multipart upload resource if you cancel the multipart
--   upload or it may be removed if there is no activity for a period of 24
--   hours.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Uploading
--   Large Archives in Parts (Multipart Upload)</a> and <a>Initiate
--   Multipart Upload</a> in the <i>Amazon Glacier Developer Guide</i> .
module Network.AWS.Glacier.InitiateMultipartUpload

-- | Creates a value of <a>InitiateMultipartUpload</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>imuPartSize</a> - The size of each part except the last, in
--   bytes. The last part can be smaller than this part size.</li>
--   <li><a>imuArchiveDescription</a> - The archive description that you
--   are uploading in parts. The part size must be a megabyte (1024 KB)
--   multiplied by a power of 2, for example 1048576 (1 MB), 2097152 (2
--   MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum allowable
--   part size is 1 MB, and the maximum is 4 GB (4096 MB).</li>
--   <li><a>imuAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>imuVaultName</a> - The name of the vault.</li>
--   </ul>
initiateMultipartUpload :: Text -> Text -> InitiateMultipartUpload

-- | Provides options for initiating a multipart upload to an Amazon
--   Glacier vault.
--   
--   <i>See:</i> <a>initiateMultipartUpload</a> smart constructor.
data InitiateMultipartUpload

-- | The size of each part except the last, in bytes. The last part can be
--   smaller than this part size.
imuPartSize :: Lens' InitiateMultipartUpload (Maybe Text)

-- | The archive description that you are uploading in parts. The part size
--   must be a megabyte (1024 KB) multiplied by a power of 2, for example
--   1048576 (1 MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so
--   on. The minimum allowable part size is 1 MB, and the maximum is 4 GB
--   (4096 MB).
imuArchiveDescription :: Lens' InitiateMultipartUpload (Maybe Text)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
imuAccountId :: Lens' InitiateMultipartUpload Text

-- | The name of the vault.
imuVaultName :: Lens' InitiateMultipartUpload Text

-- | Creates a value of <a>InitiateMultipartUploadResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>imursLocation</a> - The relative URI path of the multipart
--   upload ID Amazon Glacier created.</li>
--   <li><a>imursUploadId</a> - The ID of the multipart upload. This value
--   is also included as part of the location.</li>
--   <li><a>imursResponseStatus</a> - -- | The response status code.</li>
--   </ul>
initiateMultipartUploadResponse :: Int -> InitiateMultipartUploadResponse

-- | The Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>initiateMultipartUploadResponse</a> smart constructor.
data InitiateMultipartUploadResponse

-- | The relative URI path of the multipart upload ID Amazon Glacier
--   created.
imursLocation :: Lens' InitiateMultipartUploadResponse (Maybe Text)

-- | The ID of the multipart upload. This value is also included as part of
--   the location.
imursUploadId :: Lens' InitiateMultipartUploadResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
imursResponseStatus :: Lens' InitiateMultipartUploadResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUploadResponse
instance Data.Data.Data Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUploadResponse
instance GHC.Show.Show Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUploadResponse
instance GHC.Read.Read Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUploadResponse
instance GHC.Classes.Eq Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUploadResponse
instance GHC.Generics.Generic Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance Data.Data.Data Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance GHC.Show.Show Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance GHC.Read.Read Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance GHC.Classes.Eq Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance Control.DeepSeq.NFData Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUploadResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance Control.DeepSeq.NFData Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.InitiateMultipartUpload.InitiateMultipartUpload


-- | This operation initiates a job of the specified type, which can be a
--   select, an archival retrieval, or a vault retrieval. For more
--   information about using this operation, see the documentation for the
--   underlying REST API <a>Initiate a Job</a> .
module Network.AWS.Glacier.InitiateJob

-- | Creates a value of <a>InitiateJob</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ijJobParameters</a> - Provides options for specifying job
--   information.</li>
--   <li><a>ijAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>ijVaultName</a> - The name of the vault.</li>
--   </ul>
initiateJob :: Text -> Text -> InitiateJob

-- | Provides options for initiating an Amazon Glacier job.
--   
--   <i>See:</i> <a>initiateJob</a> smart constructor.
data InitiateJob

-- | Provides options for specifying job information.
ijJobParameters :: Lens' InitiateJob (Maybe JobParameters)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
ijAccountId :: Lens' InitiateJob Text

-- | The name of the vault.
ijVaultName :: Lens' InitiateJob Text

-- | Creates a value of <a>InitiateJobResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ijrsJobId</a> - The ID of the job.</li>
--   <li><a>ijrsJobOutputPath</a> - The path to the location of where the
--   select results are stored.</li>
--   <li><a>ijrsLocation</a> - The relative URI path of the job.</li>
--   <li><a>ijrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
initiateJobResponse :: Int -> InitiateJobResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>initiateJobResponse</a> smart constructor.
data InitiateJobResponse

-- | The ID of the job.
ijrsJobId :: Lens' InitiateJobResponse (Maybe Text)

-- | The path to the location of where the select results are stored.
ijrsJobOutputPath :: Lens' InitiateJobResponse (Maybe Text)

-- | The relative URI path of the job.
ijrsLocation :: Lens' InitiateJobResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
ijrsResponseStatus :: Lens' InitiateJobResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.InitiateJob.InitiateJobResponse
instance Data.Data.Data Network.AWS.Glacier.InitiateJob.InitiateJobResponse
instance GHC.Show.Show Network.AWS.Glacier.InitiateJob.InitiateJobResponse
instance GHC.Read.Read Network.AWS.Glacier.InitiateJob.InitiateJobResponse
instance GHC.Classes.Eq Network.AWS.Glacier.InitiateJob.InitiateJobResponse
instance GHC.Generics.Generic Network.AWS.Glacier.InitiateJob.InitiateJob
instance Data.Data.Data Network.AWS.Glacier.InitiateJob.InitiateJob
instance GHC.Show.Show Network.AWS.Glacier.InitiateJob.InitiateJob
instance GHC.Read.Read Network.AWS.Glacier.InitiateJob.InitiateJob
instance GHC.Classes.Eq Network.AWS.Glacier.InitiateJob.InitiateJob
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.InitiateJob.InitiateJob
instance Control.DeepSeq.NFData Network.AWS.Glacier.InitiateJob.InitiateJobResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.InitiateJob.InitiateJob
instance Control.DeepSeq.NFData Network.AWS.Glacier.InitiateJob.InitiateJob
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.InitiateJob.InitiateJob
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.InitiateJob.InitiateJob
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.InitiateJob.InitiateJob
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.InitiateJob.InitiateJob


-- | This operation retrieves the <tt>notification-configuration</tt>
--   subresource of the specified vault.
--   
--   For information about setting a notification configuration on a vault,
--   see <tt>SetVaultNotifications</tt> . If a notification configuration
--   for a vault is not set, the operation returns a <tt>404 Not Found</tt>
--   error. For more information about vault notifications, see
--   <a>Configuring Vault Notifications in Amazon Glacier</a> .
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Configuring
--   Vault Notifications in Amazon Glacier</a> and <a>Get Vault
--   Notification Configuration</a> in the <i>Amazon Glacier Developer
--   Guide</i> .
module Network.AWS.Glacier.GetVaultNotifications

-- | Creates a value of <a>GetVaultNotifications</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gvnAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>gvnVaultName</a> - The name of the vault.</li>
--   </ul>
getVaultNotifications :: Text -> Text -> GetVaultNotifications

-- | Provides options for retrieving the notification configuration set on
--   an Amazon Glacier vault.
--   
--   <i>See:</i> <a>getVaultNotifications</a> smart constructor.
data GetVaultNotifications

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
gvnAccountId :: Lens' GetVaultNotifications Text

-- | The name of the vault.
gvnVaultName :: Lens' GetVaultNotifications Text

-- | Creates a value of <a>GetVaultNotificationsResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gvnrsVaultNotificationConfig</a> - Returns the notification
--   configuration set on the vault.</li>
--   <li><a>gvnrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
getVaultNotificationsResponse :: Int -> GetVaultNotificationsResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>getVaultNotificationsResponse</a> smart constructor.
data GetVaultNotificationsResponse

-- | Returns the notification configuration set on the vault.
gvnrsVaultNotificationConfig :: Lens' GetVaultNotificationsResponse (Maybe VaultNotificationConfig)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
gvnrsResponseStatus :: Lens' GetVaultNotificationsResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.GetVaultNotifications.GetVaultNotificationsResponse
instance Data.Data.Data Network.AWS.Glacier.GetVaultNotifications.GetVaultNotificationsResponse
instance GHC.Show.Show Network.AWS.Glacier.GetVaultNotifications.GetVaultNotificationsResponse
instance GHC.Read.Read Network.AWS.Glacier.GetVaultNotifications.GetVaultNotificationsResponse
instance GHC.Classes.Eq Network.AWS.Glacier.GetVaultNotifications.GetVaultNotificationsResponse
instance GHC.Generics.Generic Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance Data.Data.Data Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance GHC.Show.Show Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance GHC.Read.Read Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance GHC.Classes.Eq Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance Control.DeepSeq.NFData Network.AWS.Glacier.GetVaultNotifications.GetVaultNotificationsResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance Control.DeepSeq.NFData Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.GetVaultNotifications.GetVaultNotifications


-- | This operation retrieves the following attributes from the
--   <tt>lock-policy</tt> subresource set on the specified vault:
--   
--   <ul>
--   <li>The vault lock policy set on the vault.</li>
--   <li>The state of the vault lock, which is either <tt>InProgess</tt> or
--   <tt>Locked</tt> .</li>
--   <li>When the lock ID expires. The lock ID is used to complete the
--   vault locking process.</li>
--   <li>When the vault lock was initiated and put into the
--   <tt>InProgress</tt> state.</li>
--   </ul>
--   
--   A vault lock is put into the <tt>InProgress</tt> state by calling
--   <tt>InitiateVaultLock</tt> . A vault lock is put into the
--   <tt>Locked</tt> state by calling <tt>CompleteVaultLock</tt> . You can
--   abort the vault locking process by calling <tt>AbortVaultLock</tt> .
--   For more information about the vault locking process, <a>Amazon
--   Glacier Vault Lock</a> .
--   
--   If there is no vault lock policy set on the vault, the operation
--   returns a <tt>404 Not found</tt> error. For more information about
--   vault lock policies, <a>Amazon Glacier Access Control with Vault Lock
--   Policies</a> .
module Network.AWS.Glacier.GetVaultLock

-- | Creates a value of <a>GetVaultLock</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gvlAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>gvlVaultName</a> - The name of the vault.</li>
--   </ul>
getVaultLock :: Text -> Text -> GetVaultLock

-- | The input values for <tt>GetVaultLock</tt> .
--   
--   <i>See:</i> <a>getVaultLock</a> smart constructor.
data GetVaultLock

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
gvlAccountId :: Lens' GetVaultLock Text

-- | The name of the vault.
gvlVaultName :: Lens' GetVaultLock Text

-- | Creates a value of <a>GetVaultLockResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gvlrsState</a> - The state of the vault lock.
--   <tt>InProgress</tt> or <tt>Locked</tt> .</li>
--   <li><a>gvlrsExpirationDate</a> - The UTC date and time at which the
--   lock ID expires. This value can be <tt>null</tt> if the vault lock is
--   in a <tt>Locked</tt> state.</li>
--   <li><a>gvlrsCreationDate</a> - The UTC date and time at which the
--   vault lock was put into the <tt>InProgress</tt> state.</li>
--   <li><a>gvlrsPolicy</a> - The vault lock policy as a JSON string, which
--   uses "" as an escape character.</li>
--   <li><a>gvlrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
getVaultLockResponse :: Int -> GetVaultLockResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>getVaultLockResponse</a> smart constructor.
data GetVaultLockResponse

-- | The state of the vault lock. <tt>InProgress</tt> or <tt>Locked</tt> .
gvlrsState :: Lens' GetVaultLockResponse (Maybe Text)

-- | The UTC date and time at which the lock ID expires. This value can be
--   <tt>null</tt> if the vault lock is in a <tt>Locked</tt> state.
gvlrsExpirationDate :: Lens' GetVaultLockResponse (Maybe Text)

-- | The UTC date and time at which the vault lock was put into the
--   <tt>InProgress</tt> state.
gvlrsCreationDate :: Lens' GetVaultLockResponse (Maybe Text)

-- | The vault lock policy as a JSON string, which uses "" as an escape
--   character.
gvlrsPolicy :: Lens' GetVaultLockResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
gvlrsResponseStatus :: Lens' GetVaultLockResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.GetVaultLock.GetVaultLockResponse
instance Data.Data.Data Network.AWS.Glacier.GetVaultLock.GetVaultLockResponse
instance GHC.Show.Show Network.AWS.Glacier.GetVaultLock.GetVaultLockResponse
instance GHC.Read.Read Network.AWS.Glacier.GetVaultLock.GetVaultLockResponse
instance GHC.Classes.Eq Network.AWS.Glacier.GetVaultLock.GetVaultLockResponse
instance GHC.Generics.Generic Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance Data.Data.Data Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance GHC.Show.Show Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance GHC.Read.Read Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance GHC.Classes.Eq Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance Control.DeepSeq.NFData Network.AWS.Glacier.GetVaultLock.GetVaultLockResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance Control.DeepSeq.NFData Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.GetVaultLock.GetVaultLock
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.GetVaultLock.GetVaultLock


-- | This operation retrieves the <tt>access-policy</tt> subresource set on
--   the vault; for more information on setting this subresource, see
--   <a>Set Vault Access Policy (PUT access-policy)</a> . If there is no
--   access policy set on the vault, the operation returns a <tt>404 Not
--   found</tt> error. For more information about vault access policies,
--   see <a>Amazon Glacier Access Control with Vault Access Policies</a> .
module Network.AWS.Glacier.GetVaultAccessPolicy

-- | Creates a value of <a>GetVaultAccessPolicy</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gvapAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>gvapVaultName</a> - The name of the vault.</li>
--   </ul>
getVaultAccessPolicy :: Text -> Text -> GetVaultAccessPolicy

-- | Input for GetVaultAccessPolicy.
--   
--   <i>See:</i> <a>getVaultAccessPolicy</a> smart constructor.
data GetVaultAccessPolicy

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
gvapAccountId :: Lens' GetVaultAccessPolicy Text

-- | The name of the vault.
gvapVaultName :: Lens' GetVaultAccessPolicy Text

-- | Creates a value of <a>GetVaultAccessPolicyResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gvaprsPolicy</a> - Contains the returned vault access policy as
--   a JSON string.</li>
--   <li><a>gvaprsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
getVaultAccessPolicyResponse :: Int -> GetVaultAccessPolicyResponse

-- | Output for GetVaultAccessPolicy.
--   
--   <i>See:</i> <a>getVaultAccessPolicyResponse</a> smart constructor.
data GetVaultAccessPolicyResponse

-- | Contains the returned vault access policy as a JSON string.
gvaprsPolicy :: Lens' GetVaultAccessPolicyResponse (Maybe VaultAccessPolicy)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
gvaprsResponseStatus :: Lens' GetVaultAccessPolicyResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicyResponse
instance Data.Data.Data Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicyResponse
instance GHC.Show.Show Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicyResponse
instance GHC.Read.Read Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicyResponse
instance GHC.Classes.Eq Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicyResponse
instance GHC.Generics.Generic Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance Data.Data.Data Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance GHC.Show.Show Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance GHC.Read.Read Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance GHC.Classes.Eq Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicyResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.GetVaultAccessPolicy.GetVaultAccessPolicy


-- | This operation downloads the output of the job you initiated using
--   <tt>InitiateJob</tt> . Depending on the job type you specified when
--   you initiated the job, the output will be either the content of an
--   archive or a vault inventory.
--   
--   You can download all the job output or download a portion of the
--   output by specifying a byte range. In the case of an archive retrieval
--   job, depending on the byte range you specify, Amazon Glacier returns
--   the checksum for the portion of the data. You can compute the checksum
--   on the client and verify that the values match to ensure the portion
--   you downloaded is the correct data.
--   
--   A job ID will not expire for at least 24 hours after Amazon Glacier
--   completes the job. That a byte range. For both archive and inventory
--   retrieval jobs, you should verify the downloaded size against the size
--   returned in the headers from the <b>Get Job Output</b> response.
--   
--   For archive retrieval jobs, you should also verify that the size is
--   what you expected. If you download a portion of the output, the
--   expected size is based on the range of bytes you specified. For
--   example, if you specify a range of <tt>bytes=0-1048575</tt> , you
--   should verify your download size is 1,048,576 bytes. If you download
--   an entire archive, the expected size is the size of the archive when
--   you uploaded it to Amazon Glacier The expected size is also returned
--   in the headers from the <b>Get Job Output</b> response.
--   
--   In the case of an archive retrieval job, depending on the byte range
--   you specify, Amazon Glacier returns the checksum for the portion of
--   the data. To ensure the portion you downloaded is the correct data,
--   compute the checksum on the client, verify that the values match, and
--   verify that the size is what you expected.
--   
--   A job ID does not expire for at least 24 hours after Amazon Glacier
--   completes the job. That is, you can download the job output within the
--   24 hours period after Amazon Glacier completes the job.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and the underlying REST API, see
--   <a>Downloading a Vault Inventory</a> , <a>Downloading an Archive</a> ,
--   and <a>Get Job Output</a>
module Network.AWS.Glacier.GetJobOutput

-- | Creates a value of <a>GetJobOutput</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gjoRange</a> - The range of bytes to retrieve from the output.
--   For example, if you want to download the first 1,048,576 bytes,
--   specify the range as <tt>bytes=0-1048575</tt> . By default, this
--   operation downloads the entire output. If the job output is large,
--   then you can use a range to retrieve a portion of the output. This
--   allows you to download the entire output in smaller chunks of bytes.
--   For example, suppose you have 1 GB of job output you want to download
--   and you decide to download 128 MB chunks of data at a time, which is a
--   total of eight Get Job Output requests. You use the following process
--   to download the job output: * Download a 128 MB chunk of output by
--   specifying the appropriate byte range. Verify that all 128 MB of data
--   was received. * Along with the data, the response includes a SHA256
--   tree hash of the payload. You compute the checksum of the payload on
--   the client and compare it with the checksum you received in the
--   response to ensure you received all the expected data. * Repeat steps
--   1 and 2 for all the eight 128 MB chunks of output data, each time
--   specifying the appropriate byte range. * After downloading all the
--   parts of the job output, you have a list of eight checksum values.
--   Compute the tree hash of these values to find the checksum of the
--   entire output. Using the <tt>DescribeJob</tt> API, obtain job
--   information of the job that provided you the output. The response
--   includes the checksum of the entire archive stored in Amazon Glacier.
--   You compare this value with the checksum you computed to ensure you
--   have downloaded the entire archive content with no errors.</li>
--   <li><a>gjoAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>gjoVaultName</a> - The name of the vault.</li>
--   <li><a>gjoJobId</a> - The job ID whose data is downloaded.</li>
--   </ul>
getJobOutput :: Text -> Text -> Text -> GetJobOutput

-- | Provides options for downloading output of an Amazon Glacier job.
--   
--   <i>See:</i> <a>getJobOutput</a> smart constructor.
data GetJobOutput

-- | The range of bytes to retrieve from the output. For example, if you
--   want to download the first 1,048,576 bytes, specify the range as
--   <tt>bytes=0-1048575</tt> . By default, this operation downloads the
--   entire output. If the job output is large, then you can use a range to
--   retrieve a portion of the output. This allows you to download the
--   entire output in smaller chunks of bytes. For example, suppose you
--   have 1 GB of job output you want to download and you decide to
--   download 128 MB chunks of data at a time, which is a total of eight
--   Get Job Output requests. You use the following process to download the
--   job output: * Download a 128 MB chunk of output by specifying the
--   appropriate byte range. Verify that all 128 MB of data was received. *
--   Along with the data, the response includes a SHA256 tree hash of the
--   payload. You compute the checksum of the payload on the client and
--   compare it with the checksum you received in the response to ensure
--   you received all the expected data. * Repeat steps 1 and 2 for all the
--   eight 128 MB chunks of output data, each time specifying the
--   appropriate byte range. * After downloading all the parts of the job
--   output, you have a list of eight checksum values. Compute the tree
--   hash of these values to find the checksum of the entire output. Using
--   the <tt>DescribeJob</tt> API, obtain job information of the job that
--   provided you the output. The response includes the checksum of the
--   entire archive stored in Amazon Glacier. You compare this value with
--   the checksum you computed to ensure you have downloaded the entire
--   archive content with no errors.
gjoRange :: Lens' GetJobOutput (Maybe Text)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
gjoAccountId :: Lens' GetJobOutput Text

-- | The name of the vault.
gjoVaultName :: Lens' GetJobOutput Text

-- | The job ID whose data is downloaded.
gjoJobId :: Lens' GetJobOutput Text

-- | Creates a value of <a>GetJobOutputResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gjorsChecksum</a> - The checksum of the data in the response.
--   This header is returned only when retrieving the output for an archive
--   retrieval job. Furthermore, this header appears only under the
--   following conditions: * You get the entire range of the archive. * You
--   request a range to return of the archive that starts and ends on a
--   multiple of 1 MB. For example, if you have an 3.1 MB archive and you
--   specify a range to return that starts at 1 MB and ends at 2 MB, then
--   the x-amz-sha256-tree-hash is returned as a response header. * You
--   request a range of the archive to return that starts on a multiple of
--   1 MB and goes to the end of the archive. For example, if you have a
--   3.1 MB archive and you specify a range that starts at 2 MB and ends at
--   3.1 MB (the end of the archive), then the x-amz-sha256-tree-hash is
--   returned as a response header.</li>
--   <li><a>gjorsAcceptRanges</a> - Indicates the range units accepted. For
--   more information, see <a>RFC2616</a> .</li>
--   <li><a>gjorsArchiveDescription</a> - The description of an
--   archive.</li>
--   <li><a>gjorsContentRange</a> - The range of bytes returned by Amazon
--   Glacier. If only partial output is downloaded, the response provides
--   the range of bytes Amazon Glacier returned. For example, bytes
--   0-1048575/8388608 returns the first 1 MB from 8 MB.</li>
--   <li><a>gjorsContentType</a> - The Content-Type depends on whether the
--   job output is an archive or a vault inventory. For archive data, the
--   Content-Type is application<i>octet-stream. For vault inventory, if
--   you requested CSV format when you initiated the job, the Content-Type
--   is text</i>csv. Otherwise, by default, vault inventory is returned as
--   JSON, and the Content-Type is application/json.</li>
--   <li><a>gjorsStatus</a> - The HTTP response code for a job output
--   request. The value depends on whether a range was specified in the
--   request.</li>
--   <li><a>gjorsBody</a> - The job data, either archive data or inventory
--   data.</li>
--   </ul>
getJobOutputResponse :: Int -> RsBody -> GetJobOutputResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>getJobOutputResponse</a> smart constructor.
data GetJobOutputResponse

-- | The checksum of the data in the response. This header is returned only
--   when retrieving the output for an archive retrieval job. Furthermore,
--   this header appears only under the following conditions: * You get the
--   entire range of the archive. * You request a range to return of the
--   archive that starts and ends on a multiple of 1 MB. For example, if
--   you have an 3.1 MB archive and you specify a range to return that
--   starts at 1 MB and ends at 2 MB, then the x-amz-sha256-tree-hash is
--   returned as a response header. * You request a range of the archive to
--   return that starts on a multiple of 1 MB and goes to the end of the
--   archive. For example, if you have a 3.1 MB archive and you specify a
--   range that starts at 2 MB and ends at 3.1 MB (the end of the archive),
--   then the x-amz-sha256-tree-hash is returned as a response header.
gjorsChecksum :: Lens' GetJobOutputResponse (Maybe Text)

-- | Indicates the range units accepted. For more information, see
--   <a>RFC2616</a> .
gjorsAcceptRanges :: Lens' GetJobOutputResponse (Maybe Text)

-- | The description of an archive.
gjorsArchiveDescription :: Lens' GetJobOutputResponse (Maybe Text)

-- | The range of bytes returned by Amazon Glacier. If only partial output
--   is downloaded, the response provides the range of bytes Amazon Glacier
--   returned. For example, bytes 0-1048575/8388608 returns the first 1 MB
--   from 8 MB.
gjorsContentRange :: Lens' GetJobOutputResponse (Maybe Text)

-- | The Content-Type depends on whether the job output is an archive or a
--   vault inventory. For archive data, the Content-Type is
--   application<i>octet-stream. For vault inventory, if you requested CSV
--   format when you initiated the job, the Content-Type is text</i>csv.
--   Otherwise, by default, vault inventory is returned as JSON, and the
--   Content-Type is application/json.
gjorsContentType :: Lens' GetJobOutputResponse (Maybe Text)

-- | The HTTP response code for a job output request. The value depends on
--   whether a range was specified in the request.
gjorsStatus :: Lens' GetJobOutputResponse Int

-- | The job data, either archive data or inventory data.
gjorsBody :: Lens' GetJobOutputResponse RsBody
instance GHC.Generics.Generic Network.AWS.Glacier.GetJobOutput.GetJobOutputResponse
instance GHC.Show.Show Network.AWS.Glacier.GetJobOutput.GetJobOutputResponse
instance GHC.Generics.Generic Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance Data.Data.Data Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance GHC.Show.Show Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance GHC.Read.Read Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance GHC.Classes.Eq Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance Control.DeepSeq.NFData Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.GetJobOutput.GetJobOutput
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.GetJobOutput.GetJobOutput


-- | This operation returns the current data retrieval policy for the
--   account and region specified in the GET request. For more information
--   about data retrieval policies, see <a>Amazon Glacier Data Retrieval
--   Policies</a> .
module Network.AWS.Glacier.GetDataRetrievalPolicy

-- | Creates a value of <a>GetDataRetrievalPolicy</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gdrpAccountId</a> - The <tt>AccountId</tt> value is the AWS
--   account ID. This value must match the AWS account ID associated with
--   the credentials used to sign the request. You can either specify an
--   AWS account ID or optionally a single '<tt>-</tt> ' (hyphen), in which
--   case Amazon Glacier uses the AWS account ID associated with the
--   credentials used to sign the request. If you specify your account ID,
--   do not include any hyphens (<a>-</a>) in the ID.</li>
--   </ul>
getDataRetrievalPolicy :: Text -> GetDataRetrievalPolicy

-- | Input for GetDataRetrievalPolicy.
--   
--   <i>See:</i> <a>getDataRetrievalPolicy</a> smart constructor.
data GetDataRetrievalPolicy

-- | The <tt>AccountId</tt> value is the AWS account ID. This value must
--   match the AWS account ID associated with the credentials used to sign
--   the request. You can either specify an AWS account ID or optionally a
--   single '<tt>-</tt> ' (hyphen), in which case Amazon Glacier uses the
--   AWS account ID associated with the credentials used to sign the
--   request. If you specify your account ID, do not include any hyphens
--   (<a>-</a>) in the ID.
gdrpAccountId :: Lens' GetDataRetrievalPolicy Text

-- | Creates a value of <a>GetDataRetrievalPolicyResponse</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gdrprsPolicy</a> - Contains the returned data retrieval policy
--   in JSON format.</li>
--   <li><a>gdrprsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
getDataRetrievalPolicyResponse :: Int -> GetDataRetrievalPolicyResponse

-- | Contains the Amazon Glacier response to the
--   <tt>GetDataRetrievalPolicy</tt> request.
--   
--   <i>See:</i> <a>getDataRetrievalPolicyResponse</a> smart constructor.
data GetDataRetrievalPolicyResponse

-- | Contains the returned data retrieval policy in JSON format.
gdrprsPolicy :: Lens' GetDataRetrievalPolicyResponse (Maybe DataRetrievalPolicy)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
gdrprsResponseStatus :: Lens' GetDataRetrievalPolicyResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicyResponse
instance Data.Data.Data Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicyResponse
instance GHC.Show.Show Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicyResponse
instance GHC.Read.Read Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicyResponse
instance GHC.Classes.Eq Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicyResponse
instance GHC.Generics.Generic Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance Data.Data.Data Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance GHC.Show.Show Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance GHC.Read.Read Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance GHC.Classes.Eq Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicyResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.GetDataRetrievalPolicy.GetDataRetrievalPolicy


-- | 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
--   <tt>InitiateJob</tt> . Amazon Glacier generates vault inventories
--   approximately daily. For more information, see <a>Downloading a Vault
--   Inventory in Amazon Glacier</a> .
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Retrieving
--   Vault Metadata in Amazon Glacier</a> and <a>Describe Vault</a> in the
--   <i>Amazon Glacier Developer Guide</i> .
module Network.AWS.Glacier.DescribeVault

-- | Creates a value of <a>DescribeVault</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dvAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>dvVaultName</a> - The name of the vault.</li>
--   </ul>
describeVault :: Text -> Text -> DescribeVault

-- | Provides options for retrieving metadata for a specific vault in
--   Amazon Glacier.
--   
--   <i>See:</i> <a>describeVault</a> smart constructor.
data DescribeVault

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
dvAccountId :: Lens' DescribeVault Text

-- | The name of the vault.
dvVaultName :: Lens' DescribeVault Text

-- | Creates a value of <a>DescribeVaultOutput</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dvoVaultName</a> - The name of the vault.</li>
--   <li><a>dvoSizeInBytes</a> - 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.</li>
--   <li><a>dvoLastInventoryDate</a> - The Universal Coordinated Time (UTC)
--   date when Amazon Glacier completed the last vault inventory. This
--   value should be a string in the ISO 8601 date format, for example
--   <tt>2012-03-20T17:03:43.221Z</tt> .</li>
--   <li><a>dvoVaultARN</a> - The Amazon Resource Name (ARN) of the
--   vault.</li>
--   <li><a>dvoCreationDate</a> - 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 <tt>2012-03-20T17:03:43.221Z</tt> .</li>
--   <li><a>dvoNumberOfArchives</a> - The number of archives in the vault
--   as of the last inventory date. This field will return <tt>null</tt> if
--   an inventory has not yet run on the vault, for example if you just
--   created the vault.</li>
--   </ul>
describeVaultOutput :: DescribeVaultOutput

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>describeVaultOutput</a> smart constructor.
data DescribeVaultOutput

-- | The name of the vault.
dvoVaultName :: Lens' DescribeVaultOutput (Maybe Text)

-- | 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.
dvoSizeInBytes :: Lens' DescribeVaultOutput (Maybe Integer)

-- | The Universal Coordinated Time (UTC) date when Amazon Glacier
--   completed the last vault inventory. This value should be a string in
--   the ISO 8601 date format, for example
--   <tt>2012-03-20T17:03:43.221Z</tt> .
dvoLastInventoryDate :: Lens' DescribeVaultOutput (Maybe Text)

-- | The Amazon Resource Name (ARN) of the vault.
dvoVaultARN :: Lens' DescribeVaultOutput (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
--   <tt>2012-03-20T17:03:43.221Z</tt> .
dvoCreationDate :: Lens' DescribeVaultOutput (Maybe Text)

-- | The number of archives in the vault as of the last inventory date.
--   This field will return <tt>null</tt> if an inventory has not yet run
--   on the vault, for example if you just created the vault.
dvoNumberOfArchives :: Lens' DescribeVaultOutput (Maybe Integer)
instance GHC.Generics.Generic Network.AWS.Glacier.DescribeVault.DescribeVault
instance Data.Data.Data Network.AWS.Glacier.DescribeVault.DescribeVault
instance GHC.Show.Show Network.AWS.Glacier.DescribeVault.DescribeVault
instance GHC.Read.Read Network.AWS.Glacier.DescribeVault.DescribeVault
instance GHC.Classes.Eq Network.AWS.Glacier.DescribeVault.DescribeVault
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.DescribeVault.DescribeVault
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.DescribeVault.DescribeVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.DescribeVault.DescribeVault
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.DescribeVault.DescribeVault
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.DescribeVault.DescribeVault
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.DescribeVault.DescribeVault


-- | This operation returns information about a job you previously
--   initiated, including the job initiation date, the user who initiated
--   the job, the job status code/message and the Amazon SNS topic to
--   notify after Amazon Glacier completes the job. For more information
--   about initiating a job, see <tt>InitiateJob</tt> .
--   
--   A job ID will not expire for at least 24 hours after Amazon Glacier
--   completes the job.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For more information about using this operation, see the documentation
--   for the underlying REST API <a>Describe Job</a> in the <i>Amazon
--   Glacier Developer Guide</i> .
module Network.AWS.Glacier.DescribeJob

-- | Creates a value of <a>DescribeJob</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>djAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>djVaultName</a> - The name of the vault.</li>
--   <li><a>djJobId</a> - The ID of the job to describe.</li>
--   </ul>
describeJob :: Text -> Text -> Text -> DescribeJob

-- | Provides options for retrieving a job description.
--   
--   <i>See:</i> <a>describeJob</a> smart constructor.
data DescribeJob

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
djAccountId :: Lens' DescribeJob Text

-- | The name of the vault.
djVaultName :: Lens' DescribeJob Text

-- | The ID of the job to describe.
djJobId :: Lens' DescribeJob Text

-- | Creates a value of <a>GlacierJobDescription</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gjdSHA256TreeHash</a> - For an archive retrieval job, this
--   value is the checksum of the archive. Otherwise, this value is null.
--   The SHA256 tree hash value for the requested range of an archive. If
--   the <b>InitiateJob</b> request for an archive specified a tree-hash
--   aligned range, then this field returns a value. If the whole archive
--   is retrieved, this value is the same as the ArchiveSHA256TreeHash
--   value. This field is null for the following: * Archive retrieval jobs
--   that specify a range that is not tree-hash aligned * Archival jobs
--   that specify a range that is equal to the whole archive, when the job
--   status is <tt>InProgress</tt> * Inventory jobs * Select jobs</li>
--   <li><a>gjdArchiveId</a> - The archive ID requested for a select job or
--   archive retrieval. Otherwise, this field is null.</li>
--   <li><a>gjdSelectParameters</a> - Contains the parameters used for a
--   select.</li>
--   <li><a>gjdJobId</a> - An opaque string that identifies an Amazon
--   Glacier job.</li>
--   <li><a>gjdJobOutputPath</a> - Contains the job output location.</li>
--   <li><a>gjdRetrievalByteRange</a> - The retrieved byte range for
--   archive retrieval jobs in the form <i>StartByteValue</i>
--   -<i>EndByteValue</i> . If no range was specified in the archive
--   retrieval, then the whole archive is retrieved. In this case,
--   <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size
--   of the archive minus 1. For inventory retrieval or select jobs, this
--   field is null.</li>
--   <li><a>gjdInventoryRetrievalParameters</a> - Parameters used for range
--   inventory retrieval.</li>
--   <li><a>gjdAction</a> - The job type. This value is either
--   <tt>ArchiveRetrieval</tt> , <tt>InventoryRetrieval</tt> , or
--   <tt>Select</tt> .</li>
--   <li><a>gjdJobDescription</a> - The job description provided when
--   initiating the job.</li>
--   <li><a>gjdSNSTopic</a> - An Amazon SNS topic that receives
--   notification.</li>
--   <li><a>gjdStatusMessage</a> - A friendly message that describes the
--   job status.</li>
--   <li><a>gjdVaultARN</a> - The Amazon Resource Name (ARN) of the vault
--   from which an archive retrieval was requested.</li>
--   <li><a>gjdOutputLocation</a> - Contains the location where the data
--   from the select job is stored.</li>
--   <li><a>gjdTier</a> - The tier to use for a select or an archive
--   retrieval. Valid values are <tt>Expedited</tt> , <tt>Standard</tt> ,
--   or <tt>Bulk</tt> . <tt>Standard</tt> is the default.</li>
--   <li><a>gjdArchiveSHA256TreeHash</a> - The SHA256 tree hash of the
--   entire archive for an archive retrieval. For inventory retrieval or
--   select jobs, this field is null.</li>
--   <li><a>gjdCreationDate</a> - The UTC date when the job was created.
--   This value is a string representation of ISO 8601 date format, for
--   example <tt>"2012-03-20T17:03:43.221Z"</tt> .</li>
--   <li><a>gjdCompleted</a> - The job status. When a job is completed, you
--   get the job's output using Get Job Output (GET output).</li>
--   <li><a>gjdCompletionDate</a> - The UTC time that the job request
--   completed. While the job is in progress, the value is null.</li>
--   <li><a>gjdInventorySizeInBytes</a> - For an inventory retrieval job,
--   this value is the size in bytes of the inventory requested for
--   download. For an archive retrieval or select job, this value is
--   null.</li>
--   <li><a>gjdArchiveSizeInBytes</a> - For an archive retrieval job, this
--   value is the size in bytes of the archive being requested for
--   download. For an inventory retrieval or select job, this value is
--   null.</li>
--   <li><a>gjdStatusCode</a> - The status code can be <tt>InProgress</tt>
--   , <tt>Succeeded</tt> , or <tt>Failed</tt> , and indicates the status
--   of the job.</li>
--   </ul>
glacierJobDescription :: GlacierJobDescription

-- | Contains the description of an Amazon Glacier job.
--   
--   <i>See:</i> <a>glacierJobDescription</a> smart constructor.
data GlacierJobDescription

-- | For an archive retrieval job, this value is the checksum of the
--   archive. Otherwise, this value is null. The SHA256 tree hash value for
--   the requested range of an archive. If the <b>InitiateJob</b> request
--   for an archive specified a tree-hash aligned range, then this field
--   returns a value. If the whole archive is retrieved, this value is the
--   same as the ArchiveSHA256TreeHash value. This field is null for the
--   following: * Archive retrieval jobs that specify a range that is not
--   tree-hash aligned * Archival jobs that specify a range that is equal
--   to the whole archive, when the job status is <tt>InProgress</tt> *
--   Inventory jobs * Select jobs
gjdSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)

-- | The archive ID requested for a select job or archive retrieval.
--   Otherwise, this field is null.
gjdArchiveId :: Lens' GlacierJobDescription (Maybe Text)

-- | Contains the parameters used for a select.
gjdSelectParameters :: Lens' GlacierJobDescription (Maybe SelectParameters)

-- | An opaque string that identifies an Amazon Glacier job.
gjdJobId :: Lens' GlacierJobDescription (Maybe Text)

-- | Contains the job output location.
gjdJobOutputPath :: Lens' GlacierJobDescription (Maybe Text)

-- | The retrieved byte range for archive retrieval jobs in the form
--   <i>StartByteValue</i> -<i>EndByteValue</i> . If no range was specified
--   in the archive retrieval, then the whole archive is retrieved. In this
--   case, <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals
--   the size of the archive minus 1. For inventory retrieval or select
--   jobs, this field is null.
gjdRetrievalByteRange :: Lens' GlacierJobDescription (Maybe Text)

-- | Parameters used for range inventory retrieval.
gjdInventoryRetrievalParameters :: Lens' GlacierJobDescription (Maybe InventoryRetrievalJobDescription)

-- | The job type. This value is either <tt>ArchiveRetrieval</tt> ,
--   <tt>InventoryRetrieval</tt> , or <tt>Select</tt> .
gjdAction :: Lens' GlacierJobDescription (Maybe ActionCode)

-- | The job description provided when initiating the job.
gjdJobDescription :: Lens' GlacierJobDescription (Maybe Text)

-- | An Amazon SNS topic that receives notification.
gjdSNSTopic :: Lens' GlacierJobDescription (Maybe Text)

-- | A friendly message that describes the job status.
gjdStatusMessage :: Lens' GlacierJobDescription (Maybe Text)

-- | The Amazon Resource Name (ARN) of the vault from which an archive
--   retrieval was requested.
gjdVaultARN :: Lens' GlacierJobDescription (Maybe Text)

-- | Contains the location where the data from the select job is stored.
gjdOutputLocation :: Lens' GlacierJobDescription (Maybe OutputLocation)

-- | The tier to use for a select or an archive retrieval. Valid values are
--   <tt>Expedited</tt> , <tt>Standard</tt> , or <tt>Bulk</tt> .
--   <tt>Standard</tt> is the default.
gjdTier :: Lens' GlacierJobDescription (Maybe Text)

-- | The SHA256 tree hash of the entire archive for an archive retrieval.
--   For inventory retrieval or select jobs, this field is null.
gjdArchiveSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)

-- | The UTC date when the job was created. This value is a string
--   representation of ISO 8601 date format, for example
--   <tt>"2012-03-20T17:03:43.221Z"</tt> .
gjdCreationDate :: Lens' GlacierJobDescription (Maybe Text)

-- | The job status. When a job is completed, you get the job's output
--   using Get Job Output (GET output).
gjdCompleted :: Lens' GlacierJobDescription (Maybe Bool)

-- | The UTC time that the job request completed. While the job is in
--   progress, the value is null.
gjdCompletionDate :: Lens' GlacierJobDescription (Maybe Text)

-- | For an inventory retrieval job, this value is the size in bytes of the
--   inventory requested for download. For an archive retrieval or select
--   job, this value is null.
gjdInventorySizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)

-- | For an archive retrieval job, this value is the size in bytes of the
--   archive being requested for download. For an inventory retrieval or
--   select job, this value is null.
gjdArchiveSizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)

-- | The status code can be <tt>InProgress</tt> , <tt>Succeeded</tt> , or
--   <tt>Failed</tt> , and indicates the status of the job.
gjdStatusCode :: Lens' GlacierJobDescription (Maybe StatusCode)
instance GHC.Generics.Generic Network.AWS.Glacier.DescribeJob.DescribeJob
instance Data.Data.Data Network.AWS.Glacier.DescribeJob.DescribeJob
instance GHC.Show.Show Network.AWS.Glacier.DescribeJob.DescribeJob
instance GHC.Read.Read Network.AWS.Glacier.DescribeJob.DescribeJob
instance GHC.Classes.Eq Network.AWS.Glacier.DescribeJob.DescribeJob
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.DescribeJob.DescribeJob
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.DescribeJob.DescribeJob
instance Control.DeepSeq.NFData Network.AWS.Glacier.DescribeJob.DescribeJob
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.DescribeJob.DescribeJob
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.DescribeJob.DescribeJob
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.DescribeJob.DescribeJob


-- | This operation deletes the notification configuration set for a vault.
--   The operation is eventually consistent; that is, it might take some
--   time for Amazon Glacier to completely disable the notifications and
--   you might still receive some notifications for a short time after you
--   send the delete request.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Configuring
--   Vault Notifications in Amazon Glacier</a> and <a>Delete Vault
--   Notification Configuration</a> in the Amazon Glacier Developer Guide.
module Network.AWS.Glacier.DeleteVaultNotifications

-- | Creates a value of <a>DeleteVaultNotifications</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dvnAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>dvnVaultName</a> - The name of the vault.</li>
--   </ul>
deleteVaultNotifications :: Text -> Text -> DeleteVaultNotifications

-- | Provides options for deleting a vault notification configuration from
--   an Amazon Glacier vault.
--   
--   <i>See:</i> <a>deleteVaultNotifications</a> smart constructor.
data DeleteVaultNotifications

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
dvnAccountId :: Lens' DeleteVaultNotifications Text

-- | The name of the vault.
dvnVaultName :: Lens' DeleteVaultNotifications Text

-- | Creates a value of <a>DeleteVaultNotificationsResponse</a> with the
--   minimum fields required to make a request.
deleteVaultNotificationsResponse :: DeleteVaultNotificationsResponse

-- | <i>See:</i> <a>deleteVaultNotificationsResponse</a> smart constructor.
data DeleteVaultNotificationsResponse
instance GHC.Generics.Generic Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotificationsResponse
instance Data.Data.Data Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotificationsResponse
instance GHC.Show.Show Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotificationsResponse
instance GHC.Read.Read Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotificationsResponse
instance GHC.Classes.Eq Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotificationsResponse
instance GHC.Generics.Generic Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance Data.Data.Data Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance GHC.Show.Show Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance GHC.Read.Read Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance GHC.Classes.Eq Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance Control.DeepSeq.NFData Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotificationsResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance Control.DeepSeq.NFData Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.DeleteVaultNotifications.DeleteVaultNotifications


-- | This operation deletes the access policy associated with the specified
--   vault. The operation is eventually consistent; that is, it might take
--   some time for Amazon Glacier to completely remove the access policy,
--   and you might still see the effect of the policy for a short time
--   after you send the delete request.
--   
--   This operation is idempotent. You can invoke delete multiple times,
--   even if there is no policy associated with the vault. For more
--   information about vault access policies, see <a>Amazon Glacier Access
--   Control with Vault Access Policies</a> .
module Network.AWS.Glacier.DeleteVaultAccessPolicy

-- | Creates a value of <a>DeleteVaultAccessPolicy</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dvapAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>dvapVaultName</a> - The name of the vault.</li>
--   </ul>
deleteVaultAccessPolicy :: Text -> Text -> DeleteVaultAccessPolicy

-- | DeleteVaultAccessPolicy input.
--   
--   <i>See:</i> <a>deleteVaultAccessPolicy</a> smart constructor.
data DeleteVaultAccessPolicy

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
dvapAccountId :: Lens' DeleteVaultAccessPolicy Text

-- | The name of the vault.
dvapVaultName :: Lens' DeleteVaultAccessPolicy Text

-- | Creates a value of <a>DeleteVaultAccessPolicyResponse</a> with the
--   minimum fields required to make a request.
deleteVaultAccessPolicyResponse :: DeleteVaultAccessPolicyResponse

-- | <i>See:</i> <a>deleteVaultAccessPolicyResponse</a> smart constructor.
data DeleteVaultAccessPolicyResponse
instance GHC.Generics.Generic Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicyResponse
instance Data.Data.Data Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicyResponse
instance GHC.Show.Show Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicyResponse
instance GHC.Read.Read Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicyResponse
instance GHC.Classes.Eq Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicyResponse
instance GHC.Generics.Generic Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance Data.Data.Data Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance GHC.Show.Show Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance GHC.Read.Read Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance GHC.Classes.Eq Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicyResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance Control.DeepSeq.NFData Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.DeleteVaultAccessPolicy.DeleteVaultAccessPolicy


-- | This operation deletes a vault. Amazon Glacier will delete a vault
--   only if there are no archives in the vault as of the last inventory
--   and there have been no writes to the vault since the last inventory.
--   If either of these conditions is not satisfied, the vault deletion
--   fails (that is, the vault is not removed) and Amazon Glacier returns
--   an error. You can use <tt>DescribeVault</tt> to return the number of
--   archives in a vault, and you can use <a>Initiate a Job (POST jobs)</a>
--   to initiate a new inventory retrieval for a vault. The inventory
--   contains the archive IDs you use to delete archives using <a>Delete
--   Archive (DELETE archive)</a> .
--   
--   This operation is idempotent.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Deleting a
--   Vault in Amazon Glacier</a> and <a>Delete Vault</a> in the <i>Amazon
--   Glacier Developer Guide</i> .
module Network.AWS.Glacier.DeleteVault

-- | Creates a value of <a>DeleteVault</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>dVaultName</a> - The name of the vault.</li>
--   </ul>
deleteVault :: Text -> Text -> DeleteVault

-- | Provides options for deleting a vault from Amazon Glacier.
--   
--   <i>See:</i> <a>deleteVault</a> smart constructor.
data DeleteVault

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
dAccountId :: Lens' DeleteVault Text

-- | The name of the vault.
dVaultName :: Lens' DeleteVault Text

-- | Creates a value of <a>DeleteVaultResponse</a> with the minimum fields
--   required to make a request.
deleteVaultResponse :: DeleteVaultResponse

-- | <i>See:</i> <a>deleteVaultResponse</a> smart constructor.
data DeleteVaultResponse
instance GHC.Generics.Generic Network.AWS.Glacier.DeleteVault.DeleteVaultResponse
instance Data.Data.Data Network.AWS.Glacier.DeleteVault.DeleteVaultResponse
instance GHC.Show.Show Network.AWS.Glacier.DeleteVault.DeleteVaultResponse
instance GHC.Read.Read Network.AWS.Glacier.DeleteVault.DeleteVaultResponse
instance GHC.Classes.Eq Network.AWS.Glacier.DeleteVault.DeleteVaultResponse
instance GHC.Generics.Generic Network.AWS.Glacier.DeleteVault.DeleteVault
instance Data.Data.Data Network.AWS.Glacier.DeleteVault.DeleteVault
instance GHC.Show.Show Network.AWS.Glacier.DeleteVault.DeleteVault
instance GHC.Read.Read Network.AWS.Glacier.DeleteVault.DeleteVault
instance GHC.Classes.Eq Network.AWS.Glacier.DeleteVault.DeleteVault
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.DeleteVault.DeleteVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.DeleteVault.DeleteVaultResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.DeleteVault.DeleteVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.DeleteVault.DeleteVault
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.DeleteVault.DeleteVault
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.DeleteVault.DeleteVault
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.DeleteVault.DeleteVault


-- | This operation deletes an archive from a vault. Subsequent requests to
--   initiate a retrieval of this archive will fail. Archive retrievals
--   that are in progress for this archive ID may or may not succeed
--   according to the following scenarios:
--   
--   <ul>
--   <li>If the archive retrieval job is actively preparing the data for
--   download when Amazon Glacier receives the delete archive request, the
--   archival retrieval operation might fail.</li>
--   <li>If the archive retrieval job has successfully prepared the archive
--   for download when Amazon Glacier receives the delete archive request,
--   you will be able to download the output.</li>
--   </ul>
--   
--   This operation is idempotent. Attempting to delete an already-deleted
--   archive does not result in an error.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Deleting an
--   Archive in Amazon Glacier</a> and <a>Delete Archive</a> in the
--   <i>Amazon Glacier Developer Guide</i> .
module Network.AWS.Glacier.DeleteArchive

-- | Creates a value of <a>DeleteArchive</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>daAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>daVaultName</a> - The name of the vault.</li>
--   <li><a>daArchiveId</a> - The ID of the archive to delete.</li>
--   </ul>
deleteArchive :: Text -> Text -> Text -> DeleteArchive

-- | Provides options for deleting an archive from an Amazon Glacier vault.
--   
--   <i>See:</i> <a>deleteArchive</a> smart constructor.
data DeleteArchive

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
daAccountId :: Lens' DeleteArchive Text

-- | The name of the vault.
daVaultName :: Lens' DeleteArchive Text

-- | The ID of the archive to delete.
daArchiveId :: Lens' DeleteArchive Text

-- | Creates a value of <a>DeleteArchiveResponse</a> with the minimum
--   fields required to make a request.
deleteArchiveResponse :: DeleteArchiveResponse

-- | <i>See:</i> <a>deleteArchiveResponse</a> smart constructor.
data DeleteArchiveResponse
instance GHC.Generics.Generic Network.AWS.Glacier.DeleteArchive.DeleteArchiveResponse
instance Data.Data.Data Network.AWS.Glacier.DeleteArchive.DeleteArchiveResponse
instance GHC.Show.Show Network.AWS.Glacier.DeleteArchive.DeleteArchiveResponse
instance GHC.Read.Read Network.AWS.Glacier.DeleteArchive.DeleteArchiveResponse
instance GHC.Classes.Eq Network.AWS.Glacier.DeleteArchive.DeleteArchiveResponse
instance GHC.Generics.Generic Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance Data.Data.Data Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance GHC.Show.Show Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance GHC.Read.Read Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance GHC.Classes.Eq Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance Control.DeepSeq.NFData Network.AWS.Glacier.DeleteArchive.DeleteArchiveResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance Control.DeepSeq.NFData Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.DeleteArchive.DeleteArchive
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.DeleteArchive.DeleteArchive


-- | This operation creates a new vault with the specified name. The name
--   of the vault must be unique within a region for an AWS account. You
--   can create up to 1,000 vaults per account. If you need to create more
--   vaults, contact Amazon Glacier.
--   
--   You must use the following guidelines when naming a vault.
--   
--   <ul>
--   <li>Names can be between 1 and 255 characters long.</li>
--   <li>Allowed characters are a-z, A-Z, 0-9, '_' (underscore), <a>-</a>
--   (hyphen), and <a>.</a> (period).</li>
--   </ul>
--   
--   This operation is idempotent.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Creating a
--   Vault in Amazon Glacier</a> and <a>Create Vault</a> in the <i>Amazon
--   Glacier Developer Guide</i> .
module Network.AWS.Glacier.CreateVault

-- | Creates a value of <a>CreateVault</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cvAccountId</a> - The <tt>AccountId</tt> value is the AWS
--   account ID. This value must match the AWS account ID associated with
--   the credentials used to sign the request. You can either specify an
--   AWS account ID or optionally a single '<tt>-</tt> ' (hyphen), in which
--   case Amazon Glacier uses the AWS account ID associated with the
--   credentials used to sign the request. If you specify your account ID,
--   do not include any hyphens (<a>-</a>) in the ID.</li>
--   <li><a>cvVaultName</a> - The name of the vault.</li>
--   </ul>
createVault :: Text -> Text -> CreateVault

-- | Provides options to create a vault.
--   
--   <i>See:</i> <a>createVault</a> smart constructor.
data CreateVault

-- | The <tt>AccountId</tt> value is the AWS account ID. This value must
--   match the AWS account ID associated with the credentials used to sign
--   the request. You can either specify an AWS account ID or optionally a
--   single '<tt>-</tt> ' (hyphen), in which case Amazon Glacier uses the
--   AWS account ID associated with the credentials used to sign the
--   request. If you specify your account ID, do not include any hyphens
--   (<a>-</a>) in the ID.
cvAccountId :: Lens' CreateVault Text

-- | The name of the vault.
cvVaultName :: Lens' CreateVault Text

-- | Creates a value of <a>CreateVaultResponse</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cvrsLocation</a> - The URI of the vault that was created.</li>
--   <li><a>cvrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
createVaultResponse :: Int -> CreateVaultResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>createVaultResponse</a> smart constructor.
data CreateVaultResponse

-- | The URI of the vault that was created.
cvrsLocation :: Lens' CreateVaultResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
cvrsResponseStatus :: Lens' CreateVaultResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.CreateVault.CreateVaultResponse
instance Data.Data.Data Network.AWS.Glacier.CreateVault.CreateVaultResponse
instance GHC.Show.Show Network.AWS.Glacier.CreateVault.CreateVaultResponse
instance GHC.Read.Read Network.AWS.Glacier.CreateVault.CreateVaultResponse
instance GHC.Classes.Eq Network.AWS.Glacier.CreateVault.CreateVaultResponse
instance GHC.Generics.Generic Network.AWS.Glacier.CreateVault.CreateVault
instance Data.Data.Data Network.AWS.Glacier.CreateVault.CreateVault
instance GHC.Show.Show Network.AWS.Glacier.CreateVault.CreateVault
instance GHC.Read.Read Network.AWS.Glacier.CreateVault.CreateVault
instance GHC.Classes.Eq Network.AWS.Glacier.CreateVault.CreateVault
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.CreateVault.CreateVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.CreateVault.CreateVaultResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.CreateVault.CreateVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.CreateVault.CreateVault
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.CreateVault.CreateVault
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.CreateVault.CreateVault
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.CreateVault.CreateVault
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.CreateVault.CreateVault


-- | This operation completes the vault locking process by transitioning
--   the vault lock from the <tt>InProgress</tt> state to the
--   <tt>Locked</tt> state, which causes the vault lock policy to become
--   unchangeable. A vault lock is put into the <tt>InProgress</tt> state
--   by calling <tt>InitiateVaultLock</tt> . You can obtain the state of
--   the vault lock by calling <tt>GetVaultLock</tt> . For more information
--   about the vault locking process, <a>Amazon Glacier Vault Lock</a> .
--   
--   This operation is idempotent. This request is always successful if the
--   vault lock is in the <tt>Locked</tt> state and the provided lock ID
--   matches the lock ID originally used to lock the vault.
--   
--   If an invalid lock ID is passed in the request when the vault lock is
--   in the <tt>Locked</tt> state, the operation returns an
--   <tt>AccessDeniedException</tt> error. If an invalid lock ID is passed
--   in the request when the vault lock is in the <tt>InProgress</tt>
--   state, the operation throws an <tt>InvalidParameter</tt> error.
module Network.AWS.Glacier.CompleteVaultLock

-- | Creates a value of <a>CompleteVaultLock</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cvlAccountId</a> - The <tt>AccountId</tt> value is the AWS
--   account ID. This value must match the AWS account ID associated with
--   the credentials used to sign the request. You can either specify an
--   AWS account ID or optionally a single '<tt>-</tt> ' (hyphen), in which
--   case Amazon Glacier uses the AWS account ID associated with the
--   credentials used to sign the request. If you specify your account ID,
--   do not include any hyphens (<a>-</a>) in the ID.</li>
--   <li><a>cvlVaultName</a> - The name of the vault.</li>
--   <li><a>cvlLockId</a> - The <tt>lockId</tt> value is the lock ID
--   obtained from a <tt>InitiateVaultLock</tt> request.</li>
--   </ul>
completeVaultLock :: Text -> Text -> Text -> CompleteVaultLock

-- | The input values for <tt>CompleteVaultLock</tt> .
--   
--   <i>See:</i> <a>completeVaultLock</a> smart constructor.
data CompleteVaultLock

-- | The <tt>AccountId</tt> value is the AWS account ID. This value must
--   match the AWS account ID associated with the credentials used to sign
--   the request. You can either specify an AWS account ID or optionally a
--   single '<tt>-</tt> ' (hyphen), in which case Amazon Glacier uses the
--   AWS account ID associated with the credentials used to sign the
--   request. If you specify your account ID, do not include any hyphens
--   (<a>-</a>) in the ID.
cvlAccountId :: Lens' CompleteVaultLock Text

-- | The name of the vault.
cvlVaultName :: Lens' CompleteVaultLock Text

-- | The <tt>lockId</tt> value is the lock ID obtained from a
--   <tt>InitiateVaultLock</tt> request.
cvlLockId :: Lens' CompleteVaultLock Text

-- | Creates a value of <a>CompleteVaultLockResponse</a> with the minimum
--   fields required to make a request.
completeVaultLockResponse :: CompleteVaultLockResponse

-- | <i>See:</i> <a>completeVaultLockResponse</a> smart constructor.
data CompleteVaultLockResponse
instance GHC.Generics.Generic Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLockResponse
instance Data.Data.Data Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLockResponse
instance GHC.Show.Show Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLockResponse
instance GHC.Read.Read Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLockResponse
instance GHC.Classes.Eq Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLockResponse
instance GHC.Generics.Generic Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance Data.Data.Data Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance GHC.Show.Show Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance GHC.Read.Read Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance GHC.Classes.Eq Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance Control.DeepSeq.NFData Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLockResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance Control.DeepSeq.NFData Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.CompleteVaultLock.CompleteVaultLock


-- | You call this operation to inform Amazon Glacier that all the archive
--   parts have been uploaded and that Amazon Glacier can now assemble the
--   archive from the uploaded parts. After assembling and saving the
--   archive to the vault, Amazon Glacier returns the URI path of the newly
--   created archive resource. Using the URI path, you can then access the
--   archive. After you upload an archive, you should save the archive ID
--   returned to retrieve the archive at a later point. You can also get
--   the vault inventory to obtain a list of archive IDs in a vault. For
--   more information, see <tt>InitiateJob</tt> .
--   
--   In the request, you must include the computed SHA256 tree hash of the
--   entire archive you have uploaded. For information about computing a
--   SHA256 tree hash, see <a>Computing Checksums</a> . On the server side,
--   Amazon Glacier also constructs the SHA256 tree hash of the assembled
--   archive. If the values match, Amazon Glacier saves the archive to the
--   vault; otherwise, it returns an error, and the operation fails. The
--   <tt>ListParts</tt> operation returns a list of parts uploaded for a
--   specific multipart upload. It includes checksum information for each
--   uploaded part that can be used to debug a bad checksum issue.
--   
--   Additionally, Amazon Glacier also checks for any missing content
--   ranges when assembling the archive, if missing content ranges are
--   found, Amazon Glacier returns an error and the operation fails.
--   
--   Complete Multipart Upload is an idempotent operation. After your first
--   successful complete multipart upload, if you call the operation again
--   within a short period, the operation will succeed and return the same
--   archive ID. This is useful in the event you experience a network issue
--   that causes an aborted connection or receive a 500 server error, in
--   which case you can repeat your Complete Multipart Upload request and
--   get the same archive ID without creating duplicate archives. Note,
--   however, that after the multipart upload completes, you cannot call
--   the List Parts operation and the multipart upload will not appear in
--   List Multipart Uploads response, even if idempotent complete is
--   possible.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Uploading
--   Large Archives in Parts (Multipart Upload)</a> and <a>Complete
--   Multipart Upload</a> in the <i>Amazon Glacier Developer Guide</i> .
module Network.AWS.Glacier.CompleteMultipartUpload

-- | Creates a value of <a>CompleteMultipartUpload</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>cmuChecksum</a> - The SHA256 tree hash of the entire archive.
--   It is the tree hash of SHA256 tree hash of the individual parts. If
--   the value you specify in the request does not match the SHA256 tree
--   hash of the final assembled archive as computed by Amazon Glacier,
--   Amazon Glacier returns an error and the request fails.</li>
--   <li><a>cmuArchiveSize</a> - The total size, in bytes, of the entire
--   archive. This value should be the sum of all the sizes of the
--   individual parts that you uploaded.</li>
--   <li><a>cmuAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>cmuVaultName</a> - The name of the vault.</li>
--   <li><a>cmuUploadId</a> - The upload ID of the multipart upload.</li>
--   </ul>
completeMultipartUpload :: Text -> Text -> Text -> CompleteMultipartUpload

-- | Provides options to complete a multipart upload operation. This
--   informs Amazon Glacier that all the archive parts have been uploaded
--   and Amazon Glacier can now assemble the archive from the uploaded
--   parts. After assembling and saving the archive to the vault, Amazon
--   Glacier returns the URI path of the newly created archive resource.
--   
--   <i>See:</i> <a>completeMultipartUpload</a> smart constructor.
data CompleteMultipartUpload

-- | The SHA256 tree hash of the entire archive. It is the tree hash of
--   SHA256 tree hash of the individual parts. If the value you specify in
--   the request does not match the SHA256 tree hash of the final assembled
--   archive as computed by Amazon Glacier, Amazon Glacier returns an error
--   and the request fails.
cmuChecksum :: Lens' CompleteMultipartUpload (Maybe Text)

-- | The total size, in bytes, of the entire archive. This value should be
--   the sum of all the sizes of the individual parts that you uploaded.
cmuArchiveSize :: Lens' CompleteMultipartUpload (Maybe Text)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
cmuAccountId :: Lens' CompleteMultipartUpload Text

-- | The name of the vault.
cmuVaultName :: Lens' CompleteMultipartUpload Text

-- | The upload ID of the multipart upload.
cmuUploadId :: Lens' CompleteMultipartUpload Text

-- | Creates a value of <a>ArchiveCreationOutput</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>acoArchiveId</a> - The ID of the archive. This value is also
--   included as part of the location.</li>
--   <li><a>acoChecksum</a> - The checksum of the archive computed by
--   Amazon Glacier.</li>
--   <li><a>acoLocation</a> - The relative URI path of the newly added
--   archive resource.</li>
--   </ul>
archiveCreationOutput :: ArchiveCreationOutput

-- | Contains the Amazon Glacier response to your request.
--   
--   For information about the underlying REST API, see <a>Upload
--   Archive</a> . For conceptual information, see <a>Working with Archives
--   in Amazon Glacier</a> .
--   
--   <i>See:</i> <a>archiveCreationOutput</a> smart constructor.
data ArchiveCreationOutput

-- | The ID of the archive. This value is also included as part of the
--   location.
acoArchiveId :: Lens' ArchiveCreationOutput (Maybe Text)

-- | The checksum of the archive computed by Amazon Glacier.
acoChecksum :: Lens' ArchiveCreationOutput (Maybe Text)

-- | The relative URI path of the newly added archive resource.
acoLocation :: Lens' ArchiveCreationOutput (Maybe Text)
instance GHC.Generics.Generic Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance Data.Data.Data Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance GHC.Show.Show Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance GHC.Read.Read Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance GHC.Classes.Eq Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance Control.DeepSeq.NFData Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.CompleteMultipartUpload.CompleteMultipartUpload


-- | This operation adds the specified tags to a vault. Each tag is
--   composed of a key and a value. Each vault can have up to 10 tags. If
--   your request would cause the tag limit for the vault to be exceeded,
--   the operation throws the <tt>LimitExceededException</tt> error. If a
--   tag already exists on the vault under a specified key, the existing
--   key value will be overwritten. For more information about tags, see
--   <a>Tagging Amazon Glacier Resources</a> .
module Network.AWS.Glacier.AddTagsToVault

-- | Creates a value of <a>AddTagsToVault</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>attvTags</a> - The tags to add to the vault. Each tag is
--   composed of a key and a value. The value can be an empty string.</li>
--   <li><a>attvAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>attvVaultName</a> - The name of the vault.</li>
--   </ul>
addTagsToVault :: Text -> Text -> AddTagsToVault

-- | The input values for <tt>AddTagsToVault</tt> .
--   
--   <i>See:</i> <a>addTagsToVault</a> smart constructor.
data AddTagsToVault

-- | The tags to add to the vault. Each tag is composed of a key and a
--   value. The value can be an empty string.
attvTags :: Lens' AddTagsToVault (HashMap Text Text)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
attvAccountId :: Lens' AddTagsToVault Text

-- | The name of the vault.
attvVaultName :: Lens' AddTagsToVault Text

-- | Creates a value of <a>AddTagsToVaultResponse</a> with the minimum
--   fields required to make a request.
addTagsToVaultResponse :: AddTagsToVaultResponse

-- | <i>See:</i> <a>addTagsToVaultResponse</a> smart constructor.
data AddTagsToVaultResponse
instance GHC.Generics.Generic Network.AWS.Glacier.AddTagsToVault.AddTagsToVaultResponse
instance Data.Data.Data Network.AWS.Glacier.AddTagsToVault.AddTagsToVaultResponse
instance GHC.Show.Show Network.AWS.Glacier.AddTagsToVault.AddTagsToVaultResponse
instance GHC.Read.Read Network.AWS.Glacier.AddTagsToVault.AddTagsToVaultResponse
instance GHC.Classes.Eq Network.AWS.Glacier.AddTagsToVault.AddTagsToVaultResponse
instance GHC.Generics.Generic Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance Data.Data.Data Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance GHC.Show.Show Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance GHC.Read.Read Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance GHC.Classes.Eq Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.AddTagsToVault.AddTagsToVaultResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance Control.DeepSeq.NFData Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.AddTagsToVault.AddTagsToVault
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.AddTagsToVault.AddTagsToVault


-- | This operation aborts the vault locking process if the vault lock is
--   not in the <tt>Locked</tt> state. If the vault lock is in the
--   <tt>Locked</tt> state when this operation is requested, the operation
--   returns an <tt>AccessDeniedException</tt> error. Aborting the vault
--   locking process removes the vault lock policy from the specified
--   vault.
--   
--   A vault lock is put into the <tt>InProgress</tt> state by calling
--   <tt>InitiateVaultLock</tt> . A vault lock is put into the
--   <tt>Locked</tt> state by calling <tt>CompleteVaultLock</tt> . You can
--   get the state of a vault lock by calling <tt>GetVaultLock</tt> . For
--   more information about the vault locking process, see <a>Amazon
--   Glacier Vault Lock</a> . For more information about vault lock
--   policies, see <a>Amazon Glacier Access Control with Vault Lock
--   Policies</a> .
--   
--   This operation is idempotent. You can successfully invoke this
--   operation multiple times, if the vault lock is in the
--   <tt>InProgress</tt> state or if there is no policy associated with the
--   vault.
module Network.AWS.Glacier.AbortVaultLock

-- | Creates a value of <a>AbortVaultLock</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>avlAccountId</a> - The <tt>AccountId</tt> value is the AWS
--   account ID. This value must match the AWS account ID associated with
--   the credentials used to sign the request. You can either specify an
--   AWS account ID or optionally a single '<tt>-</tt> ' (hyphen), in which
--   case Amazon Glacier uses the AWS account ID associated with the
--   credentials used to sign the request. If you specify your account ID,
--   do not include any hyphens (<a>-</a>) in the ID.</li>
--   <li><a>avlVaultName</a> - The name of the vault.</li>
--   </ul>
abortVaultLock :: Text -> Text -> AbortVaultLock

-- | The input values for <tt>AbortVaultLock</tt> .
--   
--   <i>See:</i> <a>abortVaultLock</a> smart constructor.
data AbortVaultLock

-- | The <tt>AccountId</tt> value is the AWS account ID. This value must
--   match the AWS account ID associated with the credentials used to sign
--   the request. You can either specify an AWS account ID or optionally a
--   single '<tt>-</tt> ' (hyphen), in which case Amazon Glacier uses the
--   AWS account ID associated with the credentials used to sign the
--   request. If you specify your account ID, do not include any hyphens
--   (<a>-</a>) in the ID.
avlAccountId :: Lens' AbortVaultLock Text

-- | The name of the vault.
avlVaultName :: Lens' AbortVaultLock Text

-- | Creates a value of <a>AbortVaultLockResponse</a> with the minimum
--   fields required to make a request.
abortVaultLockResponse :: AbortVaultLockResponse

-- | <i>See:</i> <a>abortVaultLockResponse</a> smart constructor.
data AbortVaultLockResponse
instance GHC.Generics.Generic Network.AWS.Glacier.AbortVaultLock.AbortVaultLockResponse
instance Data.Data.Data Network.AWS.Glacier.AbortVaultLock.AbortVaultLockResponse
instance GHC.Show.Show Network.AWS.Glacier.AbortVaultLock.AbortVaultLockResponse
instance GHC.Read.Read Network.AWS.Glacier.AbortVaultLock.AbortVaultLockResponse
instance GHC.Classes.Eq Network.AWS.Glacier.AbortVaultLock.AbortVaultLockResponse
instance GHC.Generics.Generic Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance Data.Data.Data Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance GHC.Show.Show Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance GHC.Read.Read Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance GHC.Classes.Eq Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance Control.DeepSeq.NFData Network.AWS.Glacier.AbortVaultLock.AbortVaultLockResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance Control.DeepSeq.NFData Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.AbortVaultLock.AbortVaultLock
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.AbortVaultLock.AbortVaultLock


-- | This operation aborts a multipart upload identified by the upload ID.
--   
--   After the Abort Multipart Upload request succeeds, you cannot upload
--   any more parts to the multipart upload or complete the multipart
--   upload. Aborting a completed upload fails. However, aborting an
--   already-aborted upload will succeed, for a short time. For more
--   information about uploading a part and completing a multipart upload,
--   see <tt>UploadMultipartPart</tt> and <tt>CompleteMultipartUpload</tt>
--   .
--   
--   This operation is idempotent.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Working
--   with Archives in Amazon Glacier</a> and <a>Abort Multipart Upload</a>
--   in the <i>Amazon Glacier Developer Guide</i> .
module Network.AWS.Glacier.AbortMultipartUpload

-- | Creates a value of <a>AbortMultipartUpload</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>amuAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>amuVaultName</a> - The name of the vault.</li>
--   <li><a>amuUploadId</a> - The upload ID of the multipart upload to
--   delete.</li>
--   </ul>
abortMultipartUpload :: Text -> Text -> Text -> AbortMultipartUpload

-- | Provides options to abort a multipart upload identified by the upload
--   ID.
--   
--   For information about the underlying REST API, see <a>Abort Multipart
--   Upload</a> . For conceptual information, see <a>Working with Archives
--   in Amazon Glacier</a> .
--   
--   <i>See:</i> <a>abortMultipartUpload</a> smart constructor.
data AbortMultipartUpload

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
amuAccountId :: Lens' AbortMultipartUpload Text

-- | The name of the vault.
amuVaultName :: Lens' AbortMultipartUpload Text

-- | The upload ID of the multipart upload to delete.
amuUploadId :: Lens' AbortMultipartUpload Text

-- | Creates a value of <a>AbortMultipartUploadResponse</a> with the
--   minimum fields required to make a request.
abortMultipartUploadResponse :: AbortMultipartUploadResponse

-- | <i>See:</i> <a>abortMultipartUploadResponse</a> smart constructor.
data AbortMultipartUploadResponse
instance GHC.Generics.Generic Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUploadResponse
instance Data.Data.Data Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUploadResponse
instance GHC.Show.Show Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUploadResponse
instance GHC.Read.Read Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUploadResponse
instance GHC.Classes.Eq Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUploadResponse
instance GHC.Generics.Generic Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance Data.Data.Data Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance GHC.Show.Show Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance GHC.Read.Read Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance GHC.Classes.Eq Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance Control.DeepSeq.NFData Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUploadResponse
instance Data.Hashable.Class.Hashable Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance Control.DeepSeq.NFData Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.AbortMultipartUpload.AbortMultipartUpload


-- | This operation adds an archive to a vault. This is a synchronous
--   operation, and for a successful upload, your data is durably
--   persisted. Amazon Glacier returns the archive ID in the
--   <tt>x-amz-archive-id</tt> header of the response.
--   
--   You must use the archive ID to access your data in Amazon Glacier.
--   After you upload an archive, you should save the archive ID returned
--   so that you can retrieve or delete the archive later. Besides saving
--   the archive ID, you can also index it and give it a friendly name to
--   allow for better searching. You can also use the optional archive
--   description field to specify how the archive is referred to in an
--   external index of archives, such as you might create in Amazon
--   DynamoDB. You can also get the vault inventory to obtain a list of
--   archive IDs in a vault. For more information, see <tt>InitiateJob</tt>
--   .
--   
--   You must provide a SHA256 tree hash of the data you are uploading. For
--   information about computing a SHA256 tree hash, see <a>Computing
--   Checksums</a> .
--   
--   You can optionally specify an archive description of up to 1,024
--   printable ASCII characters. You can get the archive description when
--   you either retrieve the archive or get the vault inventory. For more
--   information, see <tt>InitiateJob</tt> . Amazon Glacier does not
--   interpret the description in any way. An archive description does not
--   need to be unique. You cannot use the description to retrieve or sort
--   the archive list.
--   
--   Archives are immutable. After you upload an archive, you cannot edit
--   the archive or its description.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Uploading
--   an Archive in Amazon Glacier</a> and <a>Upload Archive</a> in the
--   <i>Amazon Glacier Developer Guide</i> .
module Network.AWS.Glacier.UploadArchive

-- | Creates a value of <a>UploadArchive</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>uaChecksum</a> - The SHA256 tree hash of the data being
--   uploaded.</li>
--   <li><a>uaArchiveDescription</a> - The optional description of the
--   archive you are uploading.</li>
--   <li><a>uaVaultName</a> - The name of the vault.</li>
--   <li><a>uaAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>uaBody</a> - The data to upload.</li>
--   </ul>
uploadArchive :: Text -> Text -> HashedBody -> UploadArchive

-- | Provides options to add an archive to a vault.
--   
--   <i>See:</i> <a>uploadArchive</a> smart constructor.
data UploadArchive

-- | The SHA256 tree hash of the data being uploaded.
uaChecksum :: Lens' UploadArchive (Maybe Text)

-- | The optional description of the archive you are uploading.
uaArchiveDescription :: Lens' UploadArchive (Maybe Text)

-- | The name of the vault.
uaVaultName :: Lens' UploadArchive Text

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
uaAccountId :: Lens' UploadArchive Text

-- | The data to upload.
uaBody :: Lens' UploadArchive HashedBody

-- | Creates a value of <a>ArchiveCreationOutput</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>acoArchiveId</a> - The ID of the archive. This value is also
--   included as part of the location.</li>
--   <li><a>acoChecksum</a> - The checksum of the archive computed by
--   Amazon Glacier.</li>
--   <li><a>acoLocation</a> - The relative URI path of the newly added
--   archive resource.</li>
--   </ul>
archiveCreationOutput :: ArchiveCreationOutput

-- | Contains the Amazon Glacier response to your request.
--   
--   For information about the underlying REST API, see <a>Upload
--   Archive</a> . For conceptual information, see <a>Working with Archives
--   in Amazon Glacier</a> .
--   
--   <i>See:</i> <a>archiveCreationOutput</a> smart constructor.
data ArchiveCreationOutput

-- | The ID of the archive. This value is also included as part of the
--   location.
acoArchiveId :: Lens' ArchiveCreationOutput (Maybe Text)

-- | The checksum of the archive computed by Amazon Glacier.
acoChecksum :: Lens' ArchiveCreationOutput (Maybe Text)

-- | The relative URI path of the newly added archive resource.
acoLocation :: Lens' ArchiveCreationOutput (Maybe Text)
instance GHC.Generics.Generic Network.AWS.Glacier.UploadArchive.UploadArchive
instance GHC.Show.Show Network.AWS.Glacier.UploadArchive.UploadArchive
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.UploadArchive.UploadArchive
instance Network.AWS.Data.Body.ToBody Network.AWS.Glacier.UploadArchive.UploadArchive
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.UploadArchive.UploadArchive
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.UploadArchive.UploadArchive
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.UploadArchive.UploadArchive


-- | This operation uploads a part of an archive. You can upload archive
--   parts in any order. You can also upload them in parallel. You can
--   upload up to 10,000 parts for a multipart upload.
--   
--   Amazon Glacier rejects your upload part request if any of the
--   following conditions is true:
--   
--   <ul>
--   <li><b>SHA256 tree hash does not match</b> To ensure that part data is
--   not corrupted in transmission, you compute a SHA256 tree hash of the
--   part and include it in your request. Upon receiving the part data,
--   Amazon Glacier also computes a SHA256 tree hash. If these hash values
--   don't match, the operation fails. For information about computing a
--   SHA256 tree hash, see <a>Computing Checksums</a> .</li>
--   <li><b>Part size does not match</b> The size of each part except the
--   last must match the size specified in the corresponding
--   <tt>InitiateMultipartUpload</tt> request. The size of the last part
--   must be the same size as, or smaller than, the specified size.</li>
--   <li><b>Range does not align</b> The byte range value in the request
--   does not align with the part size specified in the corresponding
--   initiate request. For example, if you specify a part size of 4194304
--   bytes (4 MB), then 0 to 4194303 bytes (4 MB - 1) and 4194304 (4 MB) to
--   8388607 (8 MB - 1) are valid part ranges. However, if you set a range
--   value of 2 MB to 6 MB, the range does not align with the part size and
--   the upload will fail.</li>
--   </ul>
--   
--   This operation is idempotent. If you upload the same part multiple
--   times, the data included in the most recent request overwrites the
--   previously uploaded data.
--   
--   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
--   <a>Access Control Using AWS Identity and Access Management (IAM)</a> .
--   
--   For conceptual information and underlying REST API, see <a>Uploading
--   Large Archives in Parts (Multipart Upload)</a> and <a>Upload Part</a>
--   in the <i>Amazon Glacier Developer Guide</i> .
module Network.AWS.Glacier.UploadMultipartPart

-- | Creates a value of <a>UploadMultipartPart</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>umpChecksum</a> - The SHA256 tree hash of the data being
--   uploaded.</li>
--   <li><a>umpRange</a> - Identifies the range of bytes in the assembled
--   archive that will be uploaded in this part. Amazon Glacier uses this
--   information to assemble the archive in the proper sequence. The format
--   of this header follows RFC 2616. An example header is
--   Content-Range:bytes 0-4194303/*.</li>
--   <li><a>umpAccountId</a> - The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in
--   which case Amazon 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 (<a>-</a>) in the ID.</li>
--   <li><a>umpVaultName</a> - The name of the vault.</li>
--   <li><a>umpUploadId</a> - The upload ID of the multipart upload.</li>
--   <li><a>umpBody</a> - The data to upload.</li>
--   </ul>
uploadMultipartPart :: Text -> Text -> Text -> HashedBody -> UploadMultipartPart

-- | Provides options to upload a part of an archive in a multipart upload
--   operation.
--   
--   <i>See:</i> <a>uploadMultipartPart</a> smart constructor.
data UploadMultipartPart

-- | The SHA256 tree hash of the data being uploaded.
umpChecksum :: Lens' UploadMultipartPart (Maybe Text)

-- | Identifies the range of bytes in the assembled archive that will be
--   uploaded in this part. Amazon Glacier uses this information to
--   assemble the archive in the proper sequence. The format of this header
--   follows RFC 2616. An example header is Content-Range:bytes
--   0-4194303/*.
umpRange :: Lens' UploadMultipartPart (Maybe Text)

-- | The <tt>AccountId</tt> 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 '<tt>-</tt> ' (hyphen), in which case Amazon 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
--   (<a>-</a>) in the ID.
umpAccountId :: Lens' UploadMultipartPart Text

-- | The name of the vault.
umpVaultName :: Lens' UploadMultipartPart Text

-- | The upload ID of the multipart upload.
umpUploadId :: Lens' UploadMultipartPart Text

-- | The data to upload.
umpBody :: Lens' UploadMultipartPart HashedBody

-- | Creates a value of <a>UploadMultipartPartResponse</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>umprsChecksum</a> - The SHA256 tree hash that Amazon Glacier
--   computed for the uploaded part.</li>
--   <li><a>umprsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
uploadMultipartPartResponse :: Int -> UploadMultipartPartResponse

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>uploadMultipartPartResponse</a> smart constructor.
data UploadMultipartPartResponse

-- | The SHA256 tree hash that Amazon Glacier computed for the uploaded
--   part.
umprsChecksum :: Lens' UploadMultipartPartResponse (Maybe Text)

-- | <ul>
--   <li>- | The response status code.</li>
--   </ul>
umprsResponseStatus :: Lens' UploadMultipartPartResponse Int
instance GHC.Generics.Generic Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPartResponse
instance Data.Data.Data Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPartResponse
instance GHC.Show.Show Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPartResponse
instance GHC.Read.Read Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPartResponse
instance GHC.Classes.Eq Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPartResponse
instance GHC.Generics.Generic Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPart
instance GHC.Show.Show Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPart
instance Network.AWS.Types.AWSRequest Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPart
instance Control.DeepSeq.NFData Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPartResponse
instance Network.AWS.Data.Body.ToBody Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPart
instance Network.AWS.Data.Headers.ToHeaders Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPart
instance Network.AWS.Data.Path.ToPath Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPart
instance Network.AWS.Data.Query.ToQuery Network.AWS.Glacier.UploadMultipartPart.UploadMultipartPart


module Network.AWS.Glacier.Waiters

-- | Polls <a>DescribeVault</a> every 3 seconds until a successful state is
--   reached. An error is returned after 15 failed checks.
vaultNotExists :: Wait DescribeVault

-- | Polls <a>DescribeVault</a> every 3 seconds until a successful state is
--   reached. An error is returned after 15 failed checks.
vaultExists :: Wait DescribeVault


-- | Amazon Glacier is a storage solution for "cold data."
--   
--   Amazon Glacier is an extremely low-cost storage service that provides
--   secure, durable, and easy-to-use storage for data backup and archival.
--   With Amazon Glacier, customers can store their data cost effectively
--   for months, years, or decades. Amazon Glacier also enables customers
--   to offload the administrative burdens of operating and scaling storage
--   to AWS, so they don't have to worry about capacity planning, hardware
--   provisioning, data replication, hardware failure and recovery, or
--   time-consuming hardware migrations.
--   
--   Amazon Glacier is a great storage choice when low storage cost is
--   paramount, your data is rarely retrieved, and retrieval latency of
--   several hours is acceptable. If your application requires fast or
--   frequent access to your data, consider using Amazon S3. For more
--   information, see <a>Amazon Simple Storage Service (Amazon S3)</a> .
--   
--   You can store any kind of data in any format. There is no maximum
--   limit on the total amount of data you can store in Amazon Glacier.
--   
--   If you are a first-time user of Amazon Glacier, we recommend that you
--   begin by reading the following sections in the <i>Amazon Glacier
--   Developer Guide</i> :
--   
--   <ul>
--   <li><a>What is Amazon Glacier</a> - This section of the Developer
--   Guide describes the underlying data model, the operations it supports,
--   and the AWS SDKs that you can use to interact with the service.</li>
--   <li><a>Getting Started with Amazon Glacier</a> - The Getting Started
--   section walks you through the process of creating a vault, uploading
--   archives, creating jobs to download archives, retrieving the job
--   output, and deleting archives.</li>
--   </ul>
module Network.AWS.Glacier

-- | API version <tt>2012-06-01</tt> of the Amazon Glacier SDK
--   configuration.
glacier :: Service

-- | Returned if a retrieval job would exceed the current data policy's
--   retrieval rate limit. For more information about data retrieval
--   policies,
_PolicyEnforcedException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if a parameter of the request is incorrectly specified.
_InvalidParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if, when uploading an archive, Amazon Glacier times out while
--   receiving the upload.
_RequestTimeoutException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if the service cannot complete the request.
_ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if there is insufficient capacity to process this expedited
--   request. This error only applies to expedited retrievals and not to
--   standard or bulk retrievals.
_InsufficientCapacityException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if the specified resource (such as a vault, upload ID, or job
--   ID) doesn't exist.
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if the request results in a vault or account limit being
--   exceeded.
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Returned if a required header or parameter is missing from the
--   request.
_MissingParameterValueException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Polls <a>DescribeVault</a> every 3 seconds until a successful state is
--   reached. An error is returned after 15 failed checks.
vaultNotExists :: Wait DescribeVault

-- | Polls <a>DescribeVault</a> every 3 seconds until a successful state is
--   reached. An error is returned after 15 failed checks.
vaultExists :: Wait DescribeVault
data ActionCode
ArchiveRetrieval :: ActionCode
InventoryRetrieval :: ActionCode
Select :: ActionCode
data CannedACL
AWSExecRead :: CannedACL
AuthenticatedRead :: CannedACL
BucketOwnerFullControl :: CannedACL
BucketOwnerRead :: CannedACL
Private :: CannedACL
PublicRead :: CannedACL
PublicReadWrite :: CannedACL
data EncryptionType
AES256 :: EncryptionType
AWSKMS :: EncryptionType
data ExpressionType
Sql :: ExpressionType
data FileHeaderInfo
Ignore :: FileHeaderInfo
None :: FileHeaderInfo
Use :: FileHeaderInfo
data Permission
FullControl :: Permission
Read :: Permission
ReadAcp :: Permission
Write :: Permission
WriteAcp :: Permission
data QuoteFields
ASNeeded :: QuoteFields
Always :: QuoteFields
data StatusCode
Failed :: StatusCode
InProgress :: StatusCode
Succeeded :: StatusCode
data StorageClass
ReducedRedundancy :: StorageClass
Standard :: StorageClass
StandardIA :: StorageClass
data Type
AmazonCustomerByEmail :: Type
CanonicalUser :: Type
Group :: Type

-- | Contains the Amazon Glacier response to your request.
--   
--   For information about the underlying REST API, see <a>Upload
--   Archive</a> . For conceptual information, see <a>Working with Archives
--   in Amazon Glacier</a> .
--   
--   <i>See:</i> <a>archiveCreationOutput</a> smart constructor.
data ArchiveCreationOutput

-- | Creates a value of <a>ArchiveCreationOutput</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>acoArchiveId</a> - The ID of the archive. This value is also
--   included as part of the location.</li>
--   <li><a>acoChecksum</a> - The checksum of the archive computed by
--   Amazon Glacier.</li>
--   <li><a>acoLocation</a> - The relative URI path of the newly added
--   archive resource.</li>
--   </ul>
archiveCreationOutput :: ArchiveCreationOutput

-- | The ID of the archive. This value is also included as part of the
--   location.
acoArchiveId :: Lens' ArchiveCreationOutput (Maybe Text)

-- | The checksum of the archive computed by Amazon Glacier.
acoChecksum :: Lens' ArchiveCreationOutput (Maybe Text)

-- | The relative URI path of the newly added archive resource.
acoLocation :: Lens' ArchiveCreationOutput (Maybe Text)

-- | Contains information about the comma-separated value (CSV) file to
--   select from.
--   
--   <i>See:</i> <a>csvInput</a> smart constructor.
data CSVInput

-- | Creates a value of <a>CSVInput</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>ciQuoteCharacter</a> - A value used as an escape character
--   where the field delimiter is part of the value.</li>
--   <li><a>ciRecordDelimiter</a> - A value used to separate individual
--   records from each other.</li>
--   <li><a>ciFileHeaderInfo</a> - Describes the first line of input. Valid
--   values are <tt>None</tt> , <tt>Ignore</tt> , and <tt>Use</tt> .</li>
--   <li><a>ciQuoteEscapeCharacter</a> - A single character used for
--   escaping the quotation-mark character inside an already escaped
--   value.</li>
--   <li><a>ciComments</a> - A single character used to indicate that a row
--   should be ignored when the character is present at the start of that
--   row.</li>
--   <li><a>ciFieldDelimiter</a> - A value used to separate individual
--   fields from each other within a record.</li>
--   </ul>
csvInput :: CSVInput

-- | A value used as an escape character where the field delimiter is part
--   of the value.
ciQuoteCharacter :: Lens' CSVInput (Maybe Text)

-- | A value used to separate individual records from each other.
ciRecordDelimiter :: Lens' CSVInput (Maybe Text)

-- | Describes the first line of input. Valid values are <tt>None</tt> ,
--   <tt>Ignore</tt> , and <tt>Use</tt> .
ciFileHeaderInfo :: Lens' CSVInput (Maybe FileHeaderInfo)

-- | A single character used for escaping the quotation-mark character
--   inside an already escaped value.
ciQuoteEscapeCharacter :: Lens' CSVInput (Maybe Text)

-- | A single character used to indicate that a row should be ignored when
--   the character is present at the start of that row.
ciComments :: Lens' CSVInput (Maybe Text)

-- | A value used to separate individual fields from each other within a
--   record.
ciFieldDelimiter :: Lens' CSVInput (Maybe Text)

-- | Contains information about the comma-separated value (CSV) file that
--   the job results are stored in.
--   
--   <i>See:</i> <a>csvOutput</a> smart constructor.
data CSVOutput

-- | Creates a value of <a>CSVOutput</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>coQuoteCharacter</a> - A value used as an escape character
--   where the field delimiter is part of the value.</li>
--   <li><a>coQuoteFields</a> - A value that indicates whether all output
--   fields should be contained within quotation marks.</li>
--   <li><a>coRecordDelimiter</a> - A value used to separate individual
--   records from each other.</li>
--   <li><a>coQuoteEscapeCharacter</a> - A single character used for
--   escaping the quotation-mark character inside an already escaped
--   value.</li>
--   <li><a>coFieldDelimiter</a> - A value used to separate individual
--   fields from each other within a record.</li>
--   </ul>
csvOutput :: CSVOutput

-- | A value used as an escape character where the field delimiter is part
--   of the value.
coQuoteCharacter :: Lens' CSVOutput (Maybe Text)

-- | A value that indicates whether all output fields should be contained
--   within quotation marks.
coQuoteFields :: Lens' CSVOutput (Maybe QuoteFields)

-- | A value used to separate individual records from each other.
coRecordDelimiter :: Lens' CSVOutput (Maybe Text)

-- | A single character used for escaping the quotation-mark character
--   inside an already escaped value.
coQuoteEscapeCharacter :: Lens' CSVOutput (Maybe Text)

-- | A value used to separate individual fields from each other within a
--   record.
coFieldDelimiter :: Lens' CSVOutput (Maybe Text)

-- | Data retrieval policy.
--   
--   <i>See:</i> <a>dataRetrievalPolicy</a> smart constructor.
data DataRetrievalPolicy

-- | Creates a value of <a>DataRetrievalPolicy</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>drpRules</a> - The policy rule. Although this is a list type,
--   currently there must be only one rule, which contains a Strategy field
--   and optionally a BytesPerHour field.</li>
--   </ul>
dataRetrievalPolicy :: DataRetrievalPolicy

-- | The policy rule. Although this is a list type, currently there must be
--   only one rule, which contains a Strategy field and optionally a
--   BytesPerHour field.
drpRules :: Lens' DataRetrievalPolicy [DataRetrievalRule]

-- | Data retrieval policy rule.
--   
--   <i>See:</i> <a>dataRetrievalRule</a> smart constructor.
data DataRetrievalRule

-- | Creates a value of <a>DataRetrievalRule</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>drrStrategy</a> - The type of data retrieval policy to set.
--   Valid values: BytesPerHour|FreeTier|None</li>
--   <li><a>drrBytesPerHour</a> - The maximum number of bytes that can be
--   retrieved in an hour. This field is required only if the value of the
--   Strategy field is <tt>BytesPerHour</tt> . Your PUT operation will be
--   rejected if the Strategy field is not set to <tt>BytesPerHour</tt> and
--   you set this field.</li>
--   </ul>
dataRetrievalRule :: DataRetrievalRule

-- | The type of data retrieval policy to set. Valid values:
--   BytesPerHour|FreeTier|None
drrStrategy :: Lens' DataRetrievalRule (Maybe Text)

-- | The maximum number of bytes that can be retrieved in an hour. This
--   field is required only if the value of the Strategy field is
--   <tt>BytesPerHour</tt> . Your PUT operation will be rejected if the
--   Strategy field is not set to <tt>BytesPerHour</tt> and you set this
--   field.
drrBytesPerHour :: Lens' DataRetrievalRule (Maybe Integer)

-- | Contains the Amazon Glacier response to your request.
--   
--   <i>See:</i> <a>describeVaultOutput</a> smart constructor.
data DescribeVaultOutput

-- | Creates a value of <a>DescribeVaultOutput</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>dvoVaultName</a> - The name of the vault.</li>
--   <li><a>dvoSizeInBytes</a> - 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.</li>
--   <li><a>dvoLastInventoryDate</a> - The Universal Coordinated Time (UTC)
--   date when Amazon Glacier completed the last vault inventory. This
--   value should be a string in the ISO 8601 date format, for example
--   <tt>2012-03-20T17:03:43.221Z</tt> .</li>
--   <li><a>dvoVaultARN</a> - The Amazon Resource Name (ARN) of the
--   vault.</li>
--   <li><a>dvoCreationDate</a> - 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 <tt>2012-03-20T17:03:43.221Z</tt> .</li>
--   <li><a>dvoNumberOfArchives</a> - The number of archives in the vault
--   as of the last inventory date. This field will return <tt>null</tt> if
--   an inventory has not yet run on the vault, for example if you just
--   created the vault.</li>
--   </ul>
describeVaultOutput :: DescribeVaultOutput

-- | The name of the vault.
dvoVaultName :: Lens' DescribeVaultOutput (Maybe Text)

-- | 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.
dvoSizeInBytes :: Lens' DescribeVaultOutput (Maybe Integer)

-- | The Universal Coordinated Time (UTC) date when Amazon Glacier
--   completed the last vault inventory. This value should be a string in
--   the ISO 8601 date format, for example
--   <tt>2012-03-20T17:03:43.221Z</tt> .
dvoLastInventoryDate :: Lens' DescribeVaultOutput (Maybe Text)

-- | The Amazon Resource Name (ARN) of the vault.
dvoVaultARN :: Lens' DescribeVaultOutput (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
--   <tt>2012-03-20T17:03:43.221Z</tt> .
dvoCreationDate :: Lens' DescribeVaultOutput (Maybe Text)

-- | The number of archives in the vault as of the last inventory date.
--   This field will return <tt>null</tt> if an inventory has not yet run
--   on the vault, for example if you just created the vault.
dvoNumberOfArchives :: Lens' DescribeVaultOutput (Maybe Integer)

-- | Contains information about the encryption used to store the job
--   results in Amazon S3.
--   
--   <i>See:</i> <a>encryption</a> smart constructor.
data Encryption

-- | Creates a value of <a>Encryption</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>eEncryptionType</a> - The server-side encryption algorithm used
--   when storing job results in Amazon S3, for example <tt>AES256</tt> or
--   <tt>aws:kms</tt> .</li>
--   <li><a>eKMSKeyId</a> - The AWS KMS key ID to use for object
--   encryption. All GET and PUT requests for an object protected by AWS
--   KMS fail if not made by using Secure Sockets Layer (SSL) or Signature
--   Version 4.</li>
--   <li><a>eKMSContext</a> - Optional. If the encryption type is
--   <tt>aws:kms</tt> , you can use this value to specify the encryption
--   context for the job results.</li>
--   </ul>
encryption :: Encryption

-- | The server-side encryption algorithm used when storing job results in
--   Amazon S3, for example <tt>AES256</tt> or <tt>aws:kms</tt> .
eEncryptionType :: Lens' Encryption (Maybe EncryptionType)

-- | The AWS KMS key ID to use for object encryption. All GET and PUT
--   requests for an object protected by AWS KMS fail if not made by using
--   Secure Sockets Layer (SSL) or Signature Version 4.
eKMSKeyId :: Lens' Encryption (Maybe Text)

-- | Optional. If the encryption type is <tt>aws:kms</tt> , you can use
--   this value to specify the encryption context for the job results.
eKMSContext :: Lens' Encryption (Maybe Text)

-- | Contains the description of an Amazon Glacier job.
--   
--   <i>See:</i> <a>glacierJobDescription</a> smart constructor.
data GlacierJobDescription

-- | Creates a value of <a>GlacierJobDescription</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gjdSHA256TreeHash</a> - For an archive retrieval job, this
--   value is the checksum of the archive. Otherwise, this value is null.
--   The SHA256 tree hash value for the requested range of an archive. If
--   the <b>InitiateJob</b> request for an archive specified a tree-hash
--   aligned range, then this field returns a value. If the whole archive
--   is retrieved, this value is the same as the ArchiveSHA256TreeHash
--   value. This field is null for the following: * Archive retrieval jobs
--   that specify a range that is not tree-hash aligned * Archival jobs
--   that specify a range that is equal to the whole archive, when the job
--   status is <tt>InProgress</tt> * Inventory jobs * Select jobs</li>
--   <li><a>gjdArchiveId</a> - The archive ID requested for a select job or
--   archive retrieval. Otherwise, this field is null.</li>
--   <li><a>gjdSelectParameters</a> - Contains the parameters used for a
--   select.</li>
--   <li><a>gjdJobId</a> - An opaque string that identifies an Amazon
--   Glacier job.</li>
--   <li><a>gjdJobOutputPath</a> - Contains the job output location.</li>
--   <li><a>gjdRetrievalByteRange</a> - The retrieved byte range for
--   archive retrieval jobs in the form <i>StartByteValue</i>
--   -<i>EndByteValue</i> . If no range was specified in the archive
--   retrieval, then the whole archive is retrieved. In this case,
--   <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals the size
--   of the archive minus 1. For inventory retrieval or select jobs, this
--   field is null.</li>
--   <li><a>gjdInventoryRetrievalParameters</a> - Parameters used for range
--   inventory retrieval.</li>
--   <li><a>gjdAction</a> - The job type. This value is either
--   <tt>ArchiveRetrieval</tt> , <tt>InventoryRetrieval</tt> , or
--   <tt>Select</tt> .</li>
--   <li><a>gjdJobDescription</a> - The job description provided when
--   initiating the job.</li>
--   <li><a>gjdSNSTopic</a> - An Amazon SNS topic that receives
--   notification.</li>
--   <li><a>gjdStatusMessage</a> - A friendly message that describes the
--   job status.</li>
--   <li><a>gjdVaultARN</a> - The Amazon Resource Name (ARN) of the vault
--   from which an archive retrieval was requested.</li>
--   <li><a>gjdOutputLocation</a> - Contains the location where the data
--   from the select job is stored.</li>
--   <li><a>gjdTier</a> - The tier to use for a select or an archive
--   retrieval. Valid values are <tt>Expedited</tt> , <tt>Standard</tt> ,
--   or <tt>Bulk</tt> . <tt>Standard</tt> is the default.</li>
--   <li><a>gjdArchiveSHA256TreeHash</a> - The SHA256 tree hash of the
--   entire archive for an archive retrieval. For inventory retrieval or
--   select jobs, this field is null.</li>
--   <li><a>gjdCreationDate</a> - The UTC date when the job was created.
--   This value is a string representation of ISO 8601 date format, for
--   example <tt>"2012-03-20T17:03:43.221Z"</tt> .</li>
--   <li><a>gjdCompleted</a> - The job status. When a job is completed, you
--   get the job's output using Get Job Output (GET output).</li>
--   <li><a>gjdCompletionDate</a> - The UTC time that the job request
--   completed. While the job is in progress, the value is null.</li>
--   <li><a>gjdInventorySizeInBytes</a> - For an inventory retrieval job,
--   this value is the size in bytes of the inventory requested for
--   download. For an archive retrieval or select job, this value is
--   null.</li>
--   <li><a>gjdArchiveSizeInBytes</a> - For an archive retrieval job, this
--   value is the size in bytes of the archive being requested for
--   download. For an inventory retrieval or select job, this value is
--   null.</li>
--   <li><a>gjdStatusCode</a> - The status code can be <tt>InProgress</tt>
--   , <tt>Succeeded</tt> , or <tt>Failed</tt> , and indicates the status
--   of the job.</li>
--   </ul>
glacierJobDescription :: GlacierJobDescription

-- | For an archive retrieval job, this value is the checksum of the
--   archive. Otherwise, this value is null. The SHA256 tree hash value for
--   the requested range of an archive. If the <b>InitiateJob</b> request
--   for an archive specified a tree-hash aligned range, then this field
--   returns a value. If the whole archive is retrieved, this value is the
--   same as the ArchiveSHA256TreeHash value. This field is null for the
--   following: * Archive retrieval jobs that specify a range that is not
--   tree-hash aligned * Archival jobs that specify a range that is equal
--   to the whole archive, when the job status is <tt>InProgress</tt> *
--   Inventory jobs * Select jobs
gjdSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)

-- | The archive ID requested for a select job or archive retrieval.
--   Otherwise, this field is null.
gjdArchiveId :: Lens' GlacierJobDescription (Maybe Text)

-- | Contains the parameters used for a select.
gjdSelectParameters :: Lens' GlacierJobDescription (Maybe SelectParameters)

-- | An opaque string that identifies an Amazon Glacier job.
gjdJobId :: Lens' GlacierJobDescription (Maybe Text)

-- | Contains the job output location.
gjdJobOutputPath :: Lens' GlacierJobDescription (Maybe Text)

-- | The retrieved byte range for archive retrieval jobs in the form
--   <i>StartByteValue</i> -<i>EndByteValue</i> . If no range was specified
--   in the archive retrieval, then the whole archive is retrieved. In this
--   case, <i>StartByteValue</i> equals 0 and <i>EndByteValue</i> equals
--   the size of the archive minus 1. For inventory retrieval or select
--   jobs, this field is null.
gjdRetrievalByteRange :: Lens' GlacierJobDescription (Maybe Text)

-- | Parameters used for range inventory retrieval.
gjdInventoryRetrievalParameters :: Lens' GlacierJobDescription (Maybe InventoryRetrievalJobDescription)

-- | The job type. This value is either <tt>ArchiveRetrieval</tt> ,
--   <tt>InventoryRetrieval</tt> , or <tt>Select</tt> .
gjdAction :: Lens' GlacierJobDescription (Maybe ActionCode)

-- | The job description provided when initiating the job.
gjdJobDescription :: Lens' GlacierJobDescription (Maybe Text)

-- | An Amazon SNS topic that receives notification.
gjdSNSTopic :: Lens' GlacierJobDescription (Maybe Text)

-- | A friendly message that describes the job status.
gjdStatusMessage :: Lens' GlacierJobDescription (Maybe Text)

-- | The Amazon Resource Name (ARN) of the vault from which an archive
--   retrieval was requested.
gjdVaultARN :: Lens' GlacierJobDescription (Maybe Text)

-- | Contains the location where the data from the select job is stored.
gjdOutputLocation :: Lens' GlacierJobDescription (Maybe OutputLocation)

-- | The tier to use for a select or an archive retrieval. Valid values are
--   <tt>Expedited</tt> , <tt>Standard</tt> , or <tt>Bulk</tt> .
--   <tt>Standard</tt> is the default.
gjdTier :: Lens' GlacierJobDescription (Maybe Text)

-- | The SHA256 tree hash of the entire archive for an archive retrieval.
--   For inventory retrieval or select jobs, this field is null.
gjdArchiveSHA256TreeHash :: Lens' GlacierJobDescription (Maybe Text)

-- | The UTC date when the job was created. This value is a string
--   representation of ISO 8601 date format, for example
--   <tt>"2012-03-20T17:03:43.221Z"</tt> .
gjdCreationDate :: Lens' GlacierJobDescription (Maybe Text)

-- | The job status. When a job is completed, you get the job's output
--   using Get Job Output (GET output).
gjdCompleted :: Lens' GlacierJobDescription (Maybe Bool)

-- | The UTC time that the job request completed. While the job is in
--   progress, the value is null.
gjdCompletionDate :: Lens' GlacierJobDescription (Maybe Text)

-- | For an inventory retrieval job, this value is the size in bytes of the
--   inventory requested for download. For an archive retrieval or select
--   job, this value is null.
gjdInventorySizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)

-- | For an archive retrieval job, this value is the size in bytes of the
--   archive being requested for download. For an inventory retrieval or
--   select job, this value is null.
gjdArchiveSizeInBytes :: Lens' GlacierJobDescription (Maybe Integer)

-- | The status code can be <tt>InProgress</tt> , <tt>Succeeded</tt> , or
--   <tt>Failed</tt> , and indicates the status of the job.
gjdStatusCode :: Lens' GlacierJobDescription (Maybe StatusCode)

-- | Contains information about a grant.
--   
--   <i>See:</i> <a>grant</a> smart constructor.
data Grant

-- | Creates a value of <a>Grant</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gPermission</a> - Specifies the permission given to the
--   grantee.</li>
--   <li><a>gGrantee</a> - The grantee.</li>
--   </ul>
grant :: Grant

-- | Specifies the permission given to the grantee.
gPermission :: Lens' Grant (Maybe Permission)

-- | The grantee.
gGrantee :: Lens' Grant (Maybe Grantee)

-- | Contains information about the grantee.
--   
--   <i>See:</i> <a>grantee</a> smart constructor.
data Grantee

-- | Creates a value of <a>Grantee</a> with the minimum fields required to
--   make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>gURI</a> - URI of the grantee group.</li>
--   <li><a>gEmailAddress</a> - Email address of the grantee.</li>
--   <li><a>gDisplayName</a> - Screen name of the grantee.</li>
--   <li><a>gId</a> - The canonical user ID of the grantee.</li>
--   <li><a>gType</a> - Type of grantee</li>
--   </ul>
grantee :: Type -> Grantee

-- | URI of the grantee group.
gURI :: Lens' Grantee (Maybe Text)

-- | Email address of the grantee.
gEmailAddress :: Lens' Grantee (Maybe Text)

-- | Screen name of the grantee.
gDisplayName :: Lens' Grantee (Maybe Text)

-- | The canonical user ID of the grantee.
gId :: Lens' Grantee (Maybe Text)

-- | Type of grantee
gType :: Lens' Grantee Type

-- | Describes how the archive is serialized.
--   
--   <i>See:</i> <a>inputSerialization</a> smart constructor.
data InputSerialization

-- | Creates a value of <a>InputSerialization</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>isCsv</a> - Describes the serialization of a CSV-encoded
--   object.</li>
--   </ul>
inputSerialization :: InputSerialization

-- | Describes the serialization of a CSV-encoded object.
isCsv :: Lens' InputSerialization (Maybe CSVInput)

-- | Describes the options for a range inventory retrieval job.
--   
--   <i>See:</i> <a>inventoryRetrievalJobDescription</a> smart constructor.
data InventoryRetrievalJobDescription

-- | Creates a value of <a>InventoryRetrievalJobDescription</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>irjdFormat</a> - The output format for the vault inventory
--   list, which is set by the <b>InitiateJob</b> request when initiating a
--   job to retrieve a vault inventory. Valid values are <tt>CSV</tt> and
--   <tt>JSON</tt> .</li>
--   <li><a>irjdEndDate</a> - The end of the date range in UTC for vault
--   inventory retrieval that includes archives created before this date.
--   This value should be a string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .</li>
--   <li><a>irjdStartDate</a> - The start of the date range in Universal
--   Coordinated Time (UTC) for vault inventory retrieval that includes
--   archives created on or after this date. This value should be a string
--   in the ISO 8601 date format, for example <tt>2013-03-20T17:03:43Z</tt>
--   .</li>
--   <li><a>irjdMarker</a> - An opaque string that represents where to
--   continue pagination of the vault inventory retrieval results. You use
--   the marker in a new <b>InitiateJob</b> request to obtain additional
--   inventory items. If there are no more inventory items, this value is
--   <tt>null</tt> . For more information, see <a>Range Inventory
--   Retrieval</a> .</li>
--   <li><a>irjdLimit</a> - The maximum number of inventory items returned
--   per vault inventory retrieval request. This limit is set when
--   initiating the job with the a <b>InitiateJob</b> request.</li>
--   </ul>
inventoryRetrievalJobDescription :: InventoryRetrievalJobDescription

-- | The output format for the vault inventory list, which is set by the
--   <b>InitiateJob</b> request when initiating a job to retrieve a vault
--   inventory. Valid values are <tt>CSV</tt> and <tt>JSON</tt> .
irjdFormat :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | The end of the date range in UTC for vault inventory retrieval that
--   includes archives created before this date. This value should be a
--   string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .
irjdEndDate :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | The start of the date range in Universal Coordinated Time (UTC) for
--   vault inventory retrieval that includes archives created on or after
--   this date. This value should be a string in the ISO 8601 date format,
--   for example <tt>2013-03-20T17:03:43Z</tt> .
irjdStartDate :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | An opaque string that represents where to continue pagination of the
--   vault inventory retrieval results. You use the marker in a new
--   <b>InitiateJob</b> request to obtain additional inventory items. If
--   there are no more inventory items, this value is <tt>null</tt> . For
--   more information, see <a>Range Inventory Retrieval</a> .
irjdMarker :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | The maximum number of inventory items returned per vault inventory
--   retrieval request. This limit is set when initiating the job with the
--   a <b>InitiateJob</b> request.
irjdLimit :: Lens' InventoryRetrievalJobDescription (Maybe Text)

-- | Provides options for specifying a range inventory retrieval job.
--   
--   <i>See:</i> <a>inventoryRetrievalJobInput</a> smart constructor.
data InventoryRetrievalJobInput

-- | Creates a value of <a>InventoryRetrievalJobInput</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>irjiEndDate</a> - The end of the date range in UTC for vault
--   inventory retrieval that includes archives created before this date.
--   This value should be a string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .</li>
--   <li><a>irjiStartDate</a> - The start of the date range in UTC for
--   vault inventory retrieval that includes archives created on or after
--   this date. This value should be a string in the ISO 8601 date format,
--   for example <tt>2013-03-20T17:03:43Z</tt> .</li>
--   <li><a>irjiMarker</a> - An opaque string that represents where to
--   continue pagination of the vault inventory retrieval results. You use
--   the marker in a new <b>InitiateJob</b> request to obtain additional
--   inventory items. If there are no more inventory items, this value is
--   <tt>null</tt> .</li>
--   <li><a>irjiLimit</a> - Specifies the maximum number of inventory items
--   returned per vault inventory retrieval request. Valid values are
--   greater than or equal to 1.</li>
--   </ul>
inventoryRetrievalJobInput :: InventoryRetrievalJobInput

-- | The end of the date range in UTC for vault inventory retrieval that
--   includes archives created before this date. This value should be a
--   string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .
irjiEndDate :: Lens' InventoryRetrievalJobInput (Maybe Text)

-- | The start of the date range in UTC for vault inventory retrieval that
--   includes archives created on or after this date. This value should be
--   a string in the ISO 8601 date format, for example
--   <tt>2013-03-20T17:03:43Z</tt> .
irjiStartDate :: Lens' InventoryRetrievalJobInput (Maybe Text)

-- | An opaque string that represents where to continue pagination of the
--   vault inventory retrieval results. You use the marker in a new
--   <b>InitiateJob</b> request to obtain additional inventory items. If
--   there are no more inventory items, this value is <tt>null</tt> .
irjiMarker :: Lens' InventoryRetrievalJobInput (Maybe Text)

-- | Specifies the maximum number of inventory items returned per vault
--   inventory retrieval request. Valid values are greater than or equal to
--   1.
irjiLimit :: Lens' InventoryRetrievalJobInput (Maybe Text)

-- | Provides options for defining a job.
--   
--   <i>See:</i> <a>jobParameters</a> smart constructor.
data JobParameters

-- | Creates a value of <a>JobParameters</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>jpArchiveId</a> - The ID of the archive that you want to
--   retrieve. This field is required only if <tt>Type</tt> is set to
--   <tt>select</tt> or <tt>archive-retrieval</tt> code&gt;. An error
--   occurs if you specify this request parameter for an inventory
--   retrieval job request.</li>
--   <li><a>jpSelectParameters</a> - Contains the parameters that define a
--   job.</li>
--   <li><a>jpFormat</a> - When initiating a job to retrieve a vault
--   inventory, you can optionally add this parameter to your request to
--   specify the output format. If you are initiating an inventory job and
--   do not specify a Format field, JSON is the default format. Valid
--   values are <a>CSV</a> and <a>JSON</a>.</li>
--   <li><a>jpRetrievalByteRange</a> - The byte range to retrieve for an
--   archive retrieval. in the form "<i>StartByteValue</i>
--   -<i>EndByteValue</i> " If not specified, the whole archive is
--   retrieved. If specified, the byte range must be megabyte (1024*1024)
--   aligned which means that <i>StartByteValue</i> must be divisible by 1
--   MB and <i>EndByteValue</i> plus 1 must be divisible by 1 MB or be the
--   end of the archive specified as the archive byte size value minus 1.
--   If RetrievalByteRange is not megabyte aligned, this operation returns
--   a 400 response. An error occurs if you specify this field for an
--   inventory retrieval job request.</li>
--   <li><a>jpInventoryRetrievalParameters</a> - Input parameters used for
--   range inventory retrieval.</li>
--   <li><a>jpSNSTopic</a> - The Amazon SNS topic ARN to which Amazon
--   Glacier sends a notification when the job is completed and the output
--   is ready for you to download. The specified topic publishes the
--   notification to its subscribers. The SNS topic must exist.</li>
--   <li><a>jpOutputLocation</a> - Contains information about the location
--   where the select job results are stored.</li>
--   <li><a>jpTier</a> - The tier to use for a select or an archive
--   retrieval job. Valid values are <tt>Expedited</tt> , <tt>Standard</tt>
--   , or <tt>Bulk</tt> . <tt>Standard</tt> is the default.</li>
--   <li><a>jpType</a> - The job type. You can initiate a job to perform a
--   select query on an archive, retrieve an archive, or get an inventory
--   of a vault. Valid values are "select", "archive-retrieval" and
--   "inventory-retrieval".</li>
--   <li><a>jpDescription</a> - The optional description for the job. The
--   description must be less than or equal to 1,024 bytes. The allowable
--   characters are 7-bit ASCII without control codes-specifically, ASCII
--   values 32-126 decimal or 0x20-0x7E hexadecimal.</li>
--   </ul>
jobParameters :: JobParameters

-- | The ID of the archive that you want to retrieve. This field is
--   required only if <tt>Type</tt> is set to <tt>select</tt> or
--   <tt>archive-retrieval</tt> code&gt;. An error occurs if you specify
--   this request parameter for an inventory retrieval job request.
jpArchiveId :: Lens' JobParameters (Maybe Text)

-- | Contains the parameters that define a job.
jpSelectParameters :: Lens' JobParameters (Maybe SelectParameters)

-- | When initiating a job to retrieve a vault inventory, you can
--   optionally add this parameter to your request to specify the output
--   format. If you are initiating an inventory job and do not specify a
--   Format field, JSON is the default format. Valid values are <a>CSV</a>
--   and <a>JSON</a>.
jpFormat :: Lens' JobParameters (Maybe Text)

-- | The byte range to retrieve for an archive retrieval. in the form
--   "<i>StartByteValue</i> -<i>EndByteValue</i> " If not specified, the
--   whole archive is retrieved. If specified, the byte range must be
--   megabyte (1024*1024) aligned which means that <i>StartByteValue</i>
--   must be divisible by 1 MB and <i>EndByteValue</i> plus 1 must be
--   divisible by 1 MB or be the end of the archive specified as the
--   archive byte size value minus 1. If RetrievalByteRange is not megabyte
--   aligned, this operation returns a 400 response. An error occurs if you
--   specify this field for an inventory retrieval job request.
jpRetrievalByteRange :: Lens' JobParameters (Maybe Text)

-- | Input parameters used for range inventory retrieval.
jpInventoryRetrievalParameters :: Lens' JobParameters (Maybe InventoryRetrievalJobInput)

-- | The Amazon SNS topic ARN to which Amazon Glacier sends a notification
--   when the job is completed and the output is ready for you to download.
--   The specified topic publishes the notification to its subscribers. The
--   SNS topic must exist.
jpSNSTopic :: Lens' JobParameters (Maybe Text)

-- | Contains information about the location where the select job results
--   are stored.
jpOutputLocation :: Lens' JobParameters (Maybe OutputLocation)

-- | The tier to use for a select or an archive retrieval job. Valid values
--   are <tt>Expedited</tt> , <tt>Standard</tt> , or <tt>Bulk</tt> .
--   <tt>Standard</tt> is the default.
jpTier :: Lens' JobParameters (Maybe Text)

-- | The job type. You can initiate a job to perform a select query on an
--   archive, retrieve an archive, or get an inventory of a vault. Valid
--   values are "select", "archive-retrieval" and "inventory-retrieval".
jpType :: Lens' JobParameters (Maybe Text)

-- | The optional description for the job. The description must be less
--   than or equal to 1,024 bytes. The allowable characters are 7-bit ASCII
--   without control codes-specifically, ASCII values 32-126 decimal or
--   0x20-0x7E hexadecimal.
jpDescription :: Lens' JobParameters (Maybe Text)

-- | Contains information about the location where the select job results
--   are stored.
--   
--   <i>See:</i> <a>outputLocation</a> smart constructor.
data OutputLocation

-- | Creates a value of <a>OutputLocation</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>olS3</a> - Describes an S3 location that will receive the
--   results of the job request.</li>
--   </ul>
outputLocation :: OutputLocation

-- | Describes an S3 location that will receive the results of the job
--   request.
olS3 :: Lens' OutputLocation (Maybe S3Location)

-- | Describes how the select output is serialized.
--   
--   <i>See:</i> <a>outputSerialization</a> smart constructor.
data OutputSerialization

-- | Creates a value of <a>OutputSerialization</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>osCsv</a> - Describes the serialization of CSV-encoded query
--   results.</li>
--   </ul>
outputSerialization :: OutputSerialization

-- | Describes the serialization of CSV-encoded query results.
osCsv :: Lens' OutputSerialization (Maybe CSVOutput)

-- | A list of the part sizes of the multipart upload.
--   
--   <i>See:</i> <a>partListElement</a> smart constructor.
data PartListElement

-- | Creates a value of <a>PartListElement</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>pleSHA256TreeHash</a> - The SHA256 tree hash value that Amazon
--   Glacier calculated for the part. This field is never <tt>null</tt>
--   .</li>
--   <li><a>pleRangeInBytes</a> - The byte range of a part, inclusive of
--   the upper value of the range.</li>
--   </ul>
partListElement :: PartListElement

-- | The SHA256 tree hash value that Amazon Glacier calculated for the
--   part. This field is never <tt>null</tt> .
pleSHA256TreeHash :: Lens' PartListElement (Maybe Text)

-- | The byte range of a part, inclusive of the upper value of the range.
pleRangeInBytes :: Lens' PartListElement (Maybe Text)

-- | The definition for a provisioned capacity unit.
--   
--   <i>See:</i> <a>provisionedCapacityDescription</a> smart constructor.
data ProvisionedCapacityDescription

-- | Creates a value of <a>ProvisionedCapacityDescription</a> with the
--   minimum fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>pcdCapacityId</a> - The ID that identifies the provisioned
--   capacity unit.</li>
--   <li><a>pcdStartDate</a> - The date that the provisioned capacity unit
--   was purchased, in Universal Coordinated Time (UTC).</li>
--   <li><a>pcdExpirationDate</a> - The date that the provisioned capacity
--   unit expires, in Universal Coordinated Time (UTC).</li>
--   </ul>
provisionedCapacityDescription :: ProvisionedCapacityDescription

-- | The ID that identifies the provisioned capacity unit.
pcdCapacityId :: Lens' ProvisionedCapacityDescription (Maybe Text)

-- | The date that the provisioned capacity unit was purchased, in
--   Universal Coordinated Time (UTC).
pcdStartDate :: Lens' ProvisionedCapacityDescription (Maybe Text)

-- | The date that the provisioned capacity unit expires, in Universal
--   Coordinated Time (UTC).
pcdExpirationDate :: Lens' ProvisionedCapacityDescription (Maybe Text)

-- | Contains information about the location in Amazon S3 where the select
--   job results are stored.
--   
--   <i>See:</i> <a>s3Location</a> smart constructor.
data S3Location

-- | Creates a value of <a>S3Location</a> with the minimum fields required
--   to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>slCannedACL</a> - The canned access control list (ACL) to apply
--   to the job results.</li>
--   <li><a>slPrefix</a> - The prefix that is prepended to the results for
--   this request.</li>
--   <li><a>slBucketName</a> - The name of the Amazon S3 bucket where the
--   job results are stored.</li>
--   <li><a>slAccessControlList</a> - A list of grants that control access
--   to the staged results.</li>
--   <li><a>slUserMetadata</a> - A map of metadata to store with the job
--   results in Amazon S3.</li>
--   <li><a>slEncryption</a> - Contains information about the encryption
--   used to store the job results in Amazon S3.</li>
--   <li><a>slStorageClass</a> - The storage class used to store the job
--   results.</li>
--   <li><a>slTagging</a> - The tag-set that is applied to the job
--   results.</li>
--   </ul>
s3Location :: S3Location

-- | The canned access control list (ACL) to apply to the job results.
slCannedACL :: Lens' S3Location (Maybe CannedACL)

-- | The prefix that is prepended to the results for this request.
slPrefix :: Lens' S3Location (Maybe Text)

-- | The name of the Amazon S3 bucket where the job results are stored.
slBucketName :: Lens' S3Location (Maybe Text)

-- | A list of grants that control access to the staged results.
slAccessControlList :: Lens' S3Location [Grant]

-- | A map of metadata to store with the job results in Amazon S3.
slUserMetadata :: Lens' S3Location (HashMap Text Text)

-- | Contains information about the encryption used to store the job
--   results in Amazon S3.
slEncryption :: Lens' S3Location (Maybe Encryption)

-- | The storage class used to store the job results.
slStorageClass :: Lens' S3Location (Maybe StorageClass)

-- | The tag-set that is applied to the job results.
slTagging :: Lens' S3Location (HashMap Text Text)

-- | Contains information about the parameters used for a select.
--   
--   <i>See:</i> <a>selectParameters</a> smart constructor.
data SelectParameters

-- | Creates a value of <a>SelectParameters</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>spExpressionType</a> - The type of the provided expression, for
--   example <tt>SQL</tt> .</li>
--   <li><a>spOutputSerialization</a> - Describes how the results of the
--   select job are serialized.</li>
--   <li><a>spExpression</a> - The expression that is used to select the
--   object.</li>
--   <li><a>spInputSerialization</a> - Describes the serialization format
--   of the object.</li>
--   </ul>
selectParameters :: SelectParameters

-- | The type of the provided expression, for example <tt>SQL</tt> .
spExpressionType :: Lens' SelectParameters (Maybe ExpressionType)

-- | Describes how the results of the select job are serialized.
spOutputSerialization :: Lens' SelectParameters (Maybe OutputSerialization)

-- | The expression that is used to select the object.
spExpression :: Lens' SelectParameters (Maybe Text)

-- | Describes the serialization format of the object.
spInputSerialization :: Lens' SelectParameters (Maybe InputSerialization)

-- | A list of in-progress multipart uploads for a vault.
--   
--   <i>See:</i> <a>uploadListElement</a> smart constructor.
data UploadListElement

-- | Creates a value of <a>UploadListElement</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>uleMultipartUploadId</a> - The ID of a multipart upload.</li>
--   <li><a>ulePartSizeInBytes</a> - The part size, in bytes, specified in
--   the Initiate Multipart Upload request. This is the size of all the
--   parts in the upload except the last part, which may be smaller than
--   this size.</li>
--   <li><a>uleArchiveDescription</a> - The description of the archive that
--   was specified in the Initiate Multipart Upload request.</li>
--   <li><a>uleVaultARN</a> - The Amazon Resource Name (ARN) of the vault
--   that contains the archive.</li>
--   <li><a>uleCreationDate</a> - The UTC time at which the multipart
--   upload was initiated.</li>
--   </ul>
uploadListElement :: UploadListElement

-- | The ID of a multipart upload.
uleMultipartUploadId :: Lens' UploadListElement (Maybe Text)

-- | The part size, in bytes, specified in the Initiate Multipart Upload
--   request. This is the size of all the parts in the upload except the
--   last part, which may be smaller than this size.
ulePartSizeInBytes :: Lens' UploadListElement (Maybe Integer)

-- | The description of the archive that was specified in the Initiate
--   Multipart Upload request.
uleArchiveDescription :: Lens' UploadListElement (Maybe Text)

-- | The Amazon Resource Name (ARN) of the vault that contains the archive.
uleVaultARN :: Lens' UploadListElement (Maybe Text)

-- | The UTC time at which the multipart upload was initiated.
uleCreationDate :: Lens' UploadListElement (Maybe Text)

-- | Contains the vault access policy.
--   
--   <i>See:</i> <a>vaultAccessPolicy</a> smart constructor.
data VaultAccessPolicy

-- | Creates a value of <a>VaultAccessPolicy</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>vapPolicy</a> - The vault access policy.</li>
--   </ul>
vaultAccessPolicy :: VaultAccessPolicy

-- | The vault access policy.
vapPolicy :: Lens' VaultAccessPolicy (Maybe Text)

-- | Contains the vault lock policy.
--   
--   <i>See:</i> <a>vaultLockPolicy</a> smart constructor.
data VaultLockPolicy

-- | Creates a value of <a>VaultLockPolicy</a> with the minimum fields
--   required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>vlpPolicy</a> - The vault lock policy.</li>
--   </ul>
vaultLockPolicy :: VaultLockPolicy

-- | The vault lock policy.
vlpPolicy :: Lens' VaultLockPolicy (Maybe Text)

-- | Represents a vault's notification configuration.
--   
--   <i>See:</i> <a>vaultNotificationConfig</a> smart constructor.
data VaultNotificationConfig

-- | Creates a value of <a>VaultNotificationConfig</a> with the minimum
--   fields required to make a request.
--   
--   Use one of the following lenses to modify other fields as desired:
--   
--   <ul>
--   <li><a>vncSNSTopic</a> - The Amazon Simple Notification Service
--   (Amazon SNS) topic Amazon Resource Name (ARN).</li>
--   <li><a>vncEvents</a> - A list of one or more events for which Amazon
--   Glacier will send a notification to the specified Amazon SNS
--   topic.</li>
--   </ul>
vaultNotificationConfig :: VaultNotificationConfig

-- | The Amazon Simple Notification Service (Amazon SNS) topic Amazon
--   Resource Name (ARN).
vncSNSTopic :: Lens' VaultNotificationConfig (Maybe Text)

-- | A list of one or more events for which Amazon Glacier will send a
--   notification to the specified Amazon SNS topic.
vncEvents :: Lens' VaultNotificationConfig [Text]
