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


-- | Amazon DynamoDB 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.DynamoDB</a> or <a>the AWS documentation</a> to get
--   started.
@package amazonka-dynamodb
@version 1.6.0


module Network.AWS.DynamoDB.Types

-- | API version <tt>2012-08-10</tt> of the Amazon DynamoDB SDK
--   configuration.
dynamoDB :: Service

-- | Backup not found for the given BackupARN.
_BackupNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | A target table with the specified name is either being created or
--   deleted.
_TableInUseException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Backups have not yet been enabled for this table.
_ContinuousBackupsUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Your request rate is too high. The AWS SDKs for DynamoDB automatically
--   retry requests that receive this exception. Your request is eventually
--   successful, unless your retry queue is too large to finish. Reduce the
--   frequency of requests and use exponential backoff. For more
--   information, go to <a>Error Retries and Exponential Backoff</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
_ProvisionedThroughputExceededException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified global table does not exist.
_GlobalTableNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | A condition specified in the operation could not be evaluated.
_ConditionalCheckFailedException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified global table already exists.
_GlobalTableAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified replica is no longer part of the global table.
_ReplicaNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | A target table with the specified name already exists.
_TableAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError

-- | An item collection is too large. This exception is only returned for
--   tables that have one or more local secondary indexes.
_ItemCollectionSizeLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError

-- | An error occurred on the server side.
_InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError

-- | A source table with the name <tt>TableName</tt> does not currently
--   exist within the subscriber's account.
_TableNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The operation tried to access a nonexistent index.
_IndexNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | There is another ongoing conflicting backup control plane operation on
--   the table. The backups is either being created, deleted or restored to
--   a table.
_BackupInUseException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Point in time recovery has not yet been enabled for this source table.
_PointInTimeRecoveryUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError

-- | An invalid restore time was specified. RestoreDateTime must be between
--   EarliestRestorableDateTime and LatestRestorableDateTime.
_InvalidRestoreTimeException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The operation tried to access a nonexistent table or index. The
--   resource might not be specified correctly, or its status might not be
--   <tt>ACTIVE</tt> .
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified replica is already part of the global table.
_ReplicaAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Up to 50 <tt>CreateBackup</tt> operations are allowed per second, per
--   account. There is no limit to the number of daily on-demand backups
--   that can be taken.
--   
--   Up to 10 simultaneous table operations are allowed per account. These
--   operations include <tt>CreateTable</tt> , <tt>UpdateTable</tt> ,
--   <tt>DeleteTable</tt> ,<tt>UpdateTimeToLive</tt> ,
--   <tt>RestoreTableFromBackup</tt> , and
--   <tt>RestoreTableToPointInTime</tt> .
--   
--   For tables with secondary indexes, only one of those tables can be in
--   the <tt>CREATING</tt> state at any point in time. Do not attempt to
--   create more than one such table simultaneously.
--   
--   The total limit of tables in the <tt>ACTIVE</tt> state is 250.
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The operation conflicts with the resource's availability. For example,
--   you attempted to recreate an existing table, or tried to delete a
--   table currently in the <tt>CREATING</tt> state.
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
data AttributeAction
Add :: AttributeAction
Delete :: AttributeAction
Put :: AttributeAction
data BackupStatus
Available :: BackupStatus
Creating :: BackupStatus
Deleted :: BackupStatus
data ComparisonOperator
BeginsWith :: ComparisonOperator
Between :: ComparisonOperator
Contains :: ComparisonOperator
EQ' :: ComparisonOperator
GE :: ComparisonOperator
GT' :: ComparisonOperator
IN :: ComparisonOperator
LE :: ComparisonOperator
LT' :: ComparisonOperator
NE :: ComparisonOperator
NotContains :: ComparisonOperator
NotNull :: ComparisonOperator
Null :: ComparisonOperator
data ConditionalOperator
And :: ConditionalOperator
OR :: ConditionalOperator
data ContinuousBackupsStatus
CBSDisabled :: ContinuousBackupsStatus
CBSEnabled :: ContinuousBackupsStatus
data GlobalTableStatus
GTSActive :: GlobalTableStatus
GTSCreating :: GlobalTableStatus
GTSDeleting :: GlobalTableStatus
GTSUpdating :: GlobalTableStatus
data IndexStatus
ISActive :: IndexStatus
ISCreating :: IndexStatus
ISDeleting :: IndexStatus
ISUpdating :: IndexStatus
data KeyType
Hash :: KeyType
Range :: KeyType
data PointInTimeRecoveryStatus
PITRSDisabled :: PointInTimeRecoveryStatus
PITRSEnabled :: PointInTimeRecoveryStatus
data ProjectionType
PTAll :: ProjectionType
PTInclude :: ProjectionType
PTKeysOnly :: ProjectionType
data ReplicaStatus
RSActive :: ReplicaStatus
RSCreating :: ReplicaStatus
RSDeleting :: ReplicaStatus
RSUpdating :: ReplicaStatus

-- | Determines the level of detail about provisioned throughput
--   consumption that is returned in the response:
--   
--   <ul>
--   <li><tt>INDEXES</tt> - The response includes the aggregate
--   <tt>ConsumedCapacity</tt> for the operation, together with
--   <tt>ConsumedCapacity</tt> for each table and secondary index that was
--   accessed.</li>
--   </ul>
--   
--   Note that some operations, such as <tt>GetItem</tt> and
--   <tt>BatchGetItem</tt> , do not access any indexes at all. In these
--   cases, specifying <tt>INDEXES</tt> will only return
--   <tt>ConsumedCapacity</tt> information for table(s).
--   
--   <ul>
--   <li><tt>TOTAL</tt> - The response includes only the aggregate
--   <tt>ConsumedCapacity</tt> for the operation.</li>
--   <li><tt>NONE</tt> - No <tt>ConsumedCapacity</tt> details are included
--   in the response.</li>
--   </ul>
data ReturnConsumedCapacity
RCCIndexes :: ReturnConsumedCapacity
RCCNone :: ReturnConsumedCapacity
RCCTotal :: ReturnConsumedCapacity
data ReturnItemCollectionMetrics
RICMNone :: ReturnItemCollectionMetrics
RICMSize :: ReturnItemCollectionMetrics
data ReturnValue
AllNew :: ReturnValue
AllOld :: ReturnValue
None :: ReturnValue
UpdatedNew :: ReturnValue
UpdatedOld :: ReturnValue
data SSEStatus
SSESDisabled :: SSEStatus
SSESDisabling :: SSEStatus
SSESEnabled :: SSEStatus
SSESEnabling :: SSEStatus
data ScalarAttributeType
B :: ScalarAttributeType
N :: ScalarAttributeType
S :: ScalarAttributeType
data Select
AllAttributes :: Select
AllProjectedAttributes :: Select
Count :: Select
SpecificAttributes :: Select
data StreamViewType
KeysOnly :: StreamViewType
NewAndOldImages :: StreamViewType
NewImage :: StreamViewType
OldImage :: StreamViewType
data TableStatus
TSActive :: TableStatus
TSCreating :: TableStatus
TSDeleting :: TableStatus
TSUpdating :: TableStatus
data TimeToLiveStatus
Disabled :: TimeToLiveStatus
Disabling :: TimeToLiveStatus
Enabled :: TimeToLiveStatus
Enabling :: TimeToLiveStatus

-- | Represents an attribute for describing the key schema for the table
--   and indexes.
--   
--   <i>See:</i> <a>attributeDefinition</a> smart constructor.
data AttributeDefinition

-- | Creates a value of <a>AttributeDefinition</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>adAttributeName</a> - A name for the attribute.</li>
--   <li><a>adAttributeType</a> - The data type for the attribute, where: *
--   <tt>S</tt> - the attribute is of type String * <tt>N</tt> - the
--   attribute is of type Number * <tt>B</tt> - the attribute is of type
--   Binary</li>
--   </ul>
attributeDefinition :: Text -> ScalarAttributeType -> AttributeDefinition

-- | A name for the attribute.
adAttributeName :: Lens' AttributeDefinition Text

-- | The data type for the attribute, where: * <tt>S</tt> - the attribute
--   is of type String * <tt>N</tt> - the attribute is of type Number *
--   <tt>B</tt> - the attribute is of type Binary
adAttributeType :: Lens' AttributeDefinition ScalarAttributeType

-- | Represents the data for an attribute.
--   
--   Each attribute value is described as a name-value pair. The name is
--   the data type, and the value is the data itself.
--   
--   For more information, see <a>Data Types</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
--   
--   <i>See:</i> <a>attributeValue</a> smart constructor.
data AttributeValue

-- | Creates a value of <a>AttributeValue</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>avL</a> - An attribute of type List. For example: <tt><a>L</a>:
--   [<a>Cookies</a>, <a>Coffee</a>, 3.14159]</tt></li>
--   <li><a>avNS</a> - An attribute of type Number Set. For example:
--   <tt><a>NS</a>: ["42.2", "-19", "7.5", "3.14"]</tt> Numbers are sent
--   across the network to DynamoDB as strings, to maximize compatibility
--   across languages and libraries. However, DynamoDB treats them as
--   number type attributes for mathematical operations.</li>
--   <li><a>avM</a> - An attribute of type Map. For example: <tt><a>M</a>:
--   {<a>Name</a>: {<a>S</a>: <a>Joe</a>}, <a>Age</a>: {<a>N</a>:
--   "35"}}</tt></li>
--   <li><a>avNULL</a> - An attribute of type Null. For example:
--   <tt><a>NULL</a>: true</tt></li>
--   <li><a>avN</a> - An attribute of type Number. For example:
--   <tt><a>N</a>: "123.45"</tt> Numbers are sent across the network to
--   DynamoDB as strings, to maximize compatibility across languages and
--   libraries. However, DynamoDB treats them as number type attributes for
--   mathematical operations.</li>
--   <li><a>avBS</a> - An attribute of type Binary Set. For example:
--   <tt><a>BS</a>: ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]</tt></li>
--   <li><a>avB</a> - An attribute of type Binary. For example:
--   <tt><a>B</a>: "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"</tt> --
--   <i>Note:</i> This <tt>Lens</tt> automatically encodes and decodes
--   Base64 data. The underlying isomorphism will encode to Base64
--   representation during serialisation, and decode from Base64
--   representation during deserialisation. This <tt>Lens</tt> accepts and
--   returns only raw unencoded data.</li>
--   <li><a>avSS</a> - An attribute of type String Set. For example:
--   <tt><a>SS</a>: [<a>Giraffe</a>, <a>Hippo</a> ,<a>Zebra</a>]</tt></li>
--   <li><a>avS</a> - An attribute of type String. For example:
--   <tt><a>S</a>: <a>Hello</a></tt></li>
--   <li><a>avBOOL</a> - An attribute of type Boolean. For example:
--   <tt><a>BOOL</a>: true</tt></li>
--   </ul>
attributeValue :: AttributeValue

-- | An attribute of type List. For example: <tt><a>L</a>: [<a>Cookies</a>,
--   <a>Coffee</a>, 3.14159]</tt>
avL :: Lens' AttributeValue [AttributeValue]

-- | An attribute of type Number Set. For example: <tt><a>NS</a>: ["42.2",
--   "-19", "7.5", "3.14"]</tt> Numbers are sent across the network to
--   DynamoDB as strings, to maximize compatibility across languages and
--   libraries. However, DynamoDB treats them as number type attributes for
--   mathematical operations.
avNS :: Lens' AttributeValue [Text]

-- | An attribute of type Map. For example: <tt><a>M</a>: {<a>Name</a>:
--   {<a>S</a>: <a>Joe</a>}, <a>Age</a>: {<a>N</a>: "35"}}</tt>
avM :: Lens' AttributeValue (HashMap Text AttributeValue)

-- | An attribute of type Null. For example: <tt><a>NULL</a>: true</tt>
avNULL :: Lens' AttributeValue (Maybe Bool)

-- | An attribute of type Number. For example: <tt><a>N</a>: "123.45"</tt>
--   Numbers are sent across the network to DynamoDB as strings, to
--   maximize compatibility across languages and libraries. However,
--   DynamoDB treats them as number type attributes for mathematical
--   operations.
avN :: Lens' AttributeValue (Maybe Text)

-- | An attribute of type Binary Set. For example: <tt><a>BS</a>:
--   ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]</tt>
avBS :: Lens' AttributeValue [ByteString]

-- | An attribute of type Binary. For example: <tt><a>B</a>:
--   "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"</tt> -- <i>Note:</i> This
--   <tt>Lens</tt> automatically encodes and decodes Base64 data. The
--   underlying isomorphism will encode to Base64 representation during
--   serialisation, and decode from Base64 representation during
--   deserialisation. This <tt>Lens</tt> accepts and returns only raw
--   unencoded data.
avB :: Lens' AttributeValue (Maybe ByteString)

-- | An attribute of type String Set. For example: <tt><a>SS</a>:
--   [<a>Giraffe</a>, <a>Hippo</a> ,<a>Zebra</a>]</tt>
avSS :: Lens' AttributeValue [Text]

-- | An attribute of type String. For example: <tt><a>S</a>:
--   <a>Hello</a></tt>
avS :: Lens' AttributeValue (Maybe Text)

-- | An attribute of type Boolean. For example: <tt><a>BOOL</a>: true</tt>
avBOOL :: Lens' AttributeValue (Maybe Bool)

-- | For the <tt>UpdateItem</tt> operation, represents the attributes to be
--   modified, the action to perform on each, and the new value for each.
--   
--   Attribute values cannot be null; string and binary type attributes
--   must have lengths greater than zero; and set type attributes must not
--   be empty. Requests with empty values will be rejected with a
--   <tt>ValidationException</tt> exception.
--   
--   <i>See:</i> <a>attributeValueUpdate</a> smart constructor.
data AttributeValueUpdate

-- | Creates a value of <a>AttributeValueUpdate</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>avuValue</a> - Represents the data for an attribute. Each
--   attribute value is described as a name-value pair. The name is the
--   data type, and the value is the data itself. For more information, see
--   <a>Data Types</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>avuAction</a> - Specifies how to perform the update. Valid
--   values are <tt>PUT</tt> (default), <tt>DELETE</tt> , and <tt>ADD</tt>
--   . The behavior depends on whether the specified primary key already
--   exists in the table. <b>If an item with the specified <i>Key</i> is
--   found in the table:</b> * <tt>PUT</tt> - Adds the specified attribute
--   to the item. If the attribute already exists, it is replaced by the
--   new value. * <tt>DELETE</tt> - If no value is specified, the attribute
--   and its value are removed from the item. The data type of the
--   specified value must match the existing value's data type. If a
--   <i>set</i> of values is specified, then those values are subtracted
--   from the old set. For example, if the attribute value was the set
--   <tt>[a,b,c]</tt> and the <tt>DELETE</tt> action specified
--   <tt>[a,c]</tt> , then the final attribute value would be <tt>[b]</tt>
--   . Specifying an empty set is an error. * <tt>ADD</tt> - If the
--   attribute does not already exist, then the attribute and its values
--   are added to the item. If the attribute does exist, then the behavior
--   of <tt>ADD</tt> depends on the data type of the attribute: * If the
--   existing attribute is a number, and if <tt>Value</tt> is also a
--   number, then the <tt>Value</tt> is mathematically added to the
--   existing attribute. If <tt>Value</tt> is a negative number, then it is
--   subtracted from the existing attribute. * If the existing data type is
--   a set, and if the <tt>Value</tt> is also a set, then the
--   <tt>Value</tt> is added to the existing set. (This is a <i>set</i>
--   operation, not mathematical addition.) For example, if the attribute
--   value was the set <tt>[1,2]</tt> , and the <tt>ADD</tt> action
--   specified <tt>[3]</tt> , then the final attribute value would be
--   <tt>[1,2,3]</tt> . An error occurs if an Add action is specified for a
--   set attribute and the attribute type specified does not match the
--   existing set type. Both sets must have the same primitive data type.
--   For example, if the existing data type is a set of strings, the
--   <tt>Value</tt> must also be a set of strings. The same holds true for
--   number sets and binary sets. This action is only valid for an existing
--   attribute whose data type is number or is a set. Do not use
--   <tt>ADD</tt> for any other data types. <b>If no item with the
--   specified <i>Key</i> is found:</b> * <tt>PUT</tt> - DynamoDB creates a
--   new item with the specified primary key, and then adds the attribute.
--   * <tt>DELETE</tt> - Nothing happens; there is no attribute to delete.
--   * <tt>ADD</tt> - DynamoDB creates an item with the supplied primary
--   key and number (or set of numbers) for the attribute value. The only
--   data types allowed are number and number set; no other data types can
--   be specified.</li>
--   </ul>
attributeValueUpdate :: AttributeValueUpdate

-- | Represents the data for an attribute. Each attribute value is
--   described as a name-value pair. The name is the data type, and the
--   value is the data itself. For more information, see <a>Data Types</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
avuValue :: Lens' AttributeValueUpdate (Maybe AttributeValue)

-- | Specifies how to perform the update. Valid values are <tt>PUT</tt>
--   (default), <tt>DELETE</tt> , and <tt>ADD</tt> . The behavior depends
--   on whether the specified primary key already exists in the table.
--   <b>If an item with the specified <i>Key</i> is found in the table:</b>
--   * <tt>PUT</tt> - Adds the specified attribute to the item. If the
--   attribute already exists, it is replaced by the new value. *
--   <tt>DELETE</tt> - If no value is specified, the attribute and its
--   value are removed from the item. The data type of the specified value
--   must match the existing value's data type. If a <i>set</i> of values
--   is specified, then those values are subtracted from the old set. For
--   example, if the attribute value was the set <tt>[a,b,c]</tt> and the
--   <tt>DELETE</tt> action specified <tt>[a,c]</tt> , then the final
--   attribute value would be <tt>[b]</tt> . Specifying an empty set is an
--   error. * <tt>ADD</tt> - If the attribute does not already exist, then
--   the attribute and its values are added to the item. If the attribute
--   does exist, then the behavior of <tt>ADD</tt> depends on the data type
--   of the attribute: * If the existing attribute is a number, and if
--   <tt>Value</tt> is also a number, then the <tt>Value</tt> is
--   mathematically added to the existing attribute. If <tt>Value</tt> is a
--   negative number, then it is subtracted from the existing attribute. *
--   If the existing data type is a set, and if the <tt>Value</tt> is also
--   a set, then the <tt>Value</tt> is added to the existing set. (This is
--   a <i>set</i> operation, not mathematical addition.) For example, if
--   the attribute value was the set <tt>[1,2]</tt> , and the <tt>ADD</tt>
--   action specified <tt>[3]</tt> , then the final attribute value would
--   be <tt>[1,2,3]</tt> . An error occurs if an Add action is specified
--   for a set attribute and the attribute type specified does not match
--   the existing set type. Both sets must have the same primitive data
--   type. For example, if the existing data type is a set of strings, the
--   <tt>Value</tt> must also be a set of strings. The same holds true for
--   number sets and binary sets. This action is only valid for an existing
--   attribute whose data type is number or is a set. Do not use
--   <tt>ADD</tt> for any other data types. <b>If no item with the
--   specified <i>Key</i> is found:</b> * <tt>PUT</tt> - DynamoDB creates a
--   new item with the specified primary key, and then adds the attribute.
--   * <tt>DELETE</tt> - Nothing happens; there is no attribute to delete.
--   * <tt>ADD</tt> - DynamoDB creates an item with the supplied primary
--   key and number (or set of numbers) for the attribute value. The only
--   data types allowed are number and number set; no other data types can
--   be specified.
avuAction :: Lens' AttributeValueUpdate (Maybe AttributeAction)

-- | Contains the description of the backup created for the table.
--   
--   <i>See:</i> <a>backupDescription</a> smart constructor.
data BackupDescription

-- | Creates a value of <a>BackupDescription</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>bdBackupDetails</a> - Contains the details of the backup
--   created for the table.</li>
--   <li><a>bdSourceTableDetails</a> - Contains the details of the table
--   when the backup was created.</li>
--   <li><a>bdSourceTableFeatureDetails</a> - Contains the details of the
--   features enabled on the table when the backup was created. For
--   example, LSIs, GSIs, streams, TTL.</li>
--   </ul>
backupDescription :: BackupDescription

-- | Contains the details of the backup created for the table.
bdBackupDetails :: Lens' BackupDescription (Maybe BackupDetails)

-- | Contains the details of the table when the backup was created.
bdSourceTableDetails :: Lens' BackupDescription (Maybe SourceTableDetails)

-- | Contains the details of the features enabled on the table when the
--   backup was created. For example, LSIs, GSIs, streams, TTL.
bdSourceTableFeatureDetails :: Lens' BackupDescription (Maybe SourceTableFeatureDetails)

-- | Contains the details of the backup created for the table.
--   
--   <i>See:</i> <a>backupDetails</a> smart constructor.
data BackupDetails

-- | Creates a value of <a>BackupDetails</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>bdBackupSizeBytes</a> - Size of the backup in bytes.</li>
--   <li><a>bdBackupARN</a> - ARN associated with the backup.</li>
--   <li><a>bdBackupName</a> - Name of the requested backup.</li>
--   <li><a>bdBackupStatus</a> - Backup can be in one of the following
--   states: CREATING, ACTIVE, DELETED.</li>
--   <li><a>bdBackupCreationDateTime</a> - Time at which the backup was
--   created. This is the request time of the backup.</li>
--   </ul>
backupDetails :: Text -> Text -> BackupStatus -> UTCTime -> BackupDetails

-- | Size of the backup in bytes.
bdBackupSizeBytes :: Lens' BackupDetails (Maybe Natural)

-- | ARN associated with the backup.
bdBackupARN :: Lens' BackupDetails Text

-- | Name of the requested backup.
bdBackupName :: Lens' BackupDetails Text

-- | Backup can be in one of the following states: CREATING, ACTIVE,
--   DELETED.
bdBackupStatus :: Lens' BackupDetails BackupStatus

-- | Time at which the backup was created. This is the request time of the
--   backup.
bdBackupCreationDateTime :: Lens' BackupDetails UTCTime

-- | Contains details for the backup.
--   
--   <i>See:</i> <a>backupSummary</a> smart constructor.
data BackupSummary

-- | Creates a value of <a>BackupSummary</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>bsTableARN</a> - ARN associated with the table.</li>
--   <li><a>bsBackupName</a> - Name of the specified backup.</li>
--   <li><a>bsBackupStatus</a> - Backup can be in one of the following
--   states: CREATING, ACTIVE, DELETED.</li>
--   <li><a>bsBackupSizeBytes</a> - Size of the backup in bytes.</li>
--   <li><a>bsBackupARN</a> - ARN associated with the backup.</li>
--   <li><a>bsTableId</a> - Unique identifier for the table.</li>
--   <li><a>bsBackupCreationDateTime</a> - Time at which the backup was
--   created.</li>
--   <li><a>bsTableName</a> - Name of the table.</li>
--   </ul>
backupSummary :: BackupSummary

-- | ARN associated with the table.
bsTableARN :: Lens' BackupSummary (Maybe Text)

-- | Name of the specified backup.
bsBackupName :: Lens' BackupSummary (Maybe Text)

-- | Backup can be in one of the following states: CREATING, ACTIVE,
--   DELETED.
bsBackupStatus :: Lens' BackupSummary (Maybe BackupStatus)

-- | Size of the backup in bytes.
bsBackupSizeBytes :: Lens' BackupSummary (Maybe Natural)

-- | ARN associated with the backup.
bsBackupARN :: Lens' BackupSummary (Maybe Text)

-- | Unique identifier for the table.
bsTableId :: Lens' BackupSummary (Maybe Text)

-- | Time at which the backup was created.
bsBackupCreationDateTime :: Lens' BackupSummary (Maybe UTCTime)

-- | Name of the table.
bsTableName :: Lens' BackupSummary (Maybe Text)

-- | Represents the amount of provisioned throughput capacity consumed on a
--   table or an index.
--   
--   <i>See:</i> <a>capacity</a> smart constructor.
data Capacity

-- | Creates a value of <a>Capacity</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>cCapacityUnits</a> - The total number of capacity units
--   consumed on a table or an index.</li>
--   </ul>
capacity :: Capacity

-- | The total number of capacity units consumed on a table or an index.
cCapacityUnits :: Lens' Capacity (Maybe Double)

-- | Represents the selection criteria for a <tt>Query</tt> or
--   <tt>Scan</tt> operation:
--   
--   <ul>
--   <li>For a <tt>Query</tt> operation, <tt>Condition</tt> is used for
--   specifying the <tt>KeyConditions</tt> to use when querying a table or
--   an index. For <tt>KeyConditions</tt> , only the following comparison
--   operators are supported:</li>
--   </ul>
--   
--   <pre>
--   EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN
--   </pre>
--   
--   <tt>Condition</tt> is also used in a <tt>QueryFilter</tt> , which
--   evaluates the query results and returns only the desired values.
--   
--   <ul>
--   <li>For a <tt>Scan</tt> operation, <tt>Condition</tt> is used in a
--   <tt>ScanFilter</tt> , which evaluates the scan results and returns
--   only the desired values.</li>
--   </ul>
--   
--   <i>See:</i> <a>condition</a> smart constructor.
data Condition

-- | Creates a value of <a>Condition</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>cAttributeValueList</a> - One or more values to evaluate
--   against the supplied attribute. The number of values in the list
--   depends on the <tt>ComparisonOperator</tt> being used. For type
--   Number, value comparisons are numeric. String value comparisons for
--   greater than, equals, or less than are based on ASCII character code
--   values. For example, <tt>a</tt> is greater than <tt>A</tt> , and
--   <tt>a</tt> is greater than <tt>B</tt> . For a list of code values, see
--   <a>http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters</a> .
--   For Binary, DynamoDB treats each byte of the binary data as unsigned
--   when it compares binary values.</li>
--   <li><a>cComparisonOperator</a> - A comparator for evaluating
--   attributes. For example, equals, greater than, less than, etc. The
--   following comparison operators are available: <tt>EQ | NE | LE | LT |
--   GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN
--   | BETWEEN</tt> The following are descriptions of each comparison
--   operator. * <tt>EQ</tt> : Equal. <tt>EQ</tt> is supported for all data
--   types, including lists and maps. <tt>AttributeValueList</tt> can
--   contain only one <tt>AttributeValue</tt> element of type String,
--   Number, Binary, String Set, Number Set, or Binary Set. If an item
--   contains an <tt>AttributeValue</tt> element of a different type than
--   the one provided in the request, the value does not match. For
--   example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not equal
--   <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NE</tt> : Not equal.
--   <tt>NE</tt> is supported for all data types, including lists and maps.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, Binary, String Set,
--   Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> of a different type than the one provided in
--   the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>LE</tt> : Less than or equal.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>LT</tt> : Less
--   than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, or Binary (not a set
--   type). If an item contains an <tt>AttributeValue</tt> element of a
--   different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GE</tt> :
--   Greater than or equal. <tt>AttributeValueList</tt> can contain only
--   one <tt>AttributeValue</tt> element of type String, Number, or Binary
--   (not a set type). If an item contains an <tt>AttributeValue</tt>
--   element of a different type than the one provided in the request, the
--   value does not match. For example, <tt>{<a>S</a>:"6"}</tt> does not
--   equal <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GT</tt> :
--   Greater than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NOT_NULL</tt>
--   : The attribute exists. <tt>NOT_NULL</tt> is supported for all data
--   types, including lists and maps. * <tt>NULL</tt> : The attribute does
--   not exist. <tt>NULL</tt> is supported for all data types, including
--   lists and maps. * <tt>CONTAINS</tt> : Checks for a subsequence, or
--   value in a set. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If the target attribute of the comparison is of type
--   String, then the operator checks for a substring match. If the target
--   attribute of the comparison is of type Binary, then the operator looks
--   for a subsequence of the target that matches the input. If the target
--   attribute of the comparison is a set ("<tt>SS</tt> ", "<tt>NS</tt> ",
--   or "<tt>BS</tt> "), then the operator evaluates to true if it finds an
--   exact match with any member of the set. CONTAINS is supported for
--   lists: When evaluating "<tt>a CONTAINS b</tt> ", "<tt>a</tt> " can be
--   a list; however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>NOT_CONTAINS</tt> : Checks for absence of a subsequence, or
--   absence of a value in a set. <tt>AttributeValueList</tt> can contain
--   only one <tt>AttributeValue</tt> element of type String, Number, or
--   Binary (not a set type). If the target attribute of the comparison is
--   a String, then the operator checks for the absence of a substring
--   match. If the target attribute of the comparison is Binary, then the
--   operator checks for the absence of a subsequence of the target that
--   matches the input. If the target attribute of the comparison is a set
--   ("<tt>SS</tt> ", "<tt>NS</tt> ", or "<tt>BS</tt> "), then the operator
--   evaluates to true if it <i>does not</i> find an exact match with any
--   member of the set. NOT_CONTAINS is supported for lists: When
--   evaluating "<tt>a NOT CONTAINS b</tt> ", "<tt>a</tt> " can be a list;
--   however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>BEGINS_WITH</tt> : Checks for a prefix.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String or Binary (not a Number or a
--   set type). The target attribute of the comparison must be of type
--   String or Binary (not a Number or a set type). * <tt>IN</tt> : Checks
--   for matching elements in a list. <tt>AttributeValueList</tt> can
--   contain one or more <tt>AttributeValue</tt> elements of type String,
--   Number, or Binary. These attributes are compared against an existing
--   attribute of an item. If any elements of the input are equal to the
--   item attribute, the expression evaluates to true. * <tt>BETWEEN</tt> :
--   Greater than or equal to the first value, and less than or equal to
--   the second value. <tt>AttributeValueList</tt> must contain two
--   <tt>AttributeValue</tt> elements of the same type, either String,
--   Number, or Binary (not a set type). A target attribute matches if the
--   target value is greater than, or equal to, the first element and less
--   than, or equal to, the second element. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not compare to <tt>{<a>N</a>:"6"}</tt> .
--   Also, <tt>{<a>N</a>:"6"}</tt> does not compare to <tt>{<a>NS</a>:["6",
--   "2", "1"]}</tt> For usage examples of <tt>AttributeValueList</tt> and
--   <tt>ComparisonOperator</tt> , see <a>Legacy Conditional Parameters</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   </ul>
condition :: ComparisonOperator -> Condition

-- | One or more values to evaluate against the supplied attribute. The
--   number of values in the list depends on the
--   <tt>ComparisonOperator</tt> being used. For type Number, value
--   comparisons are numeric. String value comparisons for greater than,
--   equals, or less than are based on ASCII character code values. For
--   example, <tt>a</tt> is greater than <tt>A</tt> , and <tt>a</tt> is
--   greater than <tt>B</tt> . For a list of code values, see
--   <a>http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters</a> .
--   For Binary, DynamoDB treats each byte of the binary data as unsigned
--   when it compares binary values.
cAttributeValueList :: Lens' Condition [AttributeValue]

-- | A comparator for evaluating attributes. For example, equals, greater
--   than, less than, etc. The following comparison operators are
--   available: <tt>EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL |
--   CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN</tt> The
--   following are descriptions of each comparison operator. * <tt>EQ</tt>
--   : Equal. <tt>EQ</tt> is supported for all data types, including lists
--   and maps. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, Binary, String
--   Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>NE</tt> : Not equal. <tt>NE</tt> is supported for
--   all data types, including lists and maps. <tt>AttributeValueList</tt>
--   can contain only one <tt>AttributeValue</tt> of type String, Number,
--   Binary, String Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> of a different type than the one provided in
--   the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>LE</tt> : Less than or equal.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>LT</tt> : Less
--   than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, or Binary (not a set
--   type). If an item contains an <tt>AttributeValue</tt> element of a
--   different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GE</tt> :
--   Greater than or equal. <tt>AttributeValueList</tt> can contain only
--   one <tt>AttributeValue</tt> element of type String, Number, or Binary
--   (not a set type). If an item contains an <tt>AttributeValue</tt>
--   element of a different type than the one provided in the request, the
--   value does not match. For example, <tt>{<a>S</a>:"6"}</tt> does not
--   equal <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GT</tt> :
--   Greater than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NOT_NULL</tt>
--   : The attribute exists. <tt>NOT_NULL</tt> is supported for all data
--   types, including lists and maps. * <tt>NULL</tt> : The attribute does
--   not exist. <tt>NULL</tt> is supported for all data types, including
--   lists and maps. * <tt>CONTAINS</tt> : Checks for a subsequence, or
--   value in a set. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If the target attribute of the comparison is of type
--   String, then the operator checks for a substring match. If the target
--   attribute of the comparison is of type Binary, then the operator looks
--   for a subsequence of the target that matches the input. If the target
--   attribute of the comparison is a set ("<tt>SS</tt> ", "<tt>NS</tt> ",
--   or "<tt>BS</tt> "), then the operator evaluates to true if it finds an
--   exact match with any member of the set. CONTAINS is supported for
--   lists: When evaluating "<tt>a CONTAINS b</tt> ", "<tt>a</tt> " can be
--   a list; however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>NOT_CONTAINS</tt> : Checks for absence of a subsequence, or
--   absence of a value in a set. <tt>AttributeValueList</tt> can contain
--   only one <tt>AttributeValue</tt> element of type String, Number, or
--   Binary (not a set type). If the target attribute of the comparison is
--   a String, then the operator checks for the absence of a substring
--   match. If the target attribute of the comparison is Binary, then the
--   operator checks for the absence of a subsequence of the target that
--   matches the input. If the target attribute of the comparison is a set
--   ("<tt>SS</tt> ", "<tt>NS</tt> ", or "<tt>BS</tt> "), then the operator
--   evaluates to true if it <i>does not</i> find an exact match with any
--   member of the set. NOT_CONTAINS is supported for lists: When
--   evaluating "<tt>a NOT CONTAINS b</tt> ", "<tt>a</tt> " can be a list;
--   however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>BEGINS_WITH</tt> : Checks for a prefix.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String or Binary (not a Number or a
--   set type). The target attribute of the comparison must be of type
--   String or Binary (not a Number or a set type). * <tt>IN</tt> : Checks
--   for matching elements in a list. <tt>AttributeValueList</tt> can
--   contain one or more <tt>AttributeValue</tt> elements of type String,
--   Number, or Binary. These attributes are compared against an existing
--   attribute of an item. If any elements of the input are equal to the
--   item attribute, the expression evaluates to true. * <tt>BETWEEN</tt> :
--   Greater than or equal to the first value, and less than or equal to
--   the second value. <tt>AttributeValueList</tt> must contain two
--   <tt>AttributeValue</tt> elements of the same type, either String,
--   Number, or Binary (not a set type). A target attribute matches if the
--   target value is greater than, or equal to, the first element and less
--   than, or equal to, the second element. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not compare to <tt>{<a>N</a>:"6"}</tt> .
--   Also, <tt>{<a>N</a>:"6"}</tt> does not compare to <tt>{<a>NS</a>:["6",
--   "2", "1"]}</tt> For usage examples of <tt>AttributeValueList</tt> and
--   <tt>ComparisonOperator</tt> , see <a>Legacy Conditional Parameters</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
cComparisonOperator :: Lens' Condition ComparisonOperator

-- | The capacity units consumed by an operation. The data returned
--   includes the total provisioned throughput consumed, along with
--   statistics for the table and any indexes involved in the operation.
--   <tt>ConsumedCapacity</tt> is only returned if the request asked for
--   it. For more information, see <a>Provisioned Throughput</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
--   
--   <i>See:</i> <a>consumedCapacity</a> smart constructor.
data ConsumedCapacity

-- | Creates a value of <a>ConsumedCapacity</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>ccGlobalSecondaryIndexes</a> - The amount of throughput
--   consumed on each global index affected by the operation.</li>
--   <li><a>ccCapacityUnits</a> - The total number of capacity units
--   consumed by the operation.</li>
--   <li><a>ccLocalSecondaryIndexes</a> - The amount of throughput consumed
--   on each local index affected by the operation.</li>
--   <li><a>ccTable</a> - The amount of throughput consumed on the table
--   affected by the operation.</li>
--   <li><a>ccTableName</a> - The name of the table that was affected by
--   the operation.</li>
--   </ul>
consumedCapacity :: ConsumedCapacity

-- | The amount of throughput consumed on each global index affected by the
--   operation.
ccGlobalSecondaryIndexes :: Lens' ConsumedCapacity (HashMap Text Capacity)

-- | The total number of capacity units consumed by the operation.
ccCapacityUnits :: Lens' ConsumedCapacity (Maybe Double)

-- | The amount of throughput consumed on each local index affected by the
--   operation.
ccLocalSecondaryIndexes :: Lens' ConsumedCapacity (HashMap Text Capacity)

-- | The amount of throughput consumed on the table affected by the
--   operation.
ccTable :: Lens' ConsumedCapacity (Maybe Capacity)

-- | The name of the table that was affected by the operation.
ccTableName :: Lens' ConsumedCapacity (Maybe Text)

-- | Represents the continuous backups and point in time recovery settings
--   on the table.
--   
--   <i>See:</i> <a>continuousBackupsDescription</a> smart constructor.
data ContinuousBackupsDescription

-- | Creates a value of <a>ContinuousBackupsDescription</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>cbdPointInTimeRecoveryDescription</a> - The description of the
--   point in time recovery settings applied to the table.</li>
--   <li><a>cbdContinuousBackupsStatus</a> -
--   <tt>ContinuousBackupsStatus</tt> can be one of the following states :
--   ENABLED, DISABLED</li>
--   </ul>
continuousBackupsDescription :: ContinuousBackupsStatus -> ContinuousBackupsDescription

-- | The description of the point in time recovery settings applied to the
--   table.
cbdPointInTimeRecoveryDescription :: Lens' ContinuousBackupsDescription (Maybe PointInTimeRecoveryDescription)

-- | <tt>ContinuousBackupsStatus</tt> can be one of the following states :
--   ENABLED, DISABLED
cbdContinuousBackupsStatus :: Lens' ContinuousBackupsDescription ContinuousBackupsStatus

-- | Represents a new global secondary index to be added to an existing
--   table.
--   
--   <i>See:</i> <a>createGlobalSecondaryIndexAction</a> smart constructor.
data CreateGlobalSecondaryIndexAction

-- | Creates a value of <a>CreateGlobalSecondaryIndexAction</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>cgsiaIndexName</a> - The name of the global secondary index to
--   be created.</li>
--   <li><a>cgsiaKeySchema</a> - The key schema for the global secondary
--   index.</li>
--   <li><a>cgsiaProjection</a> - Represents attributes that are copied
--   (projected) from the table into an index. These are in addition to the
--   primary key attributes and index key attributes, which are
--   automatically projected.</li>
--   <li><a>cgsiaProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index. For
--   current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   </ul>
createGlobalSecondaryIndexAction :: Text -> NonEmpty KeySchemaElement -> Projection -> ProvisionedThroughput -> CreateGlobalSecondaryIndexAction

-- | The name of the global secondary index to be created.
cgsiaIndexName :: Lens' CreateGlobalSecondaryIndexAction Text

-- | The key schema for the global secondary index.
cgsiaKeySchema :: Lens' CreateGlobalSecondaryIndexAction (NonEmpty KeySchemaElement)

-- | Represents attributes that are copied (projected) from the table into
--   an index. These are in addition to the primary key attributes and
--   index key attributes, which are automatically projected.
cgsiaProjection :: Lens' CreateGlobalSecondaryIndexAction Projection

-- | Represents the provisioned throughput settings for the specified
--   global secondary index. For current minimum and maximum provisioned
--   throughput values, see <a>Limits</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
cgsiaProvisionedThroughput :: Lens' CreateGlobalSecondaryIndexAction ProvisionedThroughput

-- | Represents a replica to be added.
--   
--   <i>See:</i> <a>createReplicaAction</a> smart constructor.
data CreateReplicaAction

-- | Creates a value of <a>CreateReplicaAction</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>craRegionName</a> - The region of the replica to be added.</li>
--   </ul>
createReplicaAction :: Text -> CreateReplicaAction

-- | The region of the replica to be added.
craRegionName :: Lens' CreateReplicaAction Text

-- | Represents a global secondary index to be deleted from an existing
--   table.
--   
--   <i>See:</i> <a>deleteGlobalSecondaryIndexAction</a> smart constructor.
data DeleteGlobalSecondaryIndexAction

-- | Creates a value of <a>DeleteGlobalSecondaryIndexAction</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>dgsiaIndexName</a> - The name of the global secondary index to
--   be deleted.</li>
--   </ul>
deleteGlobalSecondaryIndexAction :: Text -> DeleteGlobalSecondaryIndexAction

-- | The name of the global secondary index to be deleted.
dgsiaIndexName :: Lens' DeleteGlobalSecondaryIndexAction Text

-- | Represents a replica to be removed.
--   
--   <i>See:</i> <a>deleteReplicaAction</a> smart constructor.
data DeleteReplicaAction

-- | Creates a value of <a>DeleteReplicaAction</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>draRegionName</a> - The region of the replica to be
--   removed.</li>
--   </ul>
deleteReplicaAction :: Text -> DeleteReplicaAction

-- | The region of the replica to be removed.
draRegionName :: Lens' DeleteReplicaAction Text

-- | Represents a request to perform a <tt>DeleteItem</tt> operation on an
--   item.
--   
--   <i>See:</i> <a>deleteRequest</a> smart constructor.
data DeleteRequest

-- | Creates a value of <a>DeleteRequest</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>drKey</a> - A map of attribute name to attribute values,
--   representing the primary key of the item to delete. All of the table's
--   primary key attributes must be specified, and their data types must
--   match those of the table's key schema.</li>
--   </ul>
deleteRequest :: DeleteRequest

-- | A map of attribute name to attribute values, representing the primary
--   key of the item to delete. All of the table's primary key attributes
--   must be specified, and their data types must match those of the
--   table's key schema.
drKey :: Lens' DeleteRequest (HashMap Text AttributeValue)

-- | Represents a condition to be compared with an attribute value. This
--   condition can be used with <tt>DeleteItem</tt> , <tt>PutItem</tt> or
--   <tt>UpdateItem</tt> operations; if the comparison evaluates to true,
--   the operation succeeds; if not, the operation fails. You can use
--   <tt>ExpectedAttributeValue</tt> in one of two different ways:
--   
--   <ul>
--   <li>Use <tt>AttributeValueList</tt> to specify one or more values to
--   compare against an attribute. Use <tt>ComparisonOperator</tt> to
--   specify how you want to perform the comparison. If the comparison
--   evaluates to true, then the conditional operation succeeds.</li>
--   <li>Use <tt>Value</tt> to specify a value that DynamoDB will compare
--   against an attribute. If the values match, then
--   <tt>ExpectedAttributeValue</tt> evaluates to true and the conditional
--   operation succeeds. Optionally, you can also set <tt>Exists</tt> to
--   false, indicating that you <i>do not</i> expect to find the attribute
--   value in the table. In this case, the conditional operation succeeds
--   only if the comparison evaluates to false.</li>
--   </ul>
--   
--   <tt>Value</tt> and <tt>Exists</tt> are incompatible with
--   <tt>AttributeValueList</tt> and <tt>ComparisonOperator</tt> . Note
--   that if you use both sets of parameters at once, DynamoDB will return
--   a <tt>ValidationException</tt> exception.
--   
--   <i>See:</i> <a>expectedAttributeValue</a> smart constructor.
data ExpectedAttributeValue

-- | Creates a value of <a>ExpectedAttributeValue</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>eavAttributeValueList</a> - One or more values to evaluate
--   against the supplied attribute. The number of values in the list
--   depends on the <tt>ComparisonOperator</tt> being used. For type
--   Number, value comparisons are numeric. String value comparisons for
--   greater than, equals, or less than are based on ASCII character code
--   values. For example, <tt>a</tt> is greater than <tt>A</tt> , and
--   <tt>a</tt> is greater than <tt>B</tt> . For a list of code values, see
--   <a>http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters</a> .
--   For Binary, DynamoDB treats each byte of the binary data as unsigned
--   when it compares binary values. For information on specifying data
--   types in JSON, see <a>JSON Data Format</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>eavExists</a> - Causes DynamoDB to evaluate the value before
--   attempting a conditional operation: * If <tt>Exists</tt> is
--   <tt>true</tt> , DynamoDB will check to see if that attribute value
--   already exists in the table. If it is found, then the operation
--   succeeds. If it is not found, the operation fails with a
--   <tt>ConditionalCheckFailedException</tt> . * If <tt>Exists</tt> is
--   <tt>false</tt> , DynamoDB assumes that the attribute value does not
--   exist in the table. If in fact the value does not exist, then the
--   assumption is valid and the operation succeeds. If the value is found,
--   despite the assumption that it does not exist, the operation fails
--   with a <tt>ConditionalCheckFailedException</tt> . The default setting
--   for <tt>Exists</tt> is <tt>true</tt> . If you supply a <tt>Value</tt>
--   all by itself, DynamoDB assumes the attribute exists: You don't have
--   to set <tt>Exists</tt> to <tt>true</tt> , because it is implied.
--   DynamoDB returns a <tt>ValidationException</tt> if: * <tt>Exists</tt>
--   is <tt>true</tt> but there is no <tt>Value</tt> to check. (You expect
--   a value to exist, but don't specify what that value is.) *
--   <tt>Exists</tt> is <tt>false</tt> but you also provide a
--   <tt>Value</tt> . (You cannot expect an attribute to have a value,
--   while also expecting it not to exist.)</li>
--   <li><a>eavValue</a> - Represents the data for the expected attribute.
--   Each attribute value is described as a name-value pair. The name is
--   the data type, and the value is the data itself. For more information,
--   see <a>Data Types</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>eavComparisonOperator</a> - A comparator for evaluating
--   attributes in the <tt>AttributeValueList</tt> . For example, equals,
--   greater than, less than, etc. The following comparison operators are
--   available: <tt>EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL |
--   CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN</tt> The
--   following are descriptions of each comparison operator. * <tt>EQ</tt>
--   : Equal. <tt>EQ</tt> is supported for all data types, including lists
--   and maps. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, Binary, String
--   Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>NE</tt> : Not equal. <tt>NE</tt> is supported for
--   all data types, including lists and maps. <tt>AttributeValueList</tt>
--   can contain only one <tt>AttributeValue</tt> of type String, Number,
--   Binary, String Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> of a different type than the one provided in
--   the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>LE</tt> : Less than or equal.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>LT</tt> : Less
--   than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, or Binary (not a set
--   type). If an item contains an <tt>AttributeValue</tt> element of a
--   different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GE</tt> :
--   Greater than or equal. <tt>AttributeValueList</tt> can contain only
--   one <tt>AttributeValue</tt> element of type String, Number, or Binary
--   (not a set type). If an item contains an <tt>AttributeValue</tt>
--   element of a different type than the one provided in the request, the
--   value does not match. For example, <tt>{<a>S</a>:"6"}</tt> does not
--   equal <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GT</tt> :
--   Greater than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NOT_NULL</tt>
--   : The attribute exists. <tt>NOT_NULL</tt> is supported for all data
--   types, including lists and maps. * <tt>NULL</tt> : The attribute does
--   not exist. <tt>NULL</tt> is supported for all data types, including
--   lists and maps. * <tt>CONTAINS</tt> : Checks for a subsequence, or
--   value in a set. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If the target attribute of the comparison is of type
--   String, then the operator checks for a substring match. If the target
--   attribute of the comparison is of type Binary, then the operator looks
--   for a subsequence of the target that matches the input. If the target
--   attribute of the comparison is a set ("<tt>SS</tt> ", "<tt>NS</tt> ",
--   or "<tt>BS</tt> "), then the operator evaluates to true if it finds an
--   exact match with any member of the set. CONTAINS is supported for
--   lists: When evaluating "<tt>a CONTAINS b</tt> ", "<tt>a</tt> " can be
--   a list; however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>NOT_CONTAINS</tt> : Checks for absence of a subsequence, or
--   absence of a value in a set. <tt>AttributeValueList</tt> can contain
--   only one <tt>AttributeValue</tt> element of type String, Number, or
--   Binary (not a set type). If the target attribute of the comparison is
--   a String, then the operator checks for the absence of a substring
--   match. If the target attribute of the comparison is Binary, then the
--   operator checks for the absence of a subsequence of the target that
--   matches the input. If the target attribute of the comparison is a set
--   ("<tt>SS</tt> ", "<tt>NS</tt> ", or "<tt>BS</tt> "), then the operator
--   evaluates to true if it <i>does not</i> find an exact match with any
--   member of the set. NOT_CONTAINS is supported for lists: When
--   evaluating "<tt>a NOT CONTAINS b</tt> ", "<tt>a</tt> " can be a list;
--   however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>BEGINS_WITH</tt> : Checks for a prefix.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String or Binary (not a Number or a
--   set type). The target attribute of the comparison must be of type
--   String or Binary (not a Number or a set type). * <tt>IN</tt> : Checks
--   for matching elements in a list. <tt>AttributeValueList</tt> can
--   contain one or more <tt>AttributeValue</tt> elements of type String,
--   Number, or Binary. These attributes are compared against an existing
--   attribute of an item. If any elements of the input are equal to the
--   item attribute, the expression evaluates to true. * <tt>BETWEEN</tt> :
--   Greater than or equal to the first value, and less than or equal to
--   the second value. <tt>AttributeValueList</tt> must contain two
--   <tt>AttributeValue</tt> elements of the same type, either String,
--   Number, or Binary (not a set type). A target attribute matches if the
--   target value is greater than, or equal to, the first element and less
--   than, or equal to, the second element. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not compare to <tt>{<a>N</a>:"6"}</tt> .
--   Also, <tt>{<a>N</a>:"6"}</tt> does not compare to <tt>{<a>NS</a>:["6",
--   "2", "1"]}</tt></li>
--   </ul>
expectedAttributeValue :: ExpectedAttributeValue

-- | One or more values to evaluate against the supplied attribute. The
--   number of values in the list depends on the
--   <tt>ComparisonOperator</tt> being used. For type Number, value
--   comparisons are numeric. String value comparisons for greater than,
--   equals, or less than are based on ASCII character code values. For
--   example, <tt>a</tt> is greater than <tt>A</tt> , and <tt>a</tt> is
--   greater than <tt>B</tt> . For a list of code values, see
--   <a>http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters</a> .
--   For Binary, DynamoDB treats each byte of the binary data as unsigned
--   when it compares binary values. For information on specifying data
--   types in JSON, see <a>JSON Data Format</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
eavAttributeValueList :: Lens' ExpectedAttributeValue [AttributeValue]

-- | Causes DynamoDB to evaluate the value before attempting a conditional
--   operation: * If <tt>Exists</tt> is <tt>true</tt> , DynamoDB will check
--   to see if that attribute value already exists in the table. If it is
--   found, then the operation succeeds. If it is not found, the operation
--   fails with a <tt>ConditionalCheckFailedException</tt> . * If
--   <tt>Exists</tt> is <tt>false</tt> , DynamoDB assumes that the
--   attribute value does not exist in the table. If in fact the value does
--   not exist, then the assumption is valid and the operation succeeds. If
--   the value is found, despite the assumption that it does not exist, the
--   operation fails with a <tt>ConditionalCheckFailedException</tt> . The
--   default setting for <tt>Exists</tt> is <tt>true</tt> . If you supply a
--   <tt>Value</tt> all by itself, DynamoDB assumes the attribute exists:
--   You don't have to set <tt>Exists</tt> to <tt>true</tt> , because it is
--   implied. DynamoDB returns a <tt>ValidationException</tt> if: *
--   <tt>Exists</tt> is <tt>true</tt> but there is no <tt>Value</tt> to
--   check. (You expect a value to exist, but don't specify what that value
--   is.) * <tt>Exists</tt> is <tt>false</tt> but you also provide a
--   <tt>Value</tt> . (You cannot expect an attribute to have a value,
--   while also expecting it not to exist.)
eavExists :: Lens' ExpectedAttributeValue (Maybe Bool)

-- | Represents the data for the expected attribute. Each attribute value
--   is described as a name-value pair. The name is the data type, and the
--   value is the data itself. For more information, see <a>Data Types</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
eavValue :: Lens' ExpectedAttributeValue (Maybe AttributeValue)

-- | A comparator for evaluating attributes in the
--   <tt>AttributeValueList</tt> . For example, equals, greater than, less
--   than, etc. The following comparison operators are available: <tt>EQ |
--   NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS |
--   BEGINS_WITH | IN | BETWEEN</tt> The following are descriptions of each
--   comparison operator. * <tt>EQ</tt> : Equal. <tt>EQ</tt> is supported
--   for all data types, including lists and maps.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, Binary, String
--   Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>NE</tt> : Not equal. <tt>NE</tt> is supported for
--   all data types, including lists and maps. <tt>AttributeValueList</tt>
--   can contain only one <tt>AttributeValue</tt> of type String, Number,
--   Binary, String Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> of a different type than the one provided in
--   the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>LE</tt> : Less than or equal.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>LT</tt> : Less
--   than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, or Binary (not a set
--   type). If an item contains an <tt>AttributeValue</tt> element of a
--   different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GE</tt> :
--   Greater than or equal. <tt>AttributeValueList</tt> can contain only
--   one <tt>AttributeValue</tt> element of type String, Number, or Binary
--   (not a set type). If an item contains an <tt>AttributeValue</tt>
--   element of a different type than the one provided in the request, the
--   value does not match. For example, <tt>{<a>S</a>:"6"}</tt> does not
--   equal <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GT</tt> :
--   Greater than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NOT_NULL</tt>
--   : The attribute exists. <tt>NOT_NULL</tt> is supported for all data
--   types, including lists and maps. * <tt>NULL</tt> : The attribute does
--   not exist. <tt>NULL</tt> is supported for all data types, including
--   lists and maps. * <tt>CONTAINS</tt> : Checks for a subsequence, or
--   value in a set. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If the target attribute of the comparison is of type
--   String, then the operator checks for a substring match. If the target
--   attribute of the comparison is of type Binary, then the operator looks
--   for a subsequence of the target that matches the input. If the target
--   attribute of the comparison is a set ("<tt>SS</tt> ", "<tt>NS</tt> ",
--   or "<tt>BS</tt> "), then the operator evaluates to true if it finds an
--   exact match with any member of the set. CONTAINS is supported for
--   lists: When evaluating "<tt>a CONTAINS b</tt> ", "<tt>a</tt> " can be
--   a list; however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>NOT_CONTAINS</tt> : Checks for absence of a subsequence, or
--   absence of a value in a set. <tt>AttributeValueList</tt> can contain
--   only one <tt>AttributeValue</tt> element of type String, Number, or
--   Binary (not a set type). If the target attribute of the comparison is
--   a String, then the operator checks for the absence of a substring
--   match. If the target attribute of the comparison is Binary, then the
--   operator checks for the absence of a subsequence of the target that
--   matches the input. If the target attribute of the comparison is a set
--   ("<tt>SS</tt> ", "<tt>NS</tt> ", or "<tt>BS</tt> "), then the operator
--   evaluates to true if it <i>does not</i> find an exact match with any
--   member of the set. NOT_CONTAINS is supported for lists: When
--   evaluating "<tt>a NOT CONTAINS b</tt> ", "<tt>a</tt> " can be a list;
--   however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>BEGINS_WITH</tt> : Checks for a prefix.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String or Binary (not a Number or a
--   set type). The target attribute of the comparison must be of type
--   String or Binary (not a Number or a set type). * <tt>IN</tt> : Checks
--   for matching elements in a list. <tt>AttributeValueList</tt> can
--   contain one or more <tt>AttributeValue</tt> elements of type String,
--   Number, or Binary. These attributes are compared against an existing
--   attribute of an item. If any elements of the input are equal to the
--   item attribute, the expression evaluates to true. * <tt>BETWEEN</tt> :
--   Greater than or equal to the first value, and less than or equal to
--   the second value. <tt>AttributeValueList</tt> must contain two
--   <tt>AttributeValue</tt> elements of the same type, either String,
--   Number, or Binary (not a set type). A target attribute matches if the
--   target value is greater than, or equal to, the first element and less
--   than, or equal to, the second element. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not compare to <tt>{<a>N</a>:"6"}</tt> .
--   Also, <tt>{<a>N</a>:"6"}</tt> does not compare to <tt>{<a>NS</a>:["6",
--   "2", "1"]}</tt>
eavComparisonOperator :: Lens' ExpectedAttributeValue (Maybe ComparisonOperator)

-- | Represents the properties of a global secondary index.
--   
--   <i>See:</i> <a>globalSecondaryIndex</a> smart constructor.
data GlobalSecondaryIndex

-- | Creates a value of <a>GlobalSecondaryIndex</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>gsiIndexName</a> - The name of the global secondary index. The
--   name must be unique among all other indexes on this table.</li>
--   <li><a>gsiKeySchema</a> - The complete key schema for a global
--   secondary index, which consists of one or more pairs of attribute
--   names and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt>
--   - sort key</li>
--   <li><a>gsiProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>gsiProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index. For
--   current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   </ul>
globalSecondaryIndex :: Text -> NonEmpty KeySchemaElement -> Projection -> ProvisionedThroughput -> GlobalSecondaryIndex

-- | The name of the global secondary index. The name must be unique among
--   all other indexes on this table.
gsiIndexName :: Lens' GlobalSecondaryIndex Text

-- | The complete key schema for a global secondary index, which consists
--   of one or more pairs of attribute names and key types: * <tt>HASH</tt>
--   - partition key * <tt>RANGE</tt> - sort key
gsiKeySchema :: Lens' GlobalSecondaryIndex (NonEmpty KeySchemaElement)

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
gsiProjection :: Lens' GlobalSecondaryIndex Projection

-- | Represents the provisioned throughput settings for the specified
--   global secondary index. For current minimum and maximum provisioned
--   throughput values, see <a>Limits</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
gsiProvisionedThroughput :: Lens' GlobalSecondaryIndex ProvisionedThroughput

-- | Represents the properties of a global secondary index.
--   
--   <i>See:</i> <a>globalSecondaryIndexDescription</a> smart constructor.
data GlobalSecondaryIndexDescription

-- | Creates a value of <a>GlobalSecondaryIndexDescription</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>gsidBackfilling</a> - Indicates whether the index is currently
--   backfilling. <i>Backfilling</i> is the process of reading items from
--   the table and determining whether they can be added to the index. (Not
--   all items will qualify: For example, a partition key cannot have any
--   duplicate values.) If an item can be added to the index, DynamoDB will
--   do so. After all items have been processed, the backfilling operation
--   is complete and <tt>Backfilling</tt> is false.</li>
--   <li><a>gsidIndexSizeBytes</a> - The total size of the specified index,
--   in bytes. DynamoDB updates this value approximately every six hours.
--   Recent changes might not be reflected in this value.</li>
--   <li><a>gsidIndexStatus</a> - The current state of the global secondary
--   index: * <tt>CREATING</tt> - The index is being created. *
--   <tt>UPDATING</tt> - The index is being updated. * <tt>DELETING</tt> -
--   The index is being deleted. * <tt>ACTIVE</tt> - The index is ready for
--   use.</li>
--   <li><a>gsidProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index. For
--   current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>gsidIndexARN</a> - The Amazon Resource Name (ARN) that uniquely
--   identifies the index.</li>
--   <li><a>gsidKeySchema</a> - The complete key schema for a global
--   secondary index, which consists of one or more pairs of attribute
--   names and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt>
--   - sort key</li>
--   <li><a>gsidProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>gsidItemCount</a> - The number of items in the specified index.
--   DynamoDB updates this value approximately every six hours. Recent
--   changes might not be reflected in this value.</li>
--   <li><a>gsidIndexName</a> - The name of the global secondary
--   index.</li>
--   </ul>
globalSecondaryIndexDescription :: GlobalSecondaryIndexDescription

-- | Indicates whether the index is currently backfilling.
--   <i>Backfilling</i> is the process of reading items from the table and
--   determining whether they can be added to the index. (Not all items
--   will qualify: For example, a partition key cannot have any duplicate
--   values.) If an item can be added to the index, DynamoDB will do so.
--   After all items have been processed, the backfilling operation is
--   complete and <tt>Backfilling</tt> is false.
gsidBackfilling :: Lens' GlobalSecondaryIndexDescription (Maybe Bool)

-- | The total size of the specified index, in bytes. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
gsidIndexSizeBytes :: Lens' GlobalSecondaryIndexDescription (Maybe Integer)

-- | The current state of the global secondary index: * <tt>CREATING</tt> -
--   The index is being created. * <tt>UPDATING</tt> - The index is being
--   updated. * <tt>DELETING</tt> - The index is being deleted. *
--   <tt>ACTIVE</tt> - The index is ready for use.
gsidIndexStatus :: Lens' GlobalSecondaryIndexDescription (Maybe IndexStatus)

-- | Represents the provisioned throughput settings for the specified
--   global secondary index. For current minimum and maximum provisioned
--   throughput values, see <a>Limits</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
gsidProvisionedThroughput :: Lens' GlobalSecondaryIndexDescription (Maybe ProvisionedThroughputDescription)

-- | The Amazon Resource Name (ARN) that uniquely identifies the index.
gsidIndexARN :: Lens' GlobalSecondaryIndexDescription (Maybe Text)

-- | The complete key schema for a global secondary index, which consists
--   of one or more pairs of attribute names and key types: * <tt>HASH</tt>
--   - partition key * <tt>RANGE</tt> - sort key
gsidKeySchema :: Lens' GlobalSecondaryIndexDescription (Maybe (NonEmpty KeySchemaElement))

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
gsidProjection :: Lens' GlobalSecondaryIndexDescription (Maybe Projection)

-- | The number of items in the specified index. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
gsidItemCount :: Lens' GlobalSecondaryIndexDescription (Maybe Integer)

-- | The name of the global secondary index.
gsidIndexName :: Lens' GlobalSecondaryIndexDescription (Maybe Text)

-- | Represents the properties of a global secondary index for the table
--   when the backup was created.
--   
--   <i>See:</i> <a>globalSecondaryIndexInfo</a> smart constructor.
data GlobalSecondaryIndexInfo

-- | Creates a value of <a>GlobalSecondaryIndexInfo</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>gsiiProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index.</li>
--   <li><a>gsiiKeySchema</a> - The complete key schema for a global
--   secondary index, which consists of one or more pairs of attribute
--   names and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt>
--   - sort key</li>
--   <li><a>gsiiProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>gsiiIndexName</a> - The name of the global secondary
--   index.</li>
--   </ul>
globalSecondaryIndexInfo :: GlobalSecondaryIndexInfo

-- | Represents the provisioned throughput settings for the specified
--   global secondary index.
gsiiProvisionedThroughput :: Lens' GlobalSecondaryIndexInfo (Maybe ProvisionedThroughput)

-- | The complete key schema for a global secondary index, which consists
--   of one or more pairs of attribute names and key types: * <tt>HASH</tt>
--   - partition key * <tt>RANGE</tt> - sort key
gsiiKeySchema :: Lens' GlobalSecondaryIndexInfo (Maybe (NonEmpty KeySchemaElement))

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
gsiiProjection :: Lens' GlobalSecondaryIndexInfo (Maybe Projection)

-- | The name of the global secondary index.
gsiiIndexName :: Lens' GlobalSecondaryIndexInfo (Maybe Text)

-- | Represents one of the following:
--   
--   <ul>
--   <li>A new global secondary index to be added to an existing
--   table.</li>
--   <li>New provisioned throughput parameters for an existing global
--   secondary index.</li>
--   <li>An existing global secondary index to be removed from an existing
--   table.</li>
--   </ul>
--   
--   <i>See:</i> <a>globalSecondaryIndexUpdate</a> smart constructor.
data GlobalSecondaryIndexUpdate

-- | Creates a value of <a>GlobalSecondaryIndexUpdate</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>gsiuCreate</a> - The parameters required for creating a global
--   secondary index on an existing table: * <tt>IndexName </tt> *
--   <tt>KeySchema </tt> * <tt>AttributeDefinitions </tt> * <tt>Projection
--   </tt> * <tt>ProvisionedThroughput </tt></li>
--   <li><a>gsiuDelete</a> - The name of an existing global secondary index
--   to be removed.</li>
--   <li><a>gsiuUpdate</a> - The name of an existing global secondary
--   index, along with new provisioned throughput settings to be applied to
--   that index.</li>
--   </ul>
globalSecondaryIndexUpdate :: GlobalSecondaryIndexUpdate

-- | The parameters required for creating a global secondary index on an
--   existing table: * <tt>IndexName </tt> * <tt>KeySchema </tt> *
--   <tt>AttributeDefinitions </tt> * <tt>Projection </tt> *
--   <tt>ProvisionedThroughput </tt>
gsiuCreate :: Lens' GlobalSecondaryIndexUpdate (Maybe CreateGlobalSecondaryIndexAction)

-- | The name of an existing global secondary index to be removed.
gsiuDelete :: Lens' GlobalSecondaryIndexUpdate (Maybe DeleteGlobalSecondaryIndexAction)

-- | The name of an existing global secondary index, along with new
--   provisioned throughput settings to be applied to that index.
gsiuUpdate :: Lens' GlobalSecondaryIndexUpdate (Maybe UpdateGlobalSecondaryIndexAction)

-- | Represents the properties of a global table.
--   
--   <i>See:</i> <a>globalTable</a> smart constructor.
data GlobalTable

-- | Creates a value of <a>GlobalTable</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>gtGlobalTableName</a> - The global table name.</li>
--   <li><a>gtReplicationGroup</a> - The regions where the global table has
--   replicas.</li>
--   </ul>
globalTable :: GlobalTable

-- | The global table name.
gtGlobalTableName :: Lens' GlobalTable (Maybe Text)

-- | The regions where the global table has replicas.
gtReplicationGroup :: Lens' GlobalTable [Replica]

-- | Contains details about the global table.
--   
--   <i>See:</i> <a>globalTableDescription</a> smart constructor.
data GlobalTableDescription

-- | Creates a value of <a>GlobalTableDescription</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>gtdGlobalTableStatus</a> - The current state of the global
--   table: * <tt>CREATING</tt> - The global table is being created. *
--   <tt>UPDATING</tt> - The global table is being updated. *
--   <tt>DELETING</tt> - The global table is being deleted. *
--   <tt>ACTIVE</tt> - The global table is ready for use.</li>
--   <li><a>gtdGlobalTableName</a> - The global table name.</li>
--   <li><a>gtdGlobalTableARN</a> - The unique identifier of the global
--   table.</li>
--   <li><a>gtdCreationDateTime</a> - The creation time of the global
--   table.</li>
--   <li><a>gtdReplicationGroup</a> - The regions where the global table
--   has replicas.</li>
--   </ul>
globalTableDescription :: GlobalTableDescription

-- | The current state of the global table: * <tt>CREATING</tt> - The
--   global table is being created. * <tt>UPDATING</tt> - The global table
--   is being updated. * <tt>DELETING</tt> - The global table is being
--   deleted. * <tt>ACTIVE</tt> - The global table is ready for use.
gtdGlobalTableStatus :: Lens' GlobalTableDescription (Maybe GlobalTableStatus)

-- | The global table name.
gtdGlobalTableName :: Lens' GlobalTableDescription (Maybe Text)

-- | The unique identifier of the global table.
gtdGlobalTableARN :: Lens' GlobalTableDescription (Maybe Text)

-- | The creation time of the global table.
gtdCreationDateTime :: Lens' GlobalTableDescription (Maybe UTCTime)

-- | The regions where the global table has replicas.
gtdReplicationGroup :: Lens' GlobalTableDescription [ReplicaDescription]

-- | Represents the settings of a global secondary index for a global table
--   that will be modified.
--   
--   <i>See:</i> <a>globalTableGlobalSecondaryIndexSettingsUpdate</a> smart
--   constructor.
data GlobalTableGlobalSecondaryIndexSettingsUpdate

-- | Creates a value of
--   <a>GlobalTableGlobalSecondaryIndexSettingsUpdate</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>gtgsisuProvisionedWriteCapacityUnits</a> - The maximum number
--   of writes consumed per second before DynamoDB returns a
--   <tt>ThrottlingException.</tt></li>
--   <li><a>gtgsisuIndexName</a> - The name of the global secondary index.
--   The name must be unique among all other indexes on this table.</li>
--   </ul>
globalTableGlobalSecondaryIndexSettingsUpdate :: Text -> GlobalTableGlobalSecondaryIndexSettingsUpdate

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException.</tt>
gtgsisuProvisionedWriteCapacityUnits :: Lens' GlobalTableGlobalSecondaryIndexSettingsUpdate (Maybe Natural)

-- | The name of the global secondary index. The name must be unique among
--   all other indexes on this table.
gtgsisuIndexName :: Lens' GlobalTableGlobalSecondaryIndexSettingsUpdate Text

-- | Information about item collections, if any, that were affected by the
--   operation. <tt>ItemCollectionMetrics</tt> is only returned if the
--   request asked for it. If the table does not have any local secondary
--   indexes, this information is not returned in the response.
--   
--   <i>See:</i> <a>itemCollectionMetrics</a> smart constructor.
data ItemCollectionMetrics

-- | Creates a value of <a>ItemCollectionMetrics</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>icmItemCollectionKey</a> - The partition key value of the item
--   collection. This value is the same as the partition key value of the
--   item.</li>
--   <li><a>icmSizeEstimateRangeGB</a> - An estimate of item collection
--   size, in gigabytes. This value is a two-element array containing a
--   lower bound and an upper bound for the estimate. The estimate includes
--   the size of all the items in the table, plus the size of all
--   attributes projected into all of the local secondary indexes on that
--   table. Use this estimate to measure whether a local secondary index is
--   approaching its size limit. The estimate is subject to change over
--   time; therefore, do not rely on the precision or accuracy of the
--   estimate.</li>
--   </ul>
itemCollectionMetrics :: ItemCollectionMetrics

-- | The partition key value of the item collection. This value is the same
--   as the partition key value of the item.
icmItemCollectionKey :: Lens' ItemCollectionMetrics (HashMap Text AttributeValue)

-- | An estimate of item collection size, in gigabytes. This value is a
--   two-element array containing a lower bound and an upper bound for the
--   estimate. The estimate includes the size of all the items in the
--   table, plus the size of all attributes projected into all of the local
--   secondary indexes on that table. Use this estimate to measure whether
--   a local secondary index is approaching its size limit. The estimate is
--   subject to change over time; therefore, do not rely on the precision
--   or accuracy of the estimate.
icmSizeEstimateRangeGB :: Lens' ItemCollectionMetrics [Double]

-- | Represents <i>a single element</i> of a key schema. A key schema
--   specifies the attributes that make up the primary key of a table, or
--   the key attributes of an index.
--   
--   A <tt>KeySchemaElement</tt> represents exactly one attribute of the
--   primary key. For example, a simple primary key would be represented by
--   one <tt>KeySchemaElement</tt> (for the partition key). A composite
--   primary key would require one <tt>KeySchemaElement</tt> for the
--   partition key, and another <tt>KeySchemaElement</tt> for the sort key.
--   
--   A <tt>KeySchemaElement</tt> must be a scalar, top-level attribute (not
--   a nested attribute). The data type must be one of String, Number, or
--   Binary. The attribute cannot be nested within a List or a Map.
--   
--   <i>See:</i> <a>keySchemaElement</a> smart constructor.
data KeySchemaElement

-- | Creates a value of <a>KeySchemaElement</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>kseAttributeName</a> - The name of a key attribute.</li>
--   <li><a>kseKeyType</a> - The role that this key attribute will assume:
--   * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort key</li>
--   </ul>
keySchemaElement :: Text -> KeyType -> KeySchemaElement

-- | The name of a key attribute.
kseAttributeName :: Lens' KeySchemaElement Text

-- | The role that this key attribute will assume: * <tt>HASH</tt> -
--   partition key * <tt>RANGE</tt> - sort key
kseKeyType :: Lens' KeySchemaElement KeyType

-- | Represents a set of primary keys and, for each key, the attributes to
--   retrieve from the table.
--   
--   For each primary key, you must provide <i>all</i> of the key
--   attributes. For example, with a simple primary key, you only need to
--   provide the partition key. For a composite primary key, you must
--   provide <i>both</i> the partition key and the sort key.
--   
--   <i>See:</i> <a>keysAndAttributes</a> smart constructor.
data KeysAndAttributes

-- | Creates a value of <a>KeysAndAttributes</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>kaaProjectionExpression</a> - A string that identifies one or
--   more attributes to retrieve from the table. These attributes can
--   include scalars, sets, or elements of a JSON document. The attributes
--   in the <tt>ProjectionExpression</tt> must be separated by commas. If
--   no attribute names are specified, then all attributes will be
--   returned. If any of the requested attributes are not found, they will
--   not appear in the result. For more information, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>kaaAttributesToGet</a> - This is a legacy parameter. Use
--   <tt>ProjectionExpression</tt> instead. For more information, see
--   <a>Legacy Conditional Parameters</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>kaaExpressionAttributeNames</a> - One or more substitution
--   tokens for attribute names in an expression. The following are some
--   use cases for using <tt>ExpressionAttributeNames</tt> : * To access an
--   attribute whose name conflicts with a DynamoDB reserved word. * To
--   create a placeholder for repeating occurrences of an attribute name in
--   an expression. * To prevent special characters in an attribute name
--   from being misinterpreted in an expression. Use the <b>#</b> character
--   in an expression to dereference an attribute name. For example,
--   consider the following attribute name: * <tt>Percentile</tt> The name
--   of this attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>kaaConsistentRead</a> - The consistency of a read operation. If
--   set to <tt>true</tt> , then a strongly consistent read is used;
--   otherwise, an eventually consistent read is used.</li>
--   <li><a>kaaKeys</a> - The primary key attribute values that define the
--   items and the attributes associated with the items.</li>
--   </ul>
keysAndAttributes :: NonEmpty (HashMap Text AttributeValue) -> KeysAndAttributes

-- | A string that identifies one or more attributes to retrieve from the
--   table. These attributes can include scalars, sets, or elements of a
--   JSON document. The attributes in the <tt>ProjectionExpression</tt>
--   must be separated by commas. If no attribute names are specified, then
--   all attributes will be returned. If any of the requested attributes
--   are not found, they will not appear in the result. For more
--   information, see <a>Accessing Item Attributes</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
kaaProjectionExpression :: Lens' KeysAndAttributes (Maybe Text)

-- | This is a legacy parameter. Use <tt>ProjectionExpression</tt> instead.
--   For more information, see <a>Legacy Conditional Parameters</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
kaaAttributesToGet :: Lens' KeysAndAttributes (Maybe (NonEmpty Text))

-- | One or more substitution tokens for attribute names in an expression.
--   The following are some use cases for using
--   <tt>ExpressionAttributeNames</tt> : * To access an attribute whose
--   name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
kaaExpressionAttributeNames :: Lens' KeysAndAttributes (HashMap Text Text)

-- | The consistency of a read operation. If set to <tt>true</tt> , then a
--   strongly consistent read is used; otherwise, an eventually consistent
--   read is used.
kaaConsistentRead :: Lens' KeysAndAttributes (Maybe Bool)

-- | The primary key attribute values that define the items and the
--   attributes associated with the items.
kaaKeys :: Lens' KeysAndAttributes (NonEmpty (HashMap Text AttributeValue))

-- | Represents the properties of a local secondary index.
--   
--   <i>See:</i> <a>localSecondaryIndex</a> smart constructor.
data LocalSecondaryIndex

-- | Creates a value of <a>LocalSecondaryIndex</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>lsiIndexName</a> - The name of the local secondary index. The
--   name must be unique among all other indexes on this table.</li>
--   <li><a>lsiKeySchema</a> - The complete key schema for the local
--   secondary index, consisting of one or more pairs of attribute names
--   and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort
--   key</li>
--   <li><a>lsiProjection</a> - Represents attributes that are copied
--   (projected) from the table into the local secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   </ul>
localSecondaryIndex :: Text -> NonEmpty KeySchemaElement -> Projection -> LocalSecondaryIndex

-- | The name of the local secondary index. The name must be unique among
--   all other indexes on this table.
lsiIndexName :: Lens' LocalSecondaryIndex Text

-- | The complete key schema for the local secondary index, consisting of
--   one or more pairs of attribute names and key types: * <tt>HASH</tt> -
--   partition key * <tt>RANGE</tt> - sort key
lsiKeySchema :: Lens' LocalSecondaryIndex (NonEmpty KeySchemaElement)

-- | Represents attributes that are copied (projected) from the table into
--   the local secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
lsiProjection :: Lens' LocalSecondaryIndex Projection

-- | Represents the properties of a local secondary index.
--   
--   <i>See:</i> <a>localSecondaryIndexDescription</a> smart constructor.
data LocalSecondaryIndexDescription

-- | Creates a value of <a>LocalSecondaryIndexDescription</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>lsidIndexSizeBytes</a> - The total size of the specified index,
--   in bytes. DynamoDB updates this value approximately every six hours.
--   Recent changes might not be reflected in this value.</li>
--   <li><a>lsidIndexARN</a> - The Amazon Resource Name (ARN) that uniquely
--   identifies the index.</li>
--   <li><a>lsidKeySchema</a> - The complete key schema for the local
--   secondary index, consisting of one or more pairs of attribute names
--   and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort
--   key</li>
--   <li><a>lsidProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>lsidItemCount</a> - The number of items in the specified index.
--   DynamoDB updates this value approximately every six hours. Recent
--   changes might not be reflected in this value.</li>
--   <li><a>lsidIndexName</a> - Represents the name of the local secondary
--   index.</li>
--   </ul>
localSecondaryIndexDescription :: LocalSecondaryIndexDescription

-- | The total size of the specified index, in bytes. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
lsidIndexSizeBytes :: Lens' LocalSecondaryIndexDescription (Maybe Integer)

-- | The Amazon Resource Name (ARN) that uniquely identifies the index.
lsidIndexARN :: Lens' LocalSecondaryIndexDescription (Maybe Text)

-- | The complete key schema for the local secondary index, consisting of
--   one or more pairs of attribute names and key types: * <tt>HASH</tt> -
--   partition key * <tt>RANGE</tt> - sort key
lsidKeySchema :: Lens' LocalSecondaryIndexDescription (Maybe (NonEmpty KeySchemaElement))

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
lsidProjection :: Lens' LocalSecondaryIndexDescription (Maybe Projection)

-- | The number of items in the specified index. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
lsidItemCount :: Lens' LocalSecondaryIndexDescription (Maybe Integer)

-- | Represents the name of the local secondary index.
lsidIndexName :: Lens' LocalSecondaryIndexDescription (Maybe Text)

-- | Represents the properties of a local secondary index for the table
--   when the backup was created.
--   
--   <i>See:</i> <a>localSecondaryIndexInfo</a> smart constructor.
data LocalSecondaryIndexInfo

-- | Creates a value of <a>LocalSecondaryIndexInfo</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>lsiiKeySchema</a> - The complete key schema for a local
--   secondary index, which consists of one or more pairs of attribute
--   names and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt>
--   - sort key</li>
--   <li><a>lsiiProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>lsiiIndexName</a> - Represents the name of the local secondary
--   index.</li>
--   </ul>
localSecondaryIndexInfo :: LocalSecondaryIndexInfo

-- | The complete key schema for a local secondary index, which consists of
--   one or more pairs of attribute names and key types: * <tt>HASH</tt> -
--   partition key * <tt>RANGE</tt> - sort key
lsiiKeySchema :: Lens' LocalSecondaryIndexInfo (Maybe (NonEmpty KeySchemaElement))

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
lsiiProjection :: Lens' LocalSecondaryIndexInfo (Maybe Projection)

-- | Represents the name of the local secondary index.
lsiiIndexName :: Lens' LocalSecondaryIndexInfo (Maybe Text)

-- | The description of the point in time settings applied to the table.
--   
--   <i>See:</i> <a>pointInTimeRecoveryDescription</a> smart constructor.
data PointInTimeRecoveryDescription

-- | Creates a value of <a>PointInTimeRecoveryDescription</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>pitrdPointInTimeRecoveryStatus</a> - The current state of point
--   in time recovery: * <tt>ENABLING</tt> - Point in time recovery is
--   being enabled. * <tt>ENABLED</tt> - Point in time recovery is enabled.
--   * <tt>DISABLED</tt> - Point in time recovery is disabled.</li>
--   <li><a>pitrdEarliestRestorableDateTime</a> - Specifies the earliest
--   point in time you can restore your table to. It You can restore your
--   table to any point in time during the last 35 days.</li>
--   <li><a>pitrdLatestRestorableDateTime</a> -
--   <tt>LatestRestorableDateTime</tt> is typically 5 minutes before the
--   current time.</li>
--   </ul>
pointInTimeRecoveryDescription :: PointInTimeRecoveryDescription

-- | The current state of point in time recovery: * <tt>ENABLING</tt> -
--   Point in time recovery is being enabled. * <tt>ENABLED</tt> - Point in
--   time recovery is enabled. * <tt>DISABLED</tt> - Point in time recovery
--   is disabled.
pitrdPointInTimeRecoveryStatus :: Lens' PointInTimeRecoveryDescription (Maybe PointInTimeRecoveryStatus)

-- | Specifies the earliest point in time you can restore your table to. It
--   You can restore your table to any point in time during the last 35
--   days.
pitrdEarliestRestorableDateTime :: Lens' PointInTimeRecoveryDescription (Maybe UTCTime)

-- | <tt>LatestRestorableDateTime</tt> is typically 5 minutes before the
--   current time.
pitrdLatestRestorableDateTime :: Lens' PointInTimeRecoveryDescription (Maybe UTCTime)

-- | Represents the settings used to enable point in time recovery.
--   
--   <i>See:</i> <a>pointInTimeRecoverySpecification</a> smart constructor.
data PointInTimeRecoverySpecification

-- | Creates a value of <a>PointInTimeRecoverySpecification</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>pitrsPointInTimeRecoveryEnabled</a> - Indicates whether point
--   in time recovery is enabled (true) or disabled (false) on the
--   table.</li>
--   </ul>
pointInTimeRecoverySpecification :: Bool -> PointInTimeRecoverySpecification

-- | Indicates whether point in time recovery is enabled (true) or disabled
--   (false) on the table.
pitrsPointInTimeRecoveryEnabled :: Lens' PointInTimeRecoverySpecification Bool

-- | Represents attributes that are copied (projected) from the table into
--   an index. These are in addition to the primary key attributes and
--   index key attributes, which are automatically projected.
--   
--   <i>See:</i> <a>projection</a> smart constructor.
data Projection

-- | Creates a value of <a>Projection</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>pProjectionType</a> - The set of attributes that are projected
--   into the index: * <tt>KEYS_ONLY</tt> - Only the index and primary keys
--   are projected into the index. * <tt>INCLUDE</tt> - Only the specified
--   table attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index.</li>
--   <li><a>pNonKeyAttributes</a> - Represents the non-key attribute names
--   which will be projected into the index. For local secondary indexes,
--   the total count of <tt>NonKeyAttributes</tt> summed across all of the
--   local secondary indexes, must not exceed 20. If you project the same
--   attribute into two different indexes, this counts as two distinct
--   attributes when determining the total.</li>
--   </ul>
projection :: Projection

-- | The set of attributes that are projected into the index: *
--   <tt>KEYS_ONLY</tt> - Only the index and primary keys are projected
--   into the index. * <tt>INCLUDE</tt> - Only the specified table
--   attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index.
pProjectionType :: Lens' Projection (Maybe ProjectionType)

-- | Represents the non-key attribute names which will be projected into
--   the index. For local secondary indexes, the total count of
--   <tt>NonKeyAttributes</tt> summed across all of the local secondary
--   indexes, must not exceed 20. If you project the same attribute into
--   two different indexes, this counts as two distinct attributes when
--   determining the total.
pNonKeyAttributes :: Lens' Projection (Maybe (NonEmpty Text))

-- | Represents the provisioned throughput settings for a specified table
--   or index. The settings can be modified using the <tt>UpdateTable</tt>
--   operation.
--   
--   For current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .
--   
--   <i>See:</i> <a>provisionedThroughput</a> smart constructor.
data ProvisionedThroughput

-- | Creates a value of <a>ProvisionedThroughput</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>ptReadCapacityUnits</a> - The maximum number of strongly
--   consistent reads consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> . For more information, see <a>Specifying
--   Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>ptWriteCapacityUnits</a> - The maximum number of writes
--   consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> . For more information, see <a>Specifying
--   Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   </ul>
provisionedThroughput :: Natural -> Natural -> ProvisionedThroughput

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> . For more
--   information, see <a>Specifying Read and Write Requirements</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
ptReadCapacityUnits :: Lens' ProvisionedThroughput Natural

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> . For more information, see
--   <a>Specifying Read and Write Requirements</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
ptWriteCapacityUnits :: Lens' ProvisionedThroughput Natural

-- | Represents the provisioned throughput settings for the table,
--   consisting of read and write capacity units, along with data about
--   increases and decreases.
--   
--   <i>See:</i> <a>provisionedThroughputDescription</a> smart constructor.
data ProvisionedThroughputDescription

-- | Creates a value of <a>ProvisionedThroughputDescription</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>ptdReadCapacityUnits</a> - The maximum number of strongly
--   consistent reads consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> . Eventually consistent reads require
--   less effort than strongly consistent reads, so a setting of 50
--   <tt>ReadCapacityUnits</tt> per second provides 100 eventually
--   consistent <tt>ReadCapacityUnits</tt> per second.</li>
--   <li><a>ptdLastDecreaseDateTime</a> - The date and time of the last
--   provisioned throughput decrease for this table.</li>
--   <li><a>ptdWriteCapacityUnits</a> - The maximum number of writes
--   consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> .</li>
--   <li><a>ptdNumberOfDecreasesToday</a> - The number of provisioned
--   throughput decreases for this table during this UTC calendar day. For
--   current maximums on provisioned throughput decreases, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>ptdLastIncreaseDateTime</a> - The date and time of the last
--   provisioned throughput increase for this table.</li>
--   </ul>
provisionedThroughputDescription :: ProvisionedThroughputDescription

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> . Eventually
--   consistent reads require less effort than strongly consistent reads,
--   so a setting of 50 <tt>ReadCapacityUnits</tt> per second provides 100
--   eventually consistent <tt>ReadCapacityUnits</tt> per second.
ptdReadCapacityUnits :: Lens' ProvisionedThroughputDescription (Maybe Natural)

-- | The date and time of the last provisioned throughput decrease for this
--   table.
ptdLastDecreaseDateTime :: Lens' ProvisionedThroughputDescription (Maybe UTCTime)

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> .
ptdWriteCapacityUnits :: Lens' ProvisionedThroughputDescription (Maybe Natural)

-- | The number of provisioned throughput decreases for this table during
--   this UTC calendar day. For current maximums on provisioned throughput
--   decreases, see <a>Limits</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .
ptdNumberOfDecreasesToday :: Lens' ProvisionedThroughputDescription (Maybe Natural)

-- | The date and time of the last provisioned throughput increase for this
--   table.
ptdLastIncreaseDateTime :: Lens' ProvisionedThroughputDescription (Maybe UTCTime)

-- | Represents a request to perform a <tt>PutItem</tt> operation on an
--   item.
--   
--   <i>See:</i> <a>putRequest</a> smart constructor.
data PutRequest

-- | Creates a value of <a>PutRequest</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>prItem</a> - A map of attribute name to attribute values,
--   representing the primary key of an item to be processed by
--   <tt>PutItem</tt> . All of the table's primary key attributes must be
--   specified, and their data types must match those of the table's key
--   schema. If any attributes are present in the item which are part of an
--   index key schema for the table, their types must match the index key
--   schema.</li>
--   </ul>
putRequest :: PutRequest

-- | A map of attribute name to attribute values, representing the primary
--   key of an item to be processed by <tt>PutItem</tt> . All of the
--   table's primary key attributes must be specified, and their data types
--   must match those of the table's key schema. If any attributes are
--   present in the item which are part of an index key schema for the
--   table, their types must match the index key schema.
prItem :: Lens' PutRequest (HashMap Text AttributeValue)

-- | Represents the properties of a replica.
--   
--   <i>See:</i> <a>replica</a> smart constructor.
data Replica

-- | Creates a value of <a>Replica</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>rRegionName</a> - The region where the replica needs to be
--   created.</li>
--   </ul>
replica :: Replica

-- | The region where the replica needs to be created.
rRegionName :: Lens' Replica (Maybe Text)

-- | Contains the details of the replica.
--   
--   <i>See:</i> <a>replicaDescription</a> smart constructor.
data ReplicaDescription

-- | Creates a value of <a>ReplicaDescription</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>rdRegionName</a> - The name of the region.</li>
--   </ul>
replicaDescription :: ReplicaDescription

-- | The name of the region.
rdRegionName :: Lens' ReplicaDescription (Maybe Text)

-- | Represents the properties of a global secondary index.
--   
--   <i>See:</i> <a>replicaGlobalSecondaryIndexSettingsDescription</a>
--   smart constructor.
data ReplicaGlobalSecondaryIndexSettingsDescription

-- | Creates a value of
--   <a>ReplicaGlobalSecondaryIndexSettingsDescription</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>rgsisdIndexStatus</a> - The current status of the global
--   secondary index: * <tt>CREATING</tt> - The global secondary index is
--   being created. * <tt>UPDATING</tt> - The global secondary index is
--   being updated. * <tt>DELETING</tt> - The global secondary index is
--   being deleted. * <tt>ACTIVE</tt> - The global secondary index is ready
--   for use.</li>
--   <li><a>rgsisdProvisionedReadCapacityUnits</a> - The maximum number of
--   strongly consistent reads consumed per second before DynamoDB returns
--   a <tt>ThrottlingException</tt> .</li>
--   <li><a>rgsisdProvisionedWriteCapacityUnits</a> - The maximum number of
--   writes consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> .</li>
--   <li><a>rgsisdIndexName</a> - The name of the global secondary index.
--   The name must be unique among all other indexes on this table.</li>
--   </ul>
replicaGlobalSecondaryIndexSettingsDescription :: Text -> ReplicaGlobalSecondaryIndexSettingsDescription

-- | The current status of the global secondary index: * <tt>CREATING</tt>
--   - The global secondary index is being created. * <tt>UPDATING</tt> -
--   The global secondary index is being updated. * <tt>DELETING</tt> - The
--   global secondary index is being deleted. * <tt>ACTIVE</tt> - The
--   global secondary index is ready for use.
rgsisdIndexStatus :: Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Maybe IndexStatus)

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> .
rgsisdProvisionedReadCapacityUnits :: Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Maybe Natural)

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> .
rgsisdProvisionedWriteCapacityUnits :: Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Maybe Natural)

-- | The name of the global secondary index. The name must be unique among
--   all other indexes on this table.
rgsisdIndexName :: Lens' ReplicaGlobalSecondaryIndexSettingsDescription Text

-- | Represents the settings of a global secondary index for a global table
--   that will be modified.
--   
--   <i>See:</i> <a>replicaGlobalSecondaryIndexSettingsUpdate</a> smart
--   constructor.
data ReplicaGlobalSecondaryIndexSettingsUpdate

-- | Creates a value of <a>ReplicaGlobalSecondaryIndexSettingsUpdate</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>rgsisuProvisionedReadCapacityUnits</a> - The maximum number of
--   strongly consistent reads consumed per second before DynamoDB returns
--   a <tt>ThrottlingException</tt> .</li>
--   <li><a>rgsisuIndexName</a> - The name of the global secondary index.
--   The name must be unique among all other indexes on this table.</li>
--   </ul>
replicaGlobalSecondaryIndexSettingsUpdate :: Text -> ReplicaGlobalSecondaryIndexSettingsUpdate

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> .
rgsisuProvisionedReadCapacityUnits :: Lens' ReplicaGlobalSecondaryIndexSettingsUpdate (Maybe Natural)

-- | The name of the global secondary index. The name must be unique among
--   all other indexes on this table.
rgsisuIndexName :: Lens' ReplicaGlobalSecondaryIndexSettingsUpdate Text

-- | Represents the properties of a replica.
--   
--   <i>See:</i> <a>replicaSettingsDescription</a> smart constructor.
data ReplicaSettingsDescription

-- | Creates a value of <a>ReplicaSettingsDescription</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>rsdReplicaStatus</a> - The current state of the region: *
--   <tt>CREATING</tt> - The region is being created. * <tt>UPDATING</tt> -
--   The region is being updated. * <tt>DELETING</tt> - The region is being
--   deleted. * <tt>ACTIVE</tt> - The region is ready for use.</li>
--   <li><a>rsdReplicaProvisionedReadCapacityUnits</a> - The maximum number
--   of strongly consistent reads consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> . For more information, see
--   <a>Specifying Read and Write Requirements</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .</li>
--   <li><a>rsdReplicaProvisionedWriteCapacityUnits</a> - The maximum
--   number of writes consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> . For more information, see <a>Specifying
--   Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>rsdReplicaGlobalSecondaryIndexSettings</a> - Replica global
--   secondary index settings for the global table.</li>
--   <li><a>rsdRegionName</a> - The region name of the replica.</li>
--   </ul>
replicaSettingsDescription :: Text -> ReplicaSettingsDescription

-- | The current state of the region: * <tt>CREATING</tt> - The region is
--   being created. * <tt>UPDATING</tt> - The region is being updated. *
--   <tt>DELETING</tt> - The region is being deleted. * <tt>ACTIVE</tt> -
--   The region is ready for use.
rsdReplicaStatus :: Lens' ReplicaSettingsDescription (Maybe ReplicaStatus)

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> . For more
--   information, see <a>Specifying Read and Write Requirements</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
rsdReplicaProvisionedReadCapacityUnits :: Lens' ReplicaSettingsDescription (Maybe Natural)

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> . For more information, see
--   <a>Specifying Read and Write Requirements</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
rsdReplicaProvisionedWriteCapacityUnits :: Lens' ReplicaSettingsDescription (Maybe Natural)

-- | Replica global secondary index settings for the global table.
rsdReplicaGlobalSecondaryIndexSettings :: Lens' ReplicaSettingsDescription [ReplicaGlobalSecondaryIndexSettingsDescription]

-- | The region name of the replica.
rsdRegionName :: Lens' ReplicaSettingsDescription Text

-- | Represents the settings for a global table in a region that will be
--   modified.
--   
--   <i>See:</i> <a>replicaSettingsUpdate</a> smart constructor.
data ReplicaSettingsUpdate

-- | Creates a value of <a>ReplicaSettingsUpdate</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>rsuReplicaProvisionedReadCapacityUnits</a> - The maximum number
--   of strongly consistent reads consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> . For more information, see
--   <a>Specifying Read and Write Requirements</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .</li>
--   <li><a>rsuReplicaGlobalSecondaryIndexSettingsUpdate</a> - Represents
--   the settings of a global secondary index for a global table that will
--   be modified.</li>
--   <li><a>rsuRegionName</a> - The region of the replica to be added.</li>
--   </ul>
replicaSettingsUpdate :: Text -> ReplicaSettingsUpdate

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> . For more
--   information, see <a>Specifying Read and Write Requirements</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
rsuReplicaProvisionedReadCapacityUnits :: Lens' ReplicaSettingsUpdate (Maybe Natural)

-- | Represents the settings of a global secondary index for a global table
--   that will be modified.
rsuReplicaGlobalSecondaryIndexSettingsUpdate :: Lens' ReplicaSettingsUpdate (Maybe (NonEmpty ReplicaGlobalSecondaryIndexSettingsUpdate))

-- | The region of the replica to be added.
rsuRegionName :: Lens' ReplicaSettingsUpdate Text

-- | Represents one of the following:
--   
--   <ul>
--   <li>A new replica to be added to an existing global table.</li>
--   <li>New parameters for an existing replica.</li>
--   <li>An existing replica to be removed from an existing global
--   table.</li>
--   </ul>
--   
--   <i>See:</i> <a>replicaUpdate</a> smart constructor.
data ReplicaUpdate

-- | Creates a value of <a>ReplicaUpdate</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>ruCreate</a> - The parameters required for creating a replica
--   on an existing global table.</li>
--   <li><a>ruDelete</a> - The name of the existing replica to be
--   removed.</li>
--   </ul>
replicaUpdate :: ReplicaUpdate

-- | The parameters required for creating a replica on an existing global
--   table.
ruCreate :: Lens' ReplicaUpdate (Maybe CreateReplicaAction)

-- | The name of the existing replica to be removed.
ruDelete :: Lens' ReplicaUpdate (Maybe DeleteReplicaAction)

-- | Contains details for the restore.
--   
--   <i>See:</i> <a>restoreSummary</a> smart constructor.
data RestoreSummary

-- | Creates a value of <a>RestoreSummary</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>rsSourceTableARN</a> - ARN of the source table of the backup
--   that is being restored.</li>
--   <li><a>rsSourceBackupARN</a> - ARN of the backup from which the table
--   was restored.</li>
--   <li><a>rsRestoreDateTime</a> - Point in time or source backup
--   time.</li>
--   <li><a>rsRestoreInProgress</a> - Indicates if a restore is in progress
--   or not.</li>
--   </ul>
restoreSummary :: UTCTime -> Bool -> RestoreSummary

-- | ARN of the source table of the backup that is being restored.
rsSourceTableARN :: Lens' RestoreSummary (Maybe Text)

-- | ARN of the backup from which the table was restored.
rsSourceBackupARN :: Lens' RestoreSummary (Maybe Text)

-- | Point in time or source backup time.
rsRestoreDateTime :: Lens' RestoreSummary UTCTime

-- | Indicates if a restore is in progress or not.
rsRestoreInProgress :: Lens' RestoreSummary Bool

-- | The description of the server-side encryption status on the specified
--   table.
--   
--   <i>See:</i> <a>sSEDescription</a> smart constructor.
data SSEDescription

-- | Creates a value of <a>SSEDescription</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>ssedStatus</a> - The current state of server-side encryption: *
--   <tt>ENABLING</tt> - Server-side encryption is being enabled. *
--   <tt>ENABLED</tt> - Server-side encryption is enabled. *
--   <tt>DISABLING</tt> - Server-side encryption is being disabled. *
--   <tt>DISABLED</tt> - Server-side encryption is disabled.</li>
--   </ul>
sSEDescription :: SSEDescription

-- | The current state of server-side encryption: * <tt>ENABLING</tt> -
--   Server-side encryption is being enabled. * <tt>ENABLED</tt> -
--   Server-side encryption is enabled. * <tt>DISABLING</tt> - Server-side
--   encryption is being disabled. * <tt>DISABLED</tt> - Server-side
--   encryption is disabled.
ssedStatus :: Lens' SSEDescription (Maybe SSEStatus)

-- | Represents the settings used to enable server-side encryption.
--   
--   <i>See:</i> <a>sSESpecification</a> smart constructor.
data SSESpecification

-- | Creates a value of <a>SSESpecification</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>ssesEnabled</a> - Indicates whether server-side encryption is
--   enabled (true) or disabled (false) on the table.</li>
--   </ul>
sSESpecification :: Bool -> SSESpecification

-- | Indicates whether server-side encryption is enabled (true) or disabled
--   (false) on the table.
ssesEnabled :: Lens' SSESpecification Bool

-- | Contains the details of the table when the backup was created.
--   
--   <i>See:</i> <a>sourceTableDetails</a> smart constructor.
data SourceTableDetails

-- | Creates a value of <a>SourceTableDetails</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>stdTableSizeBytes</a> - Size of the table in bytes. Please note
--   this is an approximate value.</li>
--   <li><a>stdTableARN</a> - ARN of the table for which backup was
--   created.</li>
--   <li><a>stdItemCount</a> - Number of items in the table. Please note
--   this is an approximate value.</li>
--   <li><a>stdTableName</a> - The name of the table for which the backup
--   was created.</li>
--   <li><a>stdTableId</a> - Unique identifier for the table for which the
--   backup was created.</li>
--   <li><a>stdKeySchema</a> - Schema of the table.</li>
--   <li><a>stdTableCreationDateTime</a> - Time when the source table was
--   created.</li>
--   <li><a>stdProvisionedThroughput</a> - Read IOPs and Write IOPS on the
--   table when the backup was created.</li>
--   </ul>
sourceTableDetails :: Text -> Text -> NonEmpty KeySchemaElement -> UTCTime -> ProvisionedThroughput -> SourceTableDetails

-- | Size of the table in bytes. Please note this is an approximate value.
stdTableSizeBytes :: Lens' SourceTableDetails (Maybe Integer)

-- | ARN of the table for which backup was created.
stdTableARN :: Lens' SourceTableDetails (Maybe Text)

-- | Number of items in the table. Please note this is an approximate
--   value.
stdItemCount :: Lens' SourceTableDetails (Maybe Natural)

-- | The name of the table for which the backup was created.
stdTableName :: Lens' SourceTableDetails Text

-- | Unique identifier for the table for which the backup was created.
stdTableId :: Lens' SourceTableDetails Text

-- | Schema of the table.
stdKeySchema :: Lens' SourceTableDetails (NonEmpty KeySchemaElement)

-- | Time when the source table was created.
stdTableCreationDateTime :: Lens' SourceTableDetails UTCTime

-- | Read IOPs and Write IOPS on the table when the backup was created.
stdProvisionedThroughput :: Lens' SourceTableDetails ProvisionedThroughput

-- | Contains the details of the features enabled on the table when the
--   backup was created. For example, LSIs, GSIs, streams, TTL.
--   
--   <i>See:</i> <a>sourceTableFeatureDetails</a> smart constructor.
data SourceTableFeatureDetails

-- | Creates a value of <a>SourceTableFeatureDetails</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>stfdStreamDescription</a> - Stream settings on the table when
--   the backup was created.</li>
--   <li><a>stfdGlobalSecondaryIndexes</a> - Represents the GSI properties
--   for the table when the backup was created. It includes the IndexName,
--   KeySchema, Projection and ProvisionedThroughput for the GSIs on the
--   table at the time of backup.</li>
--   <li><a>stfdLocalSecondaryIndexes</a> - Represents the LSI properties
--   for the table when the backup was created. It includes the IndexName,
--   KeySchema and Projection for the LSIs on the table at the time of
--   backup.</li>
--   <li><a>stfdSSEDescription</a> - The description of the server-side
--   encryption status on the table when the backup was created.</li>
--   <li><a>stfdTimeToLiveDescription</a> - Time to Live settings on the
--   table when the backup was created.</li>
--   </ul>
sourceTableFeatureDetails :: SourceTableFeatureDetails

-- | Stream settings on the table when the backup was created.
stfdStreamDescription :: Lens' SourceTableFeatureDetails (Maybe StreamSpecification)

-- | Represents the GSI properties for the table when the backup was
--   created. It includes the IndexName, KeySchema, Projection and
--   ProvisionedThroughput for the GSIs on the table at the time of backup.
stfdGlobalSecondaryIndexes :: Lens' SourceTableFeatureDetails [GlobalSecondaryIndexInfo]

-- | Represents the LSI properties for the table when the backup was
--   created. It includes the IndexName, KeySchema and Projection for the
--   LSIs on the table at the time of backup.
stfdLocalSecondaryIndexes :: Lens' SourceTableFeatureDetails [LocalSecondaryIndexInfo]

-- | The description of the server-side encryption status on the table when
--   the backup was created.
stfdSSEDescription :: Lens' SourceTableFeatureDetails (Maybe SSEDescription)

-- | Time to Live settings on the table when the backup was created.
stfdTimeToLiveDescription :: Lens' SourceTableFeatureDetails (Maybe TimeToLiveDescription)

-- | Represents the DynamoDB Streams configuration for a table in DynamoDB.
--   
--   <i>See:</i> <a>streamSpecification</a> smart constructor.
data StreamSpecification

-- | Creates a value of <a>StreamSpecification</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>ssStreamViewType</a> - When an item in the table is modified,
--   <tt>StreamViewType</tt> determines what information is written to the
--   stream for this table. Valid values for <tt>StreamViewType</tt> are: *
--   <tt>KEYS_ONLY</tt> - Only the key attributes of the modified item are
--   written to the stream. * <tt>NEW_IMAGE</tt> - The entire item, as it
--   appears after it was modified, is written to the stream. *
--   <tt>OLD_IMAGE</tt> - The entire item, as it appeared before it was
--   modified, is written to the stream. * <tt>NEW_AND_OLD_IMAGES</tt> -
--   Both the new and the old item images of the item are written to the
--   stream.</li>
--   <li><a>ssStreamEnabled</a> - Indicates whether DynamoDB Streams is
--   enabled (true) or disabled (false) on the table.</li>
--   </ul>
streamSpecification :: StreamSpecification

-- | When an item in the table is modified, <tt>StreamViewType</tt>
--   determines what information is written to the stream for this table.
--   Valid values for <tt>StreamViewType</tt> are: * <tt>KEYS_ONLY</tt> -
--   Only the key attributes of the modified item are written to the
--   stream. * <tt>NEW_IMAGE</tt> - The entire item, as it appears after it
--   was modified, is written to the stream. * <tt>OLD_IMAGE</tt> - The
--   entire item, as it appeared before it was modified, is written to the
--   stream. * <tt>NEW_AND_OLD_IMAGES</tt> - Both the new and the old item
--   images of the item are written to the stream.
ssStreamViewType :: Lens' StreamSpecification (Maybe StreamViewType)

-- | Indicates whether DynamoDB Streams is enabled (true) or disabled
--   (false) on the table.
ssStreamEnabled :: Lens' StreamSpecification (Maybe Bool)

-- | Represents the properties of a table.
--   
--   <i>See:</i> <a>tableDescription</a> smart constructor.
data TableDescription

-- | Creates a value of <a>TableDescription</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>tdRestoreSummary</a> - Contains details for the restore.</li>
--   <li><a>tdTableSizeBytes</a> - The total size of the specified table,
--   in bytes. DynamoDB updates this value approximately every six hours.
--   Recent changes might not be reflected in this value.</li>
--   <li><a>tdAttributeDefinitions</a> - An array of
--   <tt>AttributeDefinition</tt> objects. Each of these objects describes
--   one attribute in the table and index key schema. Each
--   <tt>AttributeDefinition</tt> object in this array is composed of: *
--   <tt>AttributeName</tt> - The name of the attribute. *
--   <tt>AttributeType</tt> - The data type for the attribute.</li>
--   <li><a>tdLatestStreamARN</a> - The Amazon Resource Name (ARN) that
--   uniquely identifies the latest stream for this table.</li>
--   <li><a>tdProvisionedThroughput</a> - The provisioned throughput
--   settings for the table, consisting of read and write capacity units,
--   along with data about increases and decreases.</li>
--   <li><a>tdTableStatus</a> - The current state of the table: *
--   <tt>CREATING</tt> - The table is being created. * <tt>UPDATING</tt> -
--   The table is being updated. * <tt>DELETING</tt> - The table is being
--   deleted. * <tt>ACTIVE</tt> - The table is ready for use.</li>
--   <li><a>tdTableARN</a> - The Amazon Resource Name (ARN) that uniquely
--   identifies the table.</li>
--   <li><a>tdKeySchema</a> - The primary key structure for the table. Each
--   <tt>KeySchemaElement</tt> consists of: * <tt>AttributeName</tt> - The
--   name of the attribute. * <tt>KeyType</tt> - The role of the attribute:
--   * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort key For more
--   information about primary keys, see <a>Primary Key</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>tdGlobalSecondaryIndexes</a> - The global secondary indexes, if
--   any, on the table. Each index is scoped to a given partition key
--   value. Each element is composed of: * <tt>Backfilling</tt> - If true,
--   then the index is currently in the backfilling phase. Backfilling
--   occurs only when a new global secondary index is added to the table;
--   it is the process by which DynamoDB populates the new index with data
--   from the table. (This attribute does not appear for indexes that were
--   created during a <tt>CreateTable</tt> operation.) * <tt>IndexName</tt>
--   - The name of the global secondary index. * <tt>IndexSizeBytes</tt> -
--   The total size of the global secondary index, in bytes. DynamoDB
--   updates this value approximately every six hours. Recent changes might
--   not be reflected in this value. * <tt>IndexStatus</tt> - The current
--   status of the global secondary index: * <tt>CREATING</tt> - The index
--   is being created. * <tt>UPDATING</tt> - The index is being updated. *
--   <tt>DELETING</tt> - The index is being deleted. * <tt>ACTIVE</tt> -
--   The index is ready for use. * <tt>ItemCount</tt> - The number of items
--   in the global secondary index. DynamoDB updates this value
--   approximately every six hours. Recent changes might not be reflected
--   in this value. * <tt>KeySchema</tt> - Specifies the complete index key
--   schema. The attribute names in the key schema must be between 1 and
--   255 characters (inclusive). The key schema must begin with the same
--   partition key as the table. * <tt>Projection</tt> - Specifies
--   attributes that are copied (projected) from the table into the index.
--   These are in addition to the primary key attributes and index key
--   attributes, which are automatically projected. Each attribute
--   specification is composed of: * <tt>ProjectionType</tt> - One of the
--   following: * <tt>KEYS_ONLY</tt> - Only the index and primary keys are
--   projected into the index. * <tt>INCLUDE</tt> - Only the specified
--   table attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index. *
--   <tt>NonKeyAttributes</tt> - A list of one or more non-key attribute
--   names that are projected into the secondary index. The total count of
--   attributes provided in <tt>NonKeyAttributes</tt> , summed across all
--   of the secondary indexes, must not exceed 20. If you project the same
--   attribute into two different indexes, this counts as two distinct
--   attributes when determining the total. *
--   <tt>ProvisionedThroughput</tt> - The provisioned throughput settings
--   for the global secondary index, consisting of read and write capacity
--   units, along with data about increases and decreases. If the table is
--   in the <tt>DELETING</tt> state, no information about indexes will be
--   returned.</li>
--   <li><a>tdLatestStreamLabel</a> - A timestamp, in ISO 8601 format, for
--   this stream. Note that <tt>LatestStreamLabel</tt> is not a unique
--   identifier for the stream, because it is possible that a stream from
--   another table might have the same timestamp. However, the combination
--   of the following three elements is guaranteed to be unique: * the AWS
--   customer ID. * the table name. * the <tt>StreamLabel</tt> .</li>
--   <li><a>tdLocalSecondaryIndexes</a> - Represents one or more local
--   secondary indexes on the table. Each index is scoped to a given
--   partition key value. Tables with one or more local secondary indexes
--   are subject to an item collection size limit, where the amount of data
--   within a given item collection cannot exceed 10 GB. Each element is
--   composed of: * <tt>IndexName</tt> - The name of the local secondary
--   index. * <tt>KeySchema</tt> - Specifies the complete index key schema.
--   The attribute names in the key schema must be between 1 and 255
--   characters (inclusive). The key schema must begin with the same
--   partition key as the table. * <tt>Projection</tt> - Specifies
--   attributes that are copied (projected) from the table into the index.
--   These are in addition to the primary key attributes and index key
--   attributes, which are automatically projected. Each attribute
--   specification is composed of: * <tt>ProjectionType</tt> - One of the
--   following: * <tt>KEYS_ONLY</tt> - Only the index and primary keys are
--   projected into the index. * <tt>INCLUDE</tt> - Only the specified
--   table attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index. *
--   <tt>NonKeyAttributes</tt> - A list of one or more non-key attribute
--   names that are projected into the secondary index. The total count of
--   attributes provided in <tt>NonKeyAttributes</tt> , summed across all
--   of the secondary indexes, must not exceed 20. If you project the same
--   attribute into two different indexes, this counts as two distinct
--   attributes when determining the total. * <tt>IndexSizeBytes</tt> -
--   Represents the total size of the index, in bytes. DynamoDB updates
--   this value approximately every six hours. Recent changes might not be
--   reflected in this value. * <tt>ItemCount</tt> - Represents the number
--   of items in the index. DynamoDB updates this value approximately every
--   six hours. Recent changes might not be reflected in this value. If the
--   table is in the <tt>DELETING</tt> state, no information about indexes
--   will be returned.</li>
--   <li><a>tdCreationDateTime</a> - The date and time when the table was
--   created, in <a>UNIX epoch time</a> format.</li>
--   <li><a>tdSSEDescription</a> - The description of the server-side
--   encryption status on the specified table.</li>
--   <li><a>tdTableId</a> - Unique identifier for the table for which the
--   backup was created.</li>
--   <li><a>tdItemCount</a> - The number of items in the specified table.
--   DynamoDB updates this value approximately every six hours. Recent
--   changes might not be reflected in this value.</li>
--   <li><a>tdTableName</a> - The name of the table.</li>
--   <li><a>tdStreamSpecification</a> - The current DynamoDB Streams
--   configuration for the table.</li>
--   </ul>
tableDescription :: TableDescription

-- | Contains details for the restore.
tdRestoreSummary :: Lens' TableDescription (Maybe RestoreSummary)

-- | The total size of the specified table, in bytes. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
tdTableSizeBytes :: Lens' TableDescription (Maybe Integer)

-- | An array of <tt>AttributeDefinition</tt> objects. Each of these
--   objects describes one attribute in the table and index key schema.
--   Each <tt>AttributeDefinition</tt> object in this array is composed of:
--   * <tt>AttributeName</tt> - The name of the attribute. *
--   <tt>AttributeType</tt> - The data type for the attribute.
tdAttributeDefinitions :: Lens' TableDescription [AttributeDefinition]

-- | The Amazon Resource Name (ARN) that uniquely identifies the latest
--   stream for this table.
tdLatestStreamARN :: Lens' TableDescription (Maybe Text)

-- | The provisioned throughput settings for the table, consisting of read
--   and write capacity units, along with data about increases and
--   decreases.
tdProvisionedThroughput :: Lens' TableDescription (Maybe ProvisionedThroughputDescription)

-- | The current state of the table: * <tt>CREATING</tt> - The table is
--   being created. * <tt>UPDATING</tt> - The table is being updated. *
--   <tt>DELETING</tt> - The table is being deleted. * <tt>ACTIVE</tt> -
--   The table is ready for use.
tdTableStatus :: Lens' TableDescription (Maybe TableStatus)

-- | The Amazon Resource Name (ARN) that uniquely identifies the table.
tdTableARN :: Lens' TableDescription (Maybe Text)

-- | The primary key structure for the table. Each
--   <tt>KeySchemaElement</tt> consists of: * <tt>AttributeName</tt> - The
--   name of the attribute. * <tt>KeyType</tt> - The role of the attribute:
--   * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort key For more
--   information about primary keys, see <a>Primary Key</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
tdKeySchema :: Lens' TableDescription (Maybe (NonEmpty KeySchemaElement))

-- | The global secondary indexes, if any, on the table. Each index is
--   scoped to a given partition key value. Each element is composed of: *
--   <tt>Backfilling</tt> - If true, then the index is currently in the
--   backfilling phase. Backfilling occurs only when a new global secondary
--   index is added to the table; it is the process by which DynamoDB
--   populates the new index with data from the table. (This attribute does
--   not appear for indexes that were created during a <tt>CreateTable</tt>
--   operation.) * <tt>IndexName</tt> - The name of the global secondary
--   index. * <tt>IndexSizeBytes</tt> - The total size of the global
--   secondary index, in bytes. DynamoDB updates this value approximately
--   every six hours. Recent changes might not be reflected in this value.
--   * <tt>IndexStatus</tt> - The current status of the global secondary
--   index: * <tt>CREATING</tt> - The index is being created. *
--   <tt>UPDATING</tt> - The index is being updated. * <tt>DELETING</tt> -
--   The index is being deleted. * <tt>ACTIVE</tt> - The index is ready for
--   use. * <tt>ItemCount</tt> - The number of items in the global
--   secondary index. DynamoDB updates this value approximately every six
--   hours. Recent changes might not be reflected in this value. *
--   <tt>KeySchema</tt> - Specifies the complete index key schema. The
--   attribute names in the key schema must be between 1 and 255 characters
--   (inclusive). The key schema must begin with the same partition key as
--   the table. * <tt>Projection</tt> - Specifies attributes that are
--   copied (projected) from the table into the index. These are in
--   addition to the primary key attributes and index key attributes, which
--   are automatically projected. Each attribute specification is composed
--   of: * <tt>ProjectionType</tt> - One of the following: *
--   <tt>KEYS_ONLY</tt> - Only the index and primary keys are projected
--   into the index. * <tt>INCLUDE</tt> - Only the specified table
--   attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index. *
--   <tt>NonKeyAttributes</tt> - A list of one or more non-key attribute
--   names that are projected into the secondary index. The total count of
--   attributes provided in <tt>NonKeyAttributes</tt> , summed across all
--   of the secondary indexes, must not exceed 20. If you project the same
--   attribute into two different indexes, this counts as two distinct
--   attributes when determining the total. *
--   <tt>ProvisionedThroughput</tt> - The provisioned throughput settings
--   for the global secondary index, consisting of read and write capacity
--   units, along with data about increases and decreases. If the table is
--   in the <tt>DELETING</tt> state, no information about indexes will be
--   returned.
tdGlobalSecondaryIndexes :: Lens' TableDescription [GlobalSecondaryIndexDescription]

-- | A timestamp, in ISO 8601 format, for this stream. Note that
--   <tt>LatestStreamLabel</tt> is not a unique identifier for the stream,
--   because it is possible that a stream from another table might have the
--   same timestamp. However, the combination of the following three
--   elements is guaranteed to be unique: * the AWS customer ID. * the
--   table name. * the <tt>StreamLabel</tt> .
tdLatestStreamLabel :: Lens' TableDescription (Maybe Text)

-- | Represents one or more local secondary indexes on the table. Each
--   index is scoped to a given partition key value. Tables with one or
--   more local secondary indexes are subject to an item collection size
--   limit, where the amount of data within a given item collection cannot
--   exceed 10 GB. Each element is composed of: * <tt>IndexName</tt> - The
--   name of the local secondary index. * <tt>KeySchema</tt> - Specifies
--   the complete index key schema. The attribute names in the key schema
--   must be between 1 and 255 characters (inclusive). The key schema must
--   begin with the same partition key as the table. * <tt>Projection</tt>
--   - Specifies attributes that are copied (projected) from the table into
--   the index. These are in addition to the primary key attributes and
--   index key attributes, which are automatically projected. Each
--   attribute specification is composed of: * <tt>ProjectionType</tt> -
--   One of the following: * <tt>KEYS_ONLY</tt> - Only the index and
--   primary keys are projected into the index. * <tt>INCLUDE</tt> - Only
--   the specified table attributes are projected into the index. The list
--   of projected attributes are in <tt>NonKeyAttributes</tt> . *
--   <tt>ALL</tt> - All of the table attributes are projected into the
--   index. * <tt>NonKeyAttributes</tt> - A list of one or more non-key
--   attribute names that are projected into the secondary index. The total
--   count of attributes provided in <tt>NonKeyAttributes</tt> , summed
--   across all of the secondary indexes, must not exceed 20. If you
--   project the same attribute into two different indexes, this counts as
--   two distinct attributes when determining the total. *
--   <tt>IndexSizeBytes</tt> - Represents the total size of the index, in
--   bytes. DynamoDB updates this value approximately every six hours.
--   Recent changes might not be reflected in this value. *
--   <tt>ItemCount</tt> - Represents the number of items in the index.
--   DynamoDB updates this value approximately every six hours. Recent
--   changes might not be reflected in this value. If the table is in the
--   <tt>DELETING</tt> state, no information about indexes will be
--   returned.
tdLocalSecondaryIndexes :: Lens' TableDescription [LocalSecondaryIndexDescription]

-- | The date and time when the table was created, in <a>UNIX epoch
--   time</a> format.
tdCreationDateTime :: Lens' TableDescription (Maybe UTCTime)

-- | The description of the server-side encryption status on the specified
--   table.
tdSSEDescription :: Lens' TableDescription (Maybe SSEDescription)

-- | Unique identifier for the table for which the backup was created.
tdTableId :: Lens' TableDescription (Maybe Text)

-- | The number of items in the specified table. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
tdItemCount :: Lens' TableDescription (Maybe Integer)

-- | The name of the table.
tdTableName :: Lens' TableDescription (Maybe Text)

-- | The current DynamoDB Streams configuration for the table.
tdStreamSpecification :: Lens' TableDescription (Maybe StreamSpecification)

-- | Describes a tag. A tag is a key-value pair. You can add up to 50 tags
--   to a single DynamoDB table.
--   
--   AWS-assigned tag names and values are automatically assigned the aws:
--   prefix, which the user cannot assign. AWS-assigned tag names do not
--   count towards the tag limit of 50. User-assigned tag names have the
--   prefix user: in the Cost Allocation Report. You cannot backdate the
--   application of a tag.
--   
--   For an overview on tagging DynamoDB resources, see <a>Tagging for
--   DynamoDB</a> in the <i>Amazon DynamoDB Developer Guide</i> .
--   
--   <i>See:</i> <a>tag</a> smart constructor.
data Tag

-- | Creates a value of <a>Tag</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>tagKey</a> - The key of the tag.Tag keys are case sensitive.
--   Each DynamoDB table can only have up to one tag with the same key. If
--   you try to add an existing tag (same key), the existing tag value will
--   be updated to the new value.</li>
--   <li><a>tagValue</a> - The value of the tag. Tag values are
--   case-sensitive and can be null.</li>
--   </ul>
tag :: Text -> Text -> Tag

-- | The key of the tag.Tag keys are case sensitive. Each DynamoDB table
--   can only have up to one tag with the same key. If you try to add an
--   existing tag (same key), the existing tag value will be updated to the
--   new value.
tagKey :: Lens' Tag Text

-- | The value of the tag. Tag values are case-sensitive and can be null.
tagValue :: Lens' Tag Text

-- | The description of the Time to Live (TTL) status on the specified
--   table.
--   
--   <i>See:</i> <a>timeToLiveDescription</a> smart constructor.
data TimeToLiveDescription

-- | Creates a value of <a>TimeToLiveDescription</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>ttldTimeToLiveStatus</a> - The Time to Live status for the
--   table.</li>
--   <li><a>ttldAttributeName</a> - The name of the Time to Live attribute
--   for items in the table.</li>
--   </ul>
timeToLiveDescription :: TimeToLiveDescription

-- | The Time to Live status for the table.
ttldTimeToLiveStatus :: Lens' TimeToLiveDescription (Maybe TimeToLiveStatus)

-- | The name of the Time to Live attribute for items in the table.
ttldAttributeName :: Lens' TimeToLiveDescription (Maybe Text)

-- | Represents the settings used to enable or disable Time to Live for the
--   specified table.
--   
--   <i>See:</i> <a>timeToLiveSpecification</a> smart constructor.
data TimeToLiveSpecification

-- | Creates a value of <a>TimeToLiveSpecification</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>ttlsEnabled</a> - Indicates whether Time To Live is to be
--   enabled (true) or disabled (false) on the table.</li>
--   <li><a>ttlsAttributeName</a> - The name of the Time to Live attribute
--   used to store the expiration time for items in the table.</li>
--   </ul>
timeToLiveSpecification :: Bool -> Text -> TimeToLiveSpecification

-- | Indicates whether Time To Live is to be enabled (true) or disabled
--   (false) on the table.
ttlsEnabled :: Lens' TimeToLiveSpecification Bool

-- | The name of the Time to Live attribute used to store the expiration
--   time for items in the table.
ttlsAttributeName :: Lens' TimeToLiveSpecification Text

-- | Represents the new provisioned throughput settings to be applied to a
--   global secondary index.
--   
--   <i>See:</i> <a>updateGlobalSecondaryIndexAction</a> smart constructor.
data UpdateGlobalSecondaryIndexAction

-- | Creates a value of <a>UpdateGlobalSecondaryIndexAction</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>ugsiaIndexName</a> - The name of the global secondary index to
--   be updated.</li>
--   <li><a>ugsiaProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index. For
--   current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   </ul>
updateGlobalSecondaryIndexAction :: Text -> ProvisionedThroughput -> UpdateGlobalSecondaryIndexAction

-- | The name of the global secondary index to be updated.
ugsiaIndexName :: Lens' UpdateGlobalSecondaryIndexAction Text

-- | Represents the provisioned throughput settings for the specified
--   global secondary index. For current minimum and maximum provisioned
--   throughput values, see <a>Limits</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
ugsiaProvisionedThroughput :: Lens' UpdateGlobalSecondaryIndexAction ProvisionedThroughput

-- | Represents an operation to perform - either <tt>DeleteItem</tt> or
--   <tt>PutItem</tt> . You can only request one of these operations, not
--   both, in a single <tt>WriteRequest</tt> . If you do need to perform
--   both of these operations, you will need to provide two separate
--   <tt>WriteRequest</tt> objects.
--   
--   <i>See:</i> <a>writeRequest</a> smart constructor.
data WriteRequest

-- | Creates a value of <a>WriteRequest</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>wrDeleteRequest</a> - A request to perform a
--   <tt>DeleteItem</tt> operation.</li>
--   <li><a>wrPutRequest</a> - A request to perform a <tt>PutItem</tt>
--   operation.</li>
--   </ul>
writeRequest :: WriteRequest

-- | A request to perform a <tt>DeleteItem</tt> operation.
wrDeleteRequest :: Lens' WriteRequest (Maybe DeleteRequest)

-- | A request to perform a <tt>PutItem</tt> operation.
wrPutRequest :: Lens' WriteRequest (Maybe PutRequest)


-- | Associate a set of tags with an Amazon DynamoDB resource. You can then
--   activate these user-defined tags so that they appear on the Billing
--   and Cost Management console for cost allocation tracking. You can call
--   TagResource up to 5 times per second, per account.
--   
--   For an overview on tagging DynamoDB resources, see <a>Tagging for
--   DynamoDB</a> in the <i>Amazon DynamoDB Developer Guide</i> .
module Network.AWS.DynamoDB.TagResource

-- | Creates a value of <a>TagResource</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>trResourceARN</a> - Identifies the Amazon DynamoDB resource to
--   which tags should be added. This value is an Amazon Resource Name
--   (ARN).</li>
--   <li><a>trTags</a> - The tags to be assigned to the Amazon DynamoDB
--   resource.</li>
--   </ul>
tagResource :: Text -> TagResource

-- | <i>See:</i> <a>tagResource</a> smart constructor.
data TagResource

-- | Identifies the Amazon DynamoDB resource to which tags should be added.
--   This value is an Amazon Resource Name (ARN).
trResourceARN :: Lens' TagResource Text

-- | The tags to be assigned to the Amazon DynamoDB resource.
trTags :: Lens' TagResource [Tag]

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

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


-- | The <tt>Scan</tt> operation returns one or more items and item
--   attributes by accessing every item in a table or a secondary index. To
--   have DynamoDB return fewer items, you can provide a
--   <tt>FilterExpression</tt> operation.
--   
--   If the total number of scanned items exceeds the maximum data set size
--   limit of 1 MB, the scan stops and results are returned to the user as
--   a <tt>LastEvaluatedKey</tt> value to continue the scan in a subsequent
--   operation. The results also include the number of items exceeding the
--   limit. A scan can result in no table data meeting the filter criteria.
--   
--   A single <tt>Scan</tt> operation will read up to the maximum number of
--   items set (if using the <tt>Limit</tt> parameter) or a maximum of 1 MB
--   of data and then apply any filtering to the results using
--   <tt>FilterExpression</tt> . If <tt>LastEvaluatedKey</tt> is present in
--   the response, you will need to paginate the result set. For more
--   information, see <a>Paginating the Results</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
--   
--   <tt>Scan</tt> operations proceed sequentially; however, for faster
--   performance on a large table or secondary index, applications can
--   request a parallel <tt>Scan</tt> operation by providing the
--   <tt>Segment</tt> and <tt>TotalSegments</tt> parameters. For more
--   information, see <a>Parallel Scan</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
--   
--   <tt>Scan</tt> uses eventually consistent reads when accessing the data
--   in a table; therefore, the result set might not include the changes to
--   data in the table immediately before the operation began. If you need
--   a consistent copy of the data, as of the time that the <tt>Scan</tt>
--   begins, you can set the <tt>ConsistentRead</tt> parameter to
--   <tt>true</tt> .
--   
--   This operation returns paginated results.
module Network.AWS.DynamoDB.Scan

-- | Creates a value of <a>Scan</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>sProjectionExpression</a> - A string that identifies one or
--   more attributes to retrieve from the specified table or index. These
--   attributes can include scalars, sets, or elements of a JSON document.
--   The attributes in the expression must be separated by commas. If no
--   attribute names are specified, then all attributes will be returned.
--   If any of the requested attributes are not found, they will not appear
--   in the result. For more information, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>sScanFilter</a> - This is a legacy parameter. Use
--   <tt>FilterExpression</tt> instead. For more information, see
--   <a>ScanFilter</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>sAttributesToGet</a> - This is a legacy parameter. Use
--   <tt>ProjectionExpression</tt> instead. For more information, see
--   <a>AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>sTotalSegments</a> - For a parallel <tt>Scan</tt> request,
--   <tt>TotalSegments</tt> represents the total number of segments into
--   which the <tt>Scan</tt> operation will be divided. The value of
--   <tt>TotalSegments</tt> corresponds to the number of application
--   workers that will perform the parallel scan. For example, if you want
--   to use four application threads to scan a table or an index, specify a
--   <tt>TotalSegments</tt> value of 4. The value for
--   <tt>TotalSegments</tt> must be greater than or equal to 1, and less
--   than or equal to 1000000. If you specify a <tt>TotalSegments</tt>
--   value of 1, the <tt>Scan</tt> operation will be sequential rather than
--   parallel. If you specify <tt>TotalSegments</tt> , you must also
--   specify <tt>Segment</tt> .</li>
--   <li><a>sExpressionAttributeNames</a> - One or more substitution tokens
--   for attribute names in an expression. The following are some use cases
--   for using <tt>ExpressionAttributeNames</tt> : * To access an attribute
--   whose name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>sFilterExpression</a> - A string that contains conditions that
--   DynamoDB applies after the <tt>Scan</tt> operation, but before the
--   data is returned to you. Items that do not satisfy the
--   <tt>FilterExpression</tt> criteria are not returned. For more
--   information, see <a>Filter Expressions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>sConsistentRead</a> - A Boolean value that determines the read
--   consistency model during the scan: * If <tt>ConsistentRead</tt> is
--   <tt>false</tt> , then the data returned from <tt>Scan</tt> might not
--   contain the results from other recently completed write operations
--   (PutItem, UpdateItem or DeleteItem). * If <tt>ConsistentRead</tt> is
--   <tt>true</tt> , then all of the write operations that completed before
--   the <tt>Scan</tt> began are guaranteed to be contained in the
--   <tt>Scan</tt> response. The default setting for
--   <tt>ConsistentRead</tt> is <tt>false</tt> . The
--   <tt>ConsistentRead</tt> parameter is not supported on global secondary
--   indexes. If you scan a global secondary index with
--   <tt>ConsistentRead</tt> set to true, you will receive a
--   <tt>ValidationException</tt> .</li>
--   <li><a>sExpressionAttributeValues</a> - One or more values that can be
--   substituted in an expression. Use the <b>:</b> (colon) character in an
--   expression to dereference an attribute value. For example, suppose
--   that you wanted to check whether the value of the <i>ProductStatus</i>
--   attribute was one of the following: <tt>Available | Backordered |
--   Discontinued</tt> You would first need to specify
--   <tt>ExpressionAttributeValues</tt> as follows: <tt>{
--   ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>sReturnConsumedCapacity</a> - Undocumented member.</li>
--   <li><a>sLimit</a> - The maximum number of items to evaluate (not
--   necessarily the number of matching items). If DynamoDB processes the
--   number of items up to the limit while processing the results, it stops
--   the operation and returns the matching values up to that point, and a
--   key in <tt>LastEvaluatedKey</tt> to apply in a subsequent operation,
--   so that you can pick up where you left off. Also, if the processed
--   data set size exceeds 1 MB before DynamoDB reaches this limit, it
--   stops the operation and returns the matching values up to the limit,
--   and a key in <tt>LastEvaluatedKey</tt> to apply in a subsequent
--   operation to continue the operation. For more information, see
--   <a>Query and Scan</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>sSelect</a> - The attributes to be returned in the result. You
--   can retrieve all item attributes, specific item attributes, the count
--   of matching items, or in the case of an index, some or all of the
--   attributes projected into the index. * <tt>ALL_ATTRIBUTES</tt> -
--   Returns all of the item attributes from the specified table or index.
--   If you query a local secondary index, then for each matching item in
--   the index DynamoDB will fetch the entire item from the parent table.
--   If the index is configured to project all item attributes, then all of
--   the data can be obtained from the local secondary index, and no
--   fetching is required. * <tt>ALL_PROJECTED_ATTRIBUTES</tt> - Allowed
--   only when querying an index. Retrieves all attributes that have been
--   projected into the index. If the index is configured to project all
--   attributes, this return value is equivalent to specifying
--   <tt>ALL_ATTRIBUTES</tt> . * <tt>COUNT</tt> - Returns the number of
--   matching items, rather than the matching items themselves. *
--   <tt>SPECIFIC_ATTRIBUTES</tt> - Returns only the attributes listed in
--   <tt>AttributesToGet</tt> . This return value is equivalent to
--   specifying <tt>AttributesToGet</tt> without specifying any value for
--   <tt>Select</tt> . If you query or scan a local secondary index and
--   request only attributes that are projected into that index, the
--   operation will read only the index and not the table. If any of the
--   requested attributes are not projected into the local secondary index,
--   DynamoDB will fetch each of these attributes from the parent table.
--   This extra fetching incurs additional throughput cost and latency. If
--   you query or scan a global secondary index, you can only request
--   attributes that are projected into the index. Global secondary index
--   queries cannot fetch attributes from the parent table. If neither
--   <tt>Select</tt> nor <tt>AttributesToGet</tt> are specified, DynamoDB
--   defaults to <tt>ALL_ATTRIBUTES</tt> when accessing a table, and
--   <tt>ALL_PROJECTED_ATTRIBUTES</tt> when accessing an index. You cannot
--   use both <tt>Select</tt> and <tt>AttributesToGet</tt> together in a
--   single request, unless the value for <tt>Select</tt> is
--   <tt>SPECIFIC_ATTRIBUTES</tt> . (This usage is equivalent to specifying
--   <tt>AttributesToGet</tt> without any value for <tt>Select</tt> .)</li>
--   <li><a>sSegment</a> - For a parallel <tt>Scan</tt> request,
--   <tt>Segment</tt> identifies an individual segment to be scanned by an
--   application worker. Segment IDs are zero-based, so the first segment
--   is always 0. For example, if you want to use four application threads
--   to scan a table or an index, then the first thread specifies a
--   <tt>Segment</tt> value of 0, the second thread specifies 1, and so on.
--   The value of <tt>LastEvaluatedKey</tt> returned from a parallel
--   <tt>Scan</tt> request must be used as <tt>ExclusiveStartKey</tt> with
--   the same segment ID in a subsequent <tt>Scan</tt> operation. The value
--   for <tt>Segment</tt> must be greater than or equal to 0, and less than
--   the value provided for <tt>TotalSegments</tt> . If you provide
--   <tt>Segment</tt> , you must also provide <tt>TotalSegments</tt> .</li>
--   <li><a>sConditionalOperator</a> - This is a legacy parameter. Use
--   <tt>FilterExpression</tt> instead. For more information, see
--   <a>ConditionalOperator</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>sExclusiveStartKey</a> - The primary key of the first item that
--   this operation will evaluate. Use the value that was returned for
--   <tt>LastEvaluatedKey</tt> in the previous operation. The data type for
--   <tt>ExclusiveStartKey</tt> must be String, Number or Binary. No set
--   data types are allowed. In a parallel scan, a <tt>Scan</tt> request
--   that includes <tt>ExclusiveStartKey</tt> must specify the same segment
--   whose previous <tt>Scan</tt> returned the corresponding value of
--   <tt>LastEvaluatedKey</tt> .</li>
--   <li><a>sIndexName</a> - The name of a secondary index to scan. This
--   index can be any local secondary index or global secondary index. Note
--   that if you use the <tt>IndexName</tt> parameter, you must also
--   provide <tt>TableName</tt> .</li>
--   <li><a>sTableName</a> - The name of the table containing the requested
--   items; or, if you provide <tt>IndexName</tt> , the name of the table
--   to which that index belongs.</li>
--   </ul>
scan :: Text -> Scan

-- | Represents the input of a <tt>Scan</tt> operation.
--   
--   <i>See:</i> <a>scan</a> smart constructor.
data Scan

-- | A string that identifies one or more attributes to retrieve from the
--   specified table or index. These attributes can include scalars, sets,
--   or elements of a JSON document. The attributes in the expression must
--   be separated by commas. If no attribute names are specified, then all
--   attributes will be returned. If any of the requested attributes are
--   not found, they will not appear in the result. For more information,
--   see <a>Accessing Item Attributes</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
sProjectionExpression :: Lens' Scan (Maybe Text)

-- | This is a legacy parameter. Use <tt>FilterExpression</tt> instead. For
--   more information, see <a>ScanFilter</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
sScanFilter :: Lens' Scan (HashMap Text Condition)

-- | This is a legacy parameter. Use <tt>ProjectionExpression</tt> instead.
--   For more information, see <a>AttributesToGet</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
sAttributesToGet :: Lens' Scan (Maybe (NonEmpty Text))

-- | For a parallel <tt>Scan</tt> request, <tt>TotalSegments</tt>
--   represents the total number of segments into which the <tt>Scan</tt>
--   operation will be divided. The value of <tt>TotalSegments</tt>
--   corresponds to the number of application workers that will perform the
--   parallel scan. For example, if you want to use four application
--   threads to scan a table or an index, specify a <tt>TotalSegments</tt>
--   value of 4. The value for <tt>TotalSegments</tt> must be greater than
--   or equal to 1, and less than or equal to 1000000. If you specify a
--   <tt>TotalSegments</tt> value of 1, the <tt>Scan</tt> operation will be
--   sequential rather than parallel. If you specify <tt>TotalSegments</tt>
--   , you must also specify <tt>Segment</tt> .
sTotalSegments :: Lens' Scan (Maybe Natural)

-- | One or more substitution tokens for attribute names in an expression.
--   The following are some use cases for using
--   <tt>ExpressionAttributeNames</tt> : * To access an attribute whose
--   name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
sExpressionAttributeNames :: Lens' Scan (HashMap Text Text)

-- | A string that contains conditions that DynamoDB applies after the
--   <tt>Scan</tt> operation, but before the data is returned to you. Items
--   that do not satisfy the <tt>FilterExpression</tt> criteria are not
--   returned. For more information, see <a>Filter Expressions</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
sFilterExpression :: Lens' Scan (Maybe Text)

-- | A Boolean value that determines the read consistency model during the
--   scan: * If <tt>ConsistentRead</tt> is <tt>false</tt> , then the data
--   returned from <tt>Scan</tt> might not contain the results from other
--   recently completed write operations (PutItem, UpdateItem or
--   DeleteItem). * If <tt>ConsistentRead</tt> is <tt>true</tt> , then all
--   of the write operations that completed before the <tt>Scan</tt> began
--   are guaranteed to be contained in the <tt>Scan</tt> response. The
--   default setting for <tt>ConsistentRead</tt> is <tt>false</tt> . The
--   <tt>ConsistentRead</tt> parameter is not supported on global secondary
--   indexes. If you scan a global secondary index with
--   <tt>ConsistentRead</tt> set to true, you will receive a
--   <tt>ValidationException</tt> .
sConsistentRead :: Lens' Scan (Maybe Bool)

-- | One or more values that can be substituted in an expression. Use the
--   <b>:</b> (colon) character in an expression to dereference an
--   attribute value. For example, suppose that you wanted to check whether
--   the value of the <i>ProductStatus</i> attribute was one of the
--   following: <tt>Available | Backordered | Discontinued</tt> You would
--   first need to specify <tt>ExpressionAttributeValues</tt> as follows:
--   <tt>{ ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
sExpressionAttributeValues :: Lens' Scan (HashMap Text AttributeValue)

-- | Undocumented member.
sReturnConsumedCapacity :: Lens' Scan (Maybe ReturnConsumedCapacity)

-- | The maximum number of items to evaluate (not necessarily the number of
--   matching items). If DynamoDB processes the number of items up to the
--   limit while processing the results, it stops the operation and returns
--   the matching values up to that point, and a key in
--   <tt>LastEvaluatedKey</tt> to apply in a subsequent operation, so that
--   you can pick up where you left off. Also, if the processed data set
--   size exceeds 1 MB before DynamoDB reaches this limit, it stops the
--   operation and returns the matching values up to the limit, and a key
--   in <tt>LastEvaluatedKey</tt> to apply in a subsequent operation to
--   continue the operation. For more information, see <a>Query and
--   Scan</a> in the <i>Amazon DynamoDB Developer Guide</i> .
sLimit :: Lens' Scan (Maybe Natural)

-- | The attributes to be returned in the result. You can retrieve all item
--   attributes, specific item attributes, the count of matching items, or
--   in the case of an index, some or all of the attributes projected into
--   the index. * <tt>ALL_ATTRIBUTES</tt> - Returns all of the item
--   attributes from the specified table or index. If you query a local
--   secondary index, then for each matching item in the index DynamoDB
--   will fetch the entire item from the parent table. If the index is
--   configured to project all item attributes, then all of the data can be
--   obtained from the local secondary index, and no fetching is required.
--   * <tt>ALL_PROJECTED_ATTRIBUTES</tt> - Allowed only when querying an
--   index. Retrieves all attributes that have been projected into the
--   index. If the index is configured to project all attributes, this
--   return value is equivalent to specifying <tt>ALL_ATTRIBUTES</tt> . *
--   <tt>COUNT</tt> - Returns the number of matching items, rather than the
--   matching items themselves. * <tt>SPECIFIC_ATTRIBUTES</tt> - Returns
--   only the attributes listed in <tt>AttributesToGet</tt> . This return
--   value is equivalent to specifying <tt>AttributesToGet</tt> without
--   specifying any value for <tt>Select</tt> . If you query or scan a
--   local secondary index and request only attributes that are projected
--   into that index, the operation will read only the index and not the
--   table. If any of the requested attributes are not projected into the
--   local secondary index, DynamoDB will fetch each of these attributes
--   from the parent table. This extra fetching incurs additional
--   throughput cost and latency. If you query or scan a global secondary
--   index, you can only request attributes that are projected into the
--   index. Global secondary index queries cannot fetch attributes from the
--   parent table. If neither <tt>Select</tt> nor <tt>AttributesToGet</tt>
--   are specified, DynamoDB defaults to <tt>ALL_ATTRIBUTES</tt> when
--   accessing a table, and <tt>ALL_PROJECTED_ATTRIBUTES</tt> when
--   accessing an index. You cannot use both <tt>Select</tt> and
--   <tt>AttributesToGet</tt> together in a single request, unless the
--   value for <tt>Select</tt> is <tt>SPECIFIC_ATTRIBUTES</tt> . (This
--   usage is equivalent to specifying <tt>AttributesToGet</tt> without any
--   value for <tt>Select</tt> .)
sSelect :: Lens' Scan (Maybe Select)

-- | For a parallel <tt>Scan</tt> request, <tt>Segment</tt> identifies an
--   individual segment to be scanned by an application worker. Segment IDs
--   are zero-based, so the first segment is always 0. For example, if you
--   want to use four application threads to scan a table or an index, then
--   the first thread specifies a <tt>Segment</tt> value of 0, the second
--   thread specifies 1, and so on. The value of <tt>LastEvaluatedKey</tt>
--   returned from a parallel <tt>Scan</tt> request must be used as
--   <tt>ExclusiveStartKey</tt> with the same segment ID in a subsequent
--   <tt>Scan</tt> operation. The value for <tt>Segment</tt> must be
--   greater than or equal to 0, and less than the value provided for
--   <tt>TotalSegments</tt> . If you provide <tt>Segment</tt> , you must
--   also provide <tt>TotalSegments</tt> .
sSegment :: Lens' Scan (Maybe Natural)

-- | This is a legacy parameter. Use <tt>FilterExpression</tt> instead. For
--   more information, see <a>ConditionalOperator</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
sConditionalOperator :: Lens' Scan (Maybe ConditionalOperator)

-- | The primary key of the first item that this operation will evaluate.
--   Use the value that was returned for <tt>LastEvaluatedKey</tt> in the
--   previous operation. The data type for <tt>ExclusiveStartKey</tt> must
--   be String, Number or Binary. No set data types are allowed. In a
--   parallel scan, a <tt>Scan</tt> request that includes
--   <tt>ExclusiveStartKey</tt> must specify the same segment whose
--   previous <tt>Scan</tt> returned the corresponding value of
--   <tt>LastEvaluatedKey</tt> .
sExclusiveStartKey :: Lens' Scan (HashMap Text AttributeValue)

-- | The name of a secondary index to scan. This index can be any local
--   secondary index or global secondary index. Note that if you use the
--   <tt>IndexName</tt> parameter, you must also provide <tt>TableName</tt>
--   .
sIndexName :: Lens' Scan (Maybe Text)

-- | The name of the table containing the requested items; or, if you
--   provide <tt>IndexName</tt> , the name of the table to which that index
--   belongs.
sTableName :: Lens' Scan Text

-- | Creates a value of <a>ScanResponse</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>srsLastEvaluatedKey</a> - The primary key of the item where the
--   operation stopped, inclusive of the previous result set. Use this
--   value to start a new operation, excluding this value in the new
--   request. If <tt>LastEvaluatedKey</tt> is empty, then the "last page"
--   of results has been processed and there is no more data to be
--   retrieved. If <tt>LastEvaluatedKey</tt> is not empty, it does not
--   necessarily mean that there is more data in the result set. The only
--   way to know when you have reached the end of the result set is when
--   <tt>LastEvaluatedKey</tt> is empty.</li>
--   <li><a>srsCount</a> - The number of items in the response. If you set
--   <tt>ScanFilter</tt> in the request, then <tt>Count</tt> is the number
--   of items returned after the filter was applied, and
--   <tt>ScannedCount</tt> is the number of matching items before the
--   filter was applied. If you did not use a filter in the request, then
--   <tt>Count</tt> is the same as <tt>ScannedCount</tt> .</li>
--   <li><a>srsScannedCount</a> - The number of items evaluated, before any
--   <tt>ScanFilter</tt> is applied. A high <tt>ScannedCount</tt> value
--   with few, or no, <tt>Count</tt> results indicates an inefficient
--   <tt>Scan</tt> operation. For more information, see <a>Count and
--   ScannedCount</a> in the <i>Amazon DynamoDB Developer Guide</i> . If
--   you did not use a filter in the request, then <tt>ScannedCount</tt> is
--   the same as <tt>Count</tt> .</li>
--   <li><a>srsItems</a> - An array of item attributes that match the scan
--   criteria. Each element in this array consists of an attribute name and
--   the value for that attribute.</li>
--   <li><a>srsConsumedCapacity</a> - The capacity units consumed by the
--   <tt>Scan</tt> operation. The data returned includes the total
--   provisioned throughput consumed, along with statistics for the table
--   and any indexes involved in the operation. <tt>ConsumedCapacity</tt>
--   is only returned if the <tt>ReturnConsumedCapacity</tt> parameter was
--   specified. For more information, see <a>Provisioned Throughput</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>srsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
scanResponse :: Int -> ScanResponse

-- | Represents the output of a <tt>Scan</tt> operation.
--   
--   <i>See:</i> <a>scanResponse</a> smart constructor.
data ScanResponse

-- | The primary key of the item where the operation stopped, inclusive of
--   the previous result set. Use this value to start a new operation,
--   excluding this value in the new request. If <tt>LastEvaluatedKey</tt>
--   is empty, then the "last page" of results has been processed and there
--   is no more data to be retrieved. If <tt>LastEvaluatedKey</tt> is not
--   empty, it does not necessarily mean that there is more data in the
--   result set. The only way to know when you have reached the end of the
--   result set is when <tt>LastEvaluatedKey</tt> is empty.
srsLastEvaluatedKey :: Lens' ScanResponse (HashMap Text AttributeValue)

-- | The number of items in the response. If you set <tt>ScanFilter</tt> in
--   the request, then <tt>Count</tt> is the number of items returned after
--   the filter was applied, and <tt>ScannedCount</tt> is the number of
--   matching items before the filter was applied. If you did not use a
--   filter in the request, then <tt>Count</tt> is the same as
--   <tt>ScannedCount</tt> .
srsCount :: Lens' ScanResponse (Maybe Int)

-- | The number of items evaluated, before any <tt>ScanFilter</tt> is
--   applied. A high <tt>ScannedCount</tt> value with few, or no,
--   <tt>Count</tt> results indicates an inefficient <tt>Scan</tt>
--   operation. For more information, see <a>Count and ScannedCount</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> . If you did not use a
--   filter in the request, then <tt>ScannedCount</tt> is the same as
--   <tt>Count</tt> .
srsScannedCount :: Lens' ScanResponse (Maybe Int)

-- | An array of item attributes that match the scan criteria. Each element
--   in this array consists of an attribute name and the value for that
--   attribute.
srsItems :: Lens' ScanResponse [HashMap Text AttributeValue]

-- | The capacity units consumed by the <tt>Scan</tt> operation. The data
--   returned includes the total provisioned throughput consumed, along
--   with statistics for the table and any indexes involved in the
--   operation. <tt>ConsumedCapacity</tt> is only returned if the
--   <tt>ReturnConsumedCapacity</tt> parameter was specified. For more
--   information, see <a>Provisioned Throughput</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
srsConsumedCapacity :: Lens' ScanResponse (Maybe ConsumedCapacity)

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


-- | Restores the specified table to the specified point in time within
--   <tt>EarliestRestorableDateTime</tt> and
--   <tt>LatestRestorableDateTime</tt> . You can restore your table to any
--   point in time during the last 35 days. Any number of users can execute
--   up to 4 concurrent restores (any type of restore) in a given account.
--   
--   When you restore using point in time recovery, DynamoDB restores your
--   table data to the state based on the selected date and time
--   (day:hour:minute:second) to a new table.
--   
--   Along with data, the following are also included on the new restored
--   table using point in time recovery:
--   
--   <ul>
--   <li>Global secondary indexes (GSIs)</li>
--   <li>Local secondary indexes (LSIs)</li>
--   <li>Provisioned read and write capacity</li>
--   <li>Encryption settings</li>
--   </ul>
--   
--   <i>Important:</i> All these settings come from the current settings of
--   the source table at the time of restore.
--   
--   You must manually set up the following on the restored table:
--   
--   <ul>
--   <li>Auto scaling policies</li>
--   <li>IAM policies</li>
--   <li>Cloudwatch metrics and alarms</li>
--   <li>Tags</li>
--   <li>Stream settings</li>
--   <li>Time to Live (TTL) settings</li>
--   <li>Point in time recovery settings</li>
--   </ul>
module Network.AWS.DynamoDB.RestoreTableToPointInTime

-- | Creates a value of <a>RestoreTableToPointInTime</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>rttpitUseLatestRestorableTime</a> - Restore the table to the
--   latest possible time. <tt>LatestRestorableDateTime</tt> is typically 5
--   minutes before the current time.</li>
--   <li><a>rttpitRestoreDateTime</a> - Time in the past to restore the
--   table to.</li>
--   <li><a>rttpitSourceTableName</a> - Name of the source table that is
--   being restored.</li>
--   <li><a>rttpitTargetTableName</a> - The name of the new table to which
--   it must be restored to.</li>
--   </ul>
restoreTableToPointInTime :: Text -> Text -> RestoreTableToPointInTime

-- | <i>See:</i> <a>restoreTableToPointInTime</a> smart constructor.
data RestoreTableToPointInTime

-- | Restore the table to the latest possible time.
--   <tt>LatestRestorableDateTime</tt> is typically 5 minutes before the
--   current time.
rttpitUseLatestRestorableTime :: Lens' RestoreTableToPointInTime (Maybe Bool)

-- | Time in the past to restore the table to.
rttpitRestoreDateTime :: Lens' RestoreTableToPointInTime (Maybe UTCTime)

-- | Name of the source table that is being restored.
rttpitSourceTableName :: Lens' RestoreTableToPointInTime Text

-- | The name of the new table to which it must be restored to.
rttpitTargetTableName :: Lens' RestoreTableToPointInTime Text

-- | Creates a value of <a>RestoreTableToPointInTimeResponse</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>rttpitrsTableDescription</a> - Represents the properties of a
--   table.</li>
--   <li><a>rttpitrsResponseStatus</a> - -- | The response status
--   code.</li>
--   </ul>
restoreTableToPointInTimeResponse :: Int -> RestoreTableToPointInTimeResponse

-- | <i>See:</i> <a>restoreTableToPointInTimeResponse</a> smart
--   constructor.
data RestoreTableToPointInTimeResponse

-- | Represents the properties of a table.
rttpitrsTableDescription :: Lens' RestoreTableToPointInTimeResponse (Maybe TableDescription)

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


-- | Creates a new table from an existing backup. Any number of users can
--   execute up to 4 concurrent restores (any type of restore) in a given
--   account.
--   
--   You can call <tt>RestoreTableFromBackup</tt> at a maximum rate of 10
--   times per second.
--   
--   You must manually set up the following on the restored table:
--   
--   <ul>
--   <li>Auto scaling policies</li>
--   <li>IAM policies</li>
--   <li>Cloudwatch metrics and alarms</li>
--   <li>Tags</li>
--   <li>Stream settings</li>
--   <li>Time to Live (TTL) settings</li>
--   </ul>
module Network.AWS.DynamoDB.RestoreTableFromBackup

-- | Creates a value of <a>RestoreTableFromBackup</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>rtfbTargetTableName</a> - The name of the new table to which
--   the backup must be restored.</li>
--   <li><a>rtfbBackupARN</a> - The ARN associated with the backup.</li>
--   </ul>
restoreTableFromBackup :: Text -> Text -> RestoreTableFromBackup

-- | <i>See:</i> <a>restoreTableFromBackup</a> smart constructor.
data RestoreTableFromBackup

-- | The name of the new table to which the backup must be restored.
rtfbTargetTableName :: Lens' RestoreTableFromBackup Text

-- | The ARN associated with the backup.
rtfbBackupARN :: Lens' RestoreTableFromBackup Text

-- | Creates a value of <a>RestoreTableFromBackupResponse</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>rtfbrsTableDescription</a> - The description of the table
--   created from an existing backup.</li>
--   <li><a>rtfbrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
restoreTableFromBackupResponse :: Int -> RestoreTableFromBackupResponse

-- | <i>See:</i> <a>restoreTableFromBackupResponse</a> smart constructor.
data RestoreTableFromBackupResponse

-- | The description of the table created from an existing backup.
rtfbrsTableDescription :: Lens' RestoreTableFromBackupResponse (Maybe TableDescription)

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


-- | The <tt>Query</tt> operation finds items based on primary key values.
--   You can query any table or secondary index that has a composite
--   primary key (a partition key and a sort key).
--   
--   Use the <tt>KeyConditionExpression</tt> parameter to provide a
--   specific value for the partition key. The <tt>Query</tt> operation
--   will return all of the items from the table or index with that
--   partition key value. You can optionally narrow the scope of the
--   <tt>Query</tt> operation by specifying a sort key value and a
--   comparison operator in <tt>KeyConditionExpression</tt> . To further
--   refine the <tt>Query</tt> results, you can optionally provide a
--   <tt>FilterExpression</tt> . A <tt>FilterExpression</tt> determines
--   which items within the results should be returned to you. All of the
--   other results are discarded.
--   
--   A <tt>Query</tt> operation always returns a result set. If no matching
--   items are found, the result set will be empty. Queries that do not
--   return results consume the minimum number of read capacity units for
--   that type of read operation.
--   
--   <tt>Query</tt> results are always sorted by the sort key value. If the
--   data type of the sort key is Number, the results are returned in
--   numeric order; otherwise, the results are returned in order of UTF-8
--   bytes. By default, the sort order is ascending. To reverse the order,
--   set the <tt>ScanIndexForward</tt> parameter to false.
--   
--   A single <tt>Query</tt> operation will read up to the maximum number
--   of items set (if using the <tt>Limit</tt> parameter) or a maximum of 1
--   MB of data and then apply any filtering to the results using
--   <tt>FilterExpression</tt> . If <tt>LastEvaluatedKey</tt> is present in
--   the response, you will need to paginate the result set. For more
--   information, see <a>Paginating the Results</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
--   
--   <tt>FilterExpression</tt> is applied after a <tt>Query</tt> finishes,
--   but before the results are returned. A <tt>FilterExpression</tt>
--   cannot contain partition key or sort key attributes. You need to
--   specify those attributes in the <tt>KeyConditionExpression</tt> .
--   
--   You can query a table, a local secondary index, or a global secondary
--   index. For a query on a table or on a local secondary index, you can
--   set the <tt>ConsistentRead</tt> parameter to <tt>true</tt> and obtain
--   a strongly consistent result. Global secondary indexes support
--   eventually consistent reads only, so do not specify
--   <tt>ConsistentRead</tt> when querying a global secondary index.
--   
--   This operation returns paginated results.
module Network.AWS.DynamoDB.Query

-- | Creates a value of <a>Query</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>qKeyConditions</a> - This is a legacy parameter. Use
--   <tt>KeyConditionExpression</tt> instead. For more information, see
--   <a>KeyConditions</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>qProjectionExpression</a> - A string that identifies one or
--   more attributes to retrieve from the table. These attributes can
--   include scalars, sets, or elements of a JSON document. The attributes
--   in the expression must be separated by commas. If no attribute names
--   are specified, then all attributes will be returned. If any of the
--   requested attributes are not found, they will not appear in the
--   result. For more information, see <a>Accessing Item Attributes</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>qAttributesToGet</a> - This is a legacy parameter. Use
--   <tt>ProjectionExpression</tt> instead. For more information, see
--   <a>AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>qExpressionAttributeNames</a> - One or more substitution tokens
--   for attribute names in an expression. The following are some use cases
--   for using <tt>ExpressionAttributeNames</tt> : * To access an attribute
--   whose name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>qFilterExpression</a> - A string that contains conditions that
--   DynamoDB applies after the <tt>Query</tt> operation, but before the
--   data is returned to you. Items that do not satisfy the
--   <tt>FilterExpression</tt> criteria are not returned. A
--   <tt>FilterExpression</tt> does not allow key attributes. You cannot
--   define a filter expression based on a partition key or a sort key. For
--   more information, see <a>Filter Expressions</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .</li>
--   <li><a>qQueryFilter</a> - This is a legacy parameter. Use
--   <tt>FilterExpression</tt> instead. For more information, see
--   <a>QueryFilter</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>qConsistentRead</a> - Determines the read consistency model: If
--   set to <tt>true</tt> , then the operation uses strongly consistent
--   reads; otherwise, the operation uses eventually consistent reads.
--   Strongly consistent reads are not supported on global secondary
--   indexes. If you query a global secondary index with
--   <tt>ConsistentRead</tt> set to <tt>true</tt> , you will receive a
--   <tt>ValidationException</tt> .</li>
--   <li><a>qExpressionAttributeValues</a> - One or more values that can be
--   substituted in an expression. Use the <b>:</b> (colon) character in an
--   expression to dereference an attribute value. For example, suppose
--   that you wanted to check whether the value of the <i>ProductStatus</i>
--   attribute was one of the following: <tt>Available | Backordered |
--   Discontinued</tt> You would first need to specify
--   <tt>ExpressionAttributeValues</tt> as follows: <tt>{
--   ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>qReturnConsumedCapacity</a> - Undocumented member.</li>
--   <li><a>qScanIndexForward</a> - Specifies the order for index
--   traversal: If <tt>true</tt> (default), the traversal is performed in
--   ascending order; if <tt>false</tt> , the traversal is performed in
--   descending order. Items with the same partition key value are stored
--   in sorted order by sort key. If the sort key data type is Number, the
--   results are stored in numeric order. For type String, the results are
--   stored in order of UTF-8 bytes. For type Binary, DynamoDB treats each
--   byte of the binary data as unsigned. If <tt>ScanIndexForward</tt> is
--   <tt>true</tt> , DynamoDB returns the results in the order in which
--   they are stored (by sort key value). This is the default behavior. If
--   <tt>ScanIndexForward</tt> is <tt>false</tt> , DynamoDB reads the
--   results in reverse order by sort key value, and then returns the
--   results to the client.</li>
--   <li><a>qLimit</a> - The maximum number of items to evaluate (not
--   necessarily the number of matching items). If DynamoDB processes the
--   number of items up to the limit while processing the results, it stops
--   the operation and returns the matching values up to that point, and a
--   key in <tt>LastEvaluatedKey</tt> to apply in a subsequent operation,
--   so that you can pick up where you left off. Also, if the processed
--   data set size exceeds 1 MB before DynamoDB reaches this limit, it
--   stops the operation and returns the matching values up to the limit,
--   and a key in <tt>LastEvaluatedKey</tt> to apply in a subsequent
--   operation to continue the operation. For more information, see
--   <a>Query and Scan</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>qSelect</a> - The attributes to be returned in the result. You
--   can retrieve all item attributes, specific item attributes, the count
--   of matching items, or in the case of an index, some or all of the
--   attributes projected into the index. * <tt>ALL_ATTRIBUTES</tt> -
--   Returns all of the item attributes from the specified table or index.
--   If you query a local secondary index, then for each matching item in
--   the index DynamoDB will fetch the entire item from the parent table.
--   If the index is configured to project all item attributes, then all of
--   the data can be obtained from the local secondary index, and no
--   fetching is required. * <tt>ALL_PROJECTED_ATTRIBUTES</tt> - Allowed
--   only when querying an index. Retrieves all attributes that have been
--   projected into the index. If the index is configured to project all
--   attributes, this return value is equivalent to specifying
--   <tt>ALL_ATTRIBUTES</tt> . * <tt>COUNT</tt> - Returns the number of
--   matching items, rather than the matching items themselves. *
--   <tt>SPECIFIC_ATTRIBUTES</tt> - Returns only the attributes listed in
--   <tt>AttributesToGet</tt> . This return value is equivalent to
--   specifying <tt>AttributesToGet</tt> without specifying any value for
--   <tt>Select</tt> . If you query or scan a local secondary index and
--   request only attributes that are projected into that index, the
--   operation will read only the index and not the table. If any of the
--   requested attributes are not projected into the local secondary index,
--   DynamoDB will fetch each of these attributes from the parent table.
--   This extra fetching incurs additional throughput cost and latency. If
--   you query or scan a global secondary index, you can only request
--   attributes that are projected into the index. Global secondary index
--   queries cannot fetch attributes from the parent table. If neither
--   <tt>Select</tt> nor <tt>AttributesToGet</tt> are specified, DynamoDB
--   defaults to <tt>ALL_ATTRIBUTES</tt> when accessing a table, and
--   <tt>ALL_PROJECTED_ATTRIBUTES</tt> when accessing an index. You cannot
--   use both <tt>Select</tt> and <tt>AttributesToGet</tt> together in a
--   single request, unless the value for <tt>Select</tt> is
--   <tt>SPECIFIC_ATTRIBUTES</tt> . (This usage is equivalent to specifying
--   <tt>AttributesToGet</tt> without any value for <tt>Select</tt> .)</li>
--   <li><a>qKeyConditionExpression</a> - The condition that specifies the
--   key value(s) for items to be retrieved by the <tt>Query</tt> action.
--   The condition must perform an equality test on a single partition key
--   value. The condition can optionally perform one of several comparison
--   tests on a single sort key value. This allows <tt>Query</tt> to
--   retrieve one item with a given partition key value and sort key value,
--   or several items that have the same partition key value but different
--   sort key values. The partition key equality test is required, and must
--   be specified in the following format: <tt>partitionKeyName</tt>
--   <i>=</i> <tt>:partitionkeyval</tt> If you also want to provide a
--   condition for the sort key, it must be combined using <tt>AND</tt>
--   with the condition for the sort key. Following is an example, using
--   the <b>=</b> comparison operator for the sort key:
--   <tt>partitionKeyName</tt> <tt>=</tt> <tt>:partitionkeyval</tt>
--   <tt>AND</tt> <tt>sortKeyName</tt> <tt>=</tt> <tt>:sortkeyval</tt>
--   Valid comparisons for the sort key condition are as follows: *
--   <tt>sortKeyName</tt> <tt>=</tt> <tt>:sortkeyval</tt> - true if the
--   sort key value is equal to <tt>:sortkeyval</tt> . *
--   <tt>sortKeyName</tt> <tt>&lt;</tt> <tt>:sortkeyval</tt> - true if the
--   sort key value is less than <tt>:sortkeyval</tt> . *
--   <tt>sortKeyName</tt> <tt>&lt;=</tt> <tt>:sortkeyval</tt> - true if the
--   sort key value is less than or equal to <tt>:sortkeyval</tt> . *
--   <tt>sortKeyName</tt> <tt>&gt;</tt> <tt>:sortkeyval</tt> - true if the
--   sort key value is greater than <tt>:sortkeyval</tt> . *
--   <tt>sortKeyName</tt> <tt>&gt;= </tt> <tt>:sortkeyval</tt> - true if
--   the sort key value is greater than or equal to <tt>:sortkeyval</tt> .
--   * <tt>sortKeyName</tt> <tt>BETWEEN</tt> <tt>:sortkeyval1</tt>
--   <tt>AND</tt> <tt>:sortkeyval2</tt> - true if the sort key value is
--   greater than or equal to <tt>:sortkeyval1</tt> , and less than or
--   equal to <tt>:sortkeyval2</tt> . * <tt>begins_with (</tt>
--   <tt>sortKeyName</tt> , <tt>:sortkeyval</tt> <tt>)</tt> - true if the
--   sort key value begins with a particular operand. (You cannot use this
--   function with a sort key that is of type Number.) Note that the
--   function name <tt>begins_with</tt> is case-sensitive. Use the
--   <tt>ExpressionAttributeValues</tt> parameter to replace tokens such as
--   <tt>:partitionval</tt> and <tt>:sortval</tt> with actual values at
--   runtime. You can optionally use the <tt>ExpressionAttributeNames</tt>
--   parameter to replace the names of the partition key and sort key with
--   placeholder tokens. This option might be necessary if an attribute
--   name conflicts with a DynamoDB reserved word. For example, the
--   following <tt>KeyConditionExpression</tt> parameter causes an error
--   because <i>Size</i> is a reserved word: * <tt>Size = :myval</tt> To
--   work around this, define a placeholder (such a <tt>#S</tt> ) to
--   represent the attribute name <i>Size</i> .
--   <tt>KeyConditionExpression</tt> then is as follows: * <tt>#S =
--   :myval</tt> For a list of reserved words, see <a>Reserved Words</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> . For more information on
--   <tt>ExpressionAttributeNames</tt> and
--   <tt>ExpressionAttributeValues</tt> , see <a>Using Placeholders for
--   Attribute Names and Values</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>qConditionalOperator</a> - This is a legacy parameter. Use
--   <tt>FilterExpression</tt> instead. For more information, see
--   <a>ConditionalOperator</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>qExclusiveStartKey</a> - The primary key of the first item that
--   this operation will evaluate. Use the value that was returned for
--   <tt>LastEvaluatedKey</tt> in the previous operation. The data type for
--   <tt>ExclusiveStartKey</tt> must be String, Number or Binary. No set
--   data types are allowed.</li>
--   <li><a>qIndexName</a> - The name of an index to query. This index can
--   be any local secondary index or global secondary index on the table.
--   Note that if you use the <tt>IndexName</tt> parameter, you must also
--   provide <tt>TableName.</tt></li>
--   <li><a>qTableName</a> - The name of the table containing the requested
--   items.</li>
--   </ul>
query :: Text -> Query

-- | Represents the input of a <tt>Query</tt> operation.
--   
--   <i>See:</i> <a>query</a> smart constructor.
data Query

-- | This is a legacy parameter. Use <tt>KeyConditionExpression</tt>
--   instead. For more information, see <a>KeyConditions</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
qKeyConditions :: Lens' Query (HashMap Text Condition)

-- | A string that identifies one or more attributes to retrieve from the
--   table. These attributes can include scalars, sets, or elements of a
--   JSON document. The attributes in the expression must be separated by
--   commas. If no attribute names are specified, then all attributes will
--   be returned. If any of the requested attributes are not found, they
--   will not appear in the result. For more information, see <a>Accessing
--   Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
qProjectionExpression :: Lens' Query (Maybe Text)

-- | This is a legacy parameter. Use <tt>ProjectionExpression</tt> instead.
--   For more information, see <a>AttributesToGet</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
qAttributesToGet :: Lens' Query (Maybe (NonEmpty Text))

-- | One or more substitution tokens for attribute names in an expression.
--   The following are some use cases for using
--   <tt>ExpressionAttributeNames</tt> : * To access an attribute whose
--   name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
qExpressionAttributeNames :: Lens' Query (HashMap Text Text)

-- | A string that contains conditions that DynamoDB applies after the
--   <tt>Query</tt> operation, but before the data is returned to you.
--   Items that do not satisfy the <tt>FilterExpression</tt> criteria are
--   not returned. A <tt>FilterExpression</tt> does not allow key
--   attributes. You cannot define a filter expression based on a partition
--   key or a sort key. For more information, see <a>Filter Expressions</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
qFilterExpression :: Lens' Query (Maybe Text)

-- | This is a legacy parameter. Use <tt>FilterExpression</tt> instead. For
--   more information, see <a>QueryFilter</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
qQueryFilter :: Lens' Query (HashMap Text Condition)

-- | Determines the read consistency model: If set to <tt>true</tt> , then
--   the operation uses strongly consistent reads; otherwise, the operation
--   uses eventually consistent reads. Strongly consistent reads are not
--   supported on global secondary indexes. If you query a global secondary
--   index with <tt>ConsistentRead</tt> set to <tt>true</tt> , you will
--   receive a <tt>ValidationException</tt> .
qConsistentRead :: Lens' Query (Maybe Bool)

-- | One or more values that can be substituted in an expression. Use the
--   <b>:</b> (colon) character in an expression to dereference an
--   attribute value. For example, suppose that you wanted to check whether
--   the value of the <i>ProductStatus</i> attribute was one of the
--   following: <tt>Available | Backordered | Discontinued</tt> You would
--   first need to specify <tt>ExpressionAttributeValues</tt> as follows:
--   <tt>{ ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
qExpressionAttributeValues :: Lens' Query (HashMap Text AttributeValue)

-- | Undocumented member.
qReturnConsumedCapacity :: Lens' Query (Maybe ReturnConsumedCapacity)

-- | Specifies the order for index traversal: If <tt>true</tt> (default),
--   the traversal is performed in ascending order; if <tt>false</tt> , the
--   traversal is performed in descending order. Items with the same
--   partition key value are stored in sorted order by sort key. If the
--   sort key data type is Number, the results are stored in numeric order.
--   For type String, the results are stored in order of UTF-8 bytes. For
--   type Binary, DynamoDB treats each byte of the binary data as unsigned.
--   If <tt>ScanIndexForward</tt> is <tt>true</tt> , DynamoDB returns the
--   results in the order in which they are stored (by sort key value).
--   This is the default behavior. If <tt>ScanIndexForward</tt> is
--   <tt>false</tt> , DynamoDB reads the results in reverse order by sort
--   key value, and then returns the results to the client.
qScanIndexForward :: Lens' Query (Maybe Bool)

-- | The maximum number of items to evaluate (not necessarily the number of
--   matching items). If DynamoDB processes the number of items up to the
--   limit while processing the results, it stops the operation and returns
--   the matching values up to that point, and a key in
--   <tt>LastEvaluatedKey</tt> to apply in a subsequent operation, so that
--   you can pick up where you left off. Also, if the processed data set
--   size exceeds 1 MB before DynamoDB reaches this limit, it stops the
--   operation and returns the matching values up to the limit, and a key
--   in <tt>LastEvaluatedKey</tt> to apply in a subsequent operation to
--   continue the operation. For more information, see <a>Query and
--   Scan</a> in the <i>Amazon DynamoDB Developer Guide</i> .
qLimit :: Lens' Query (Maybe Natural)

-- | The attributes to be returned in the result. You can retrieve all item
--   attributes, specific item attributes, the count of matching items, or
--   in the case of an index, some or all of the attributes projected into
--   the index. * <tt>ALL_ATTRIBUTES</tt> - Returns all of the item
--   attributes from the specified table or index. If you query a local
--   secondary index, then for each matching item in the index DynamoDB
--   will fetch the entire item from the parent table. If the index is
--   configured to project all item attributes, then all of the data can be
--   obtained from the local secondary index, and no fetching is required.
--   * <tt>ALL_PROJECTED_ATTRIBUTES</tt> - Allowed only when querying an
--   index. Retrieves all attributes that have been projected into the
--   index. If the index is configured to project all attributes, this
--   return value is equivalent to specifying <tt>ALL_ATTRIBUTES</tt> . *
--   <tt>COUNT</tt> - Returns the number of matching items, rather than the
--   matching items themselves. * <tt>SPECIFIC_ATTRIBUTES</tt> - Returns
--   only the attributes listed in <tt>AttributesToGet</tt> . This return
--   value is equivalent to specifying <tt>AttributesToGet</tt> without
--   specifying any value for <tt>Select</tt> . If you query or scan a
--   local secondary index and request only attributes that are projected
--   into that index, the operation will read only the index and not the
--   table. If any of the requested attributes are not projected into the
--   local secondary index, DynamoDB will fetch each of these attributes
--   from the parent table. This extra fetching incurs additional
--   throughput cost and latency. If you query or scan a global secondary
--   index, you can only request attributes that are projected into the
--   index. Global secondary index queries cannot fetch attributes from the
--   parent table. If neither <tt>Select</tt> nor <tt>AttributesToGet</tt>
--   are specified, DynamoDB defaults to <tt>ALL_ATTRIBUTES</tt> when
--   accessing a table, and <tt>ALL_PROJECTED_ATTRIBUTES</tt> when
--   accessing an index. You cannot use both <tt>Select</tt> and
--   <tt>AttributesToGet</tt> together in a single request, unless the
--   value for <tt>Select</tt> is <tt>SPECIFIC_ATTRIBUTES</tt> . (This
--   usage is equivalent to specifying <tt>AttributesToGet</tt> without any
--   value for <tt>Select</tt> .)
qSelect :: Lens' Query (Maybe Select)

-- | The condition that specifies the key value(s) for items to be
--   retrieved by the <tt>Query</tt> action. The condition must perform an
--   equality test on a single partition key value. The condition can
--   optionally perform one of several comparison tests on a single sort
--   key value. This allows <tt>Query</tt> to retrieve one item with a
--   given partition key value and sort key value, or several items that
--   have the same partition key value but different sort key values. The
--   partition key equality test is required, and must be specified in the
--   following format: <tt>partitionKeyName</tt> <i>=</i>
--   <tt>:partitionkeyval</tt> If you also want to provide a condition for
--   the sort key, it must be combined using <tt>AND</tt> with the
--   condition for the sort key. Following is an example, using the
--   <b>=</b> comparison operator for the sort key:
--   <tt>partitionKeyName</tt> <tt>=</tt> <tt>:partitionkeyval</tt>
--   <tt>AND</tt> <tt>sortKeyName</tt> <tt>=</tt> <tt>:sortkeyval</tt>
--   Valid comparisons for the sort key condition are as follows: *
--   <tt>sortKeyName</tt> <tt>=</tt> <tt>:sortkeyval</tt> - true if the
--   sort key value is equal to <tt>:sortkeyval</tt> . *
--   <tt>sortKeyName</tt> <tt>&lt;</tt> <tt>:sortkeyval</tt> - true if the
--   sort key value is less than <tt>:sortkeyval</tt> . *
--   <tt>sortKeyName</tt> <tt>&lt;=</tt> <tt>:sortkeyval</tt> - true if the
--   sort key value is less than or equal to <tt>:sortkeyval</tt> . *
--   <tt>sortKeyName</tt> <tt>&gt;</tt> <tt>:sortkeyval</tt> - true if the
--   sort key value is greater than <tt>:sortkeyval</tt> . *
--   <tt>sortKeyName</tt> <tt>&gt;= </tt> <tt>:sortkeyval</tt> - true if
--   the sort key value is greater than or equal to <tt>:sortkeyval</tt> .
--   * <tt>sortKeyName</tt> <tt>BETWEEN</tt> <tt>:sortkeyval1</tt>
--   <tt>AND</tt> <tt>:sortkeyval2</tt> - true if the sort key value is
--   greater than or equal to <tt>:sortkeyval1</tt> , and less than or
--   equal to <tt>:sortkeyval2</tt> . * <tt>begins_with (</tt>
--   <tt>sortKeyName</tt> , <tt>:sortkeyval</tt> <tt>)</tt> - true if the
--   sort key value begins with a particular operand. (You cannot use this
--   function with a sort key that is of type Number.) Note that the
--   function name <tt>begins_with</tt> is case-sensitive. Use the
--   <tt>ExpressionAttributeValues</tt> parameter to replace tokens such as
--   <tt>:partitionval</tt> and <tt>:sortval</tt> with actual values at
--   runtime. You can optionally use the <tt>ExpressionAttributeNames</tt>
--   parameter to replace the names of the partition key and sort key with
--   placeholder tokens. This option might be necessary if an attribute
--   name conflicts with a DynamoDB reserved word. For example, the
--   following <tt>KeyConditionExpression</tt> parameter causes an error
--   because <i>Size</i> is a reserved word: * <tt>Size = :myval</tt> To
--   work around this, define a placeholder (such a <tt>#S</tt> ) to
--   represent the attribute name <i>Size</i> .
--   <tt>KeyConditionExpression</tt> then is as follows: * <tt>#S =
--   :myval</tt> For a list of reserved words, see <a>Reserved Words</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> . For more information on
--   <tt>ExpressionAttributeNames</tt> and
--   <tt>ExpressionAttributeValues</tt> , see <a>Using Placeholders for
--   Attribute Names and Values</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .
qKeyConditionExpression :: Lens' Query (Maybe Text)

-- | This is a legacy parameter. Use <tt>FilterExpression</tt> instead. For
--   more information, see <a>ConditionalOperator</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
qConditionalOperator :: Lens' Query (Maybe ConditionalOperator)

-- | The primary key of the first item that this operation will evaluate.
--   Use the value that was returned for <tt>LastEvaluatedKey</tt> in the
--   previous operation. The data type for <tt>ExclusiveStartKey</tt> must
--   be String, Number or Binary. No set data types are allowed.
qExclusiveStartKey :: Lens' Query (HashMap Text AttributeValue)

-- | The name of an index to query. This index can be any local secondary
--   index or global secondary index on the table. Note that if you use the
--   <tt>IndexName</tt> parameter, you must also provide
--   <tt>TableName.</tt>
qIndexName :: Lens' Query (Maybe Text)

-- | The name of the table containing the requested items.
qTableName :: Lens' Query Text

-- | Creates a value of <a>QueryResponse</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>qrsLastEvaluatedKey</a> - The primary key of the item where the
--   operation stopped, inclusive of the previous result set. Use this
--   value to start a new operation, excluding this value in the new
--   request. If <tt>LastEvaluatedKey</tt> is empty, then the "last page"
--   of results has been processed and there is no more data to be
--   retrieved. If <tt>LastEvaluatedKey</tt> is not empty, it does not
--   necessarily mean that there is more data in the result set. The only
--   way to know when you have reached the end of the result set is when
--   <tt>LastEvaluatedKey</tt> is empty.</li>
--   <li><a>qrsCount</a> - The number of items in the response. If you used
--   a <tt>QueryFilter</tt> in the request, then <tt>Count</tt> is the
--   number of items returned after the filter was applied, and
--   <tt>ScannedCount</tt> is the number of matching items before the
--   filter was applied. If you did not use a filter in the request, then
--   <tt>Count</tt> and <tt>ScannedCount</tt> are the same.</li>
--   <li><a>qrsScannedCount</a> - The number of items evaluated, before any
--   <tt>QueryFilter</tt> is applied. A high <tt>ScannedCount</tt> value
--   with few, or no, <tt>Count</tt> results indicates an inefficient
--   <tt>Query</tt> operation. For more information, see <a>Count and
--   ScannedCount</a> in the <i>Amazon DynamoDB Developer Guide</i> . If
--   you did not use a filter in the request, then <tt>ScannedCount</tt> is
--   the same as <tt>Count</tt> .</li>
--   <li><a>qrsItems</a> - An array of item attributes that match the query
--   criteria. Each element in this array consists of an attribute name and
--   the value for that attribute.</li>
--   <li><a>qrsConsumedCapacity</a> - The capacity units consumed by the
--   <tt>Query</tt> operation. The data returned includes the total
--   provisioned throughput consumed, along with statistics for the table
--   and any indexes involved in the operation. <tt>ConsumedCapacity</tt>
--   is only returned if the <tt>ReturnConsumedCapacity</tt> parameter was
--   specified For more information, see <a>Provisioned Throughput</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>qrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
queryResponse :: Int -> QueryResponse

-- | Represents the output of a <tt>Query</tt> operation.
--   
--   <i>See:</i> <a>queryResponse</a> smart constructor.
data QueryResponse

-- | The primary key of the item where the operation stopped, inclusive of
--   the previous result set. Use this value to start a new operation,
--   excluding this value in the new request. If <tt>LastEvaluatedKey</tt>
--   is empty, then the "last page" of results has been processed and there
--   is no more data to be retrieved. If <tt>LastEvaluatedKey</tt> is not
--   empty, it does not necessarily mean that there is more data in the
--   result set. The only way to know when you have reached the end of the
--   result set is when <tt>LastEvaluatedKey</tt> is empty.
qrsLastEvaluatedKey :: Lens' QueryResponse (HashMap Text AttributeValue)

-- | The number of items in the response. If you used a
--   <tt>QueryFilter</tt> in the request, then <tt>Count</tt> is the number
--   of items returned after the filter was applied, and
--   <tt>ScannedCount</tt> is the number of matching items before the
--   filter was applied. If you did not use a filter in the request, then
--   <tt>Count</tt> and <tt>ScannedCount</tt> are the same.
qrsCount :: Lens' QueryResponse (Maybe Int)

-- | The number of items evaluated, before any <tt>QueryFilter</tt> is
--   applied. A high <tt>ScannedCount</tt> value with few, or no,
--   <tt>Count</tt> results indicates an inefficient <tt>Query</tt>
--   operation. For more information, see <a>Count and ScannedCount</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> . If you did not use a
--   filter in the request, then <tt>ScannedCount</tt> is the same as
--   <tt>Count</tt> .
qrsScannedCount :: Lens' QueryResponse (Maybe Int)

-- | An array of item attributes that match the query criteria. Each
--   element in this array consists of an attribute name and the value for
--   that attribute.
qrsItems :: Lens' QueryResponse [HashMap Text AttributeValue]

-- | The capacity units consumed by the <tt>Query</tt> operation. The data
--   returned includes the total provisioned throughput consumed, along
--   with statistics for the table and any indexes involved in the
--   operation. <tt>ConsumedCapacity</tt> is only returned if the
--   <tt>ReturnConsumedCapacity</tt> parameter was specified For more
--   information, see <a>Provisioned Throughput</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
qrsConsumedCapacity :: Lens' QueryResponse (Maybe ConsumedCapacity)

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


-- | Creates a new item, or replaces an old item with a new item. If an
--   item that has the same primary key as the new item already exists in
--   the specified table, the new item completely replaces the existing
--   item. You can perform a conditional put operation (add a new item if
--   one with the specified primary key doesn't exist), or replace an
--   existing item if it has certain attribute values. You can return the
--   item's attribute values in the same operation, using the
--   <tt>ReturnValues</tt> parameter.
--   
--   <i>Important:</i> This topic provides general information about the
--   <tt>PutItem</tt> API.
--   
--   For information on how to call the <tt>PutItem</tt> API using the AWS
--   SDK in specific languages, see the following:
--   
--   <ul>
--   <li><a>PutItem in the AWS Command Line Interface</a></li>
--   <li><a>PutItem in the AWS SDK for .NET</a></li>
--   <li><a>PutItem in the AWS SDK for C++</a></li>
--   <li><a>PutItem in the AWS SDK for Go</a></li>
--   <li><a>PutItem in the AWS SDK for Java</a></li>
--   <li><a>PutItem in the AWS SDK for JavaScript</a></li>
--   <li><a>PutItem in the AWS SDK for PHP V3</a></li>
--   <li><a>PutItem in the AWS SDK for Python</a></li>
--   <li><a>PutItem in the AWS SDK for Ruby V2</a></li>
--   </ul>
--   
--   When you add an item, the primary key attribute(s) are the only
--   required attributes. Attribute values cannot be null. String and
--   Binary type attributes must have lengths greater than zero. Set type
--   attributes cannot be empty. Requests with empty values will be
--   rejected with a <tt>ValidationException</tt> exception.
--   
--   For more information about <tt>PutItem</tt> , see <a>Working with
--   Items</a> in the <i>Amazon DynamoDB Developer Guide</i> .
module Network.AWS.DynamoDB.PutItem

-- | Creates a value of <a>PutItem</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>piExpressionAttributeNames</a> - One or more substitution
--   tokens for attribute names in an expression. The following are some
--   use cases for using <tt>ExpressionAttributeNames</tt> : * To access an
--   attribute whose name conflicts with a DynamoDB reserved word. * To
--   create a placeholder for repeating occurrences of an attribute name in
--   an expression. * To prevent special characters in an attribute name
--   from being misinterpreted in an expression. Use the <b>#</b> character
--   in an expression to dereference an attribute name. For example,
--   consider the following attribute name: * <tt>Percentile</tt> The name
--   of this attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>piReturnValues</a> - Use <tt>ReturnValues</tt> if you want to
--   get the item attributes as they appeared before they were updated with
--   the <tt>PutItem</tt> request. For <tt>PutItem</tt> , the valid values
--   are: * <tt>NONE</tt> - If <tt>ReturnValues</tt> is not specified, or
--   if its value is <tt>NONE</tt> , then nothing is returned. (This
--   setting is the default for <tt>ReturnValues</tt> .) * <tt>ALL_OLD</tt>
--   - If <tt>PutItem</tt> overwrote an attribute name-value pair, then the
--   content of the old item is returned.</li>
--   <li><a>piExpressionAttributeValues</a> - One or more values that can
--   be substituted in an expression. Use the <b>:</b> (colon) character in
--   an expression to dereference an attribute value. For example, suppose
--   that you wanted to check whether the value of the <i>ProductStatus</i>
--   attribute was one of the following: <tt>Available | Backordered |
--   Discontinued</tt> You would first need to specify
--   <tt>ExpressionAttributeValues</tt> as follows: <tt>{
--   ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>piReturnConsumedCapacity</a> - Undocumented member.</li>
--   <li><a>piReturnItemCollectionMetrics</a> - Determines whether item
--   collection metrics are returned. If set to <tt>SIZE</tt> , the
--   response includes statistics about item collections, if any, that were
--   modified during the operation are returned in the response. If set to
--   <tt>NONE</tt> (the default), no statistics are returned.</li>
--   <li><a>piConditionExpression</a> - A condition that must be satisfied
--   in order for a conditional <tt>PutItem</tt> operation to succeed. An
--   expression can contain any of the following: * Functions:
--   <tt>attribute_exists | attribute_not_exists | attribute_type |
--   contains | begins_with | size</tt> These function names are
--   case-sensitive. * Comparison operators: <tt>= | &lt;&gt; | <a>|</a> |
--   <a>|</a>= | BETWEEN | IN </tt> * Logical operators: <tt>AND | OR |
--   NOT</tt> For more information on condition expressions, see
--   <a>Specifying Conditions</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>piConditionalOperator</a> - This is a legacy parameter. Use
--   <tt>ConditionExpression</tt> instead. For more information, see
--   <a>ConditionalOperator</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>piExpected</a> - This is a legacy parameter. Use
--   <tt>ConditionExpression</tt> instead. For more information, see
--   <a>Expected</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>piTableName</a> - The name of the table to contain the
--   item.</li>
--   <li><a>piItem</a> - A map of attribute name<i>value pairs, one for
--   each attribute. Only the primary key attributes are required; you can
--   optionally provide other attribute name-value pairs for the item. You
--   must provide all of the attributes for the primary key. For example,
--   with a simple primary key, you only need to provide a value for the
--   partition key. For a composite primary key, you must provide both
--   values for both the partition key and the sort key. If you specify any
--   attributes that are part of an index key, then the data types for
--   those attributes must match those of the schema in the table's
--   attribute definition. For more information about primary keys, see
--   &lt;http:</i><i>docs.aws.amazon.com</i>amazondynamodb<i>latest</i>developerguide<i>DataModel.html#DataModelPrimaryKey
--   Primary Key&gt; in the </i>Amazon DynamoDB Developer Guide/ . Each
--   element in the <tt>Item</tt> map is an <tt>AttributeValue</tt>
--   object.</li>
--   </ul>
putItem :: Text -> PutItem

-- | Represents the input of a <tt>PutItem</tt> operation.
--   
--   <i>See:</i> <a>putItem</a> smart constructor.
data PutItem

-- | One or more substitution tokens for attribute names in an expression.
--   The following are some use cases for using
--   <tt>ExpressionAttributeNames</tt> : * To access an attribute whose
--   name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
piExpressionAttributeNames :: Lens' PutItem (HashMap Text Text)

-- | Use <tt>ReturnValues</tt> if you want to get the item attributes as
--   they appeared before they were updated with the <tt>PutItem</tt>
--   request. For <tt>PutItem</tt> , the valid values are: * <tt>NONE</tt>
--   - If <tt>ReturnValues</tt> is not specified, or if its value is
--   <tt>NONE</tt> , then nothing is returned. (This setting is the default
--   for <tt>ReturnValues</tt> .) * <tt>ALL_OLD</tt> - If <tt>PutItem</tt>
--   overwrote an attribute name-value pair, then the content of the old
--   item is returned.
piReturnValues :: Lens' PutItem (Maybe ReturnValue)

-- | One or more values that can be substituted in an expression. Use the
--   <b>:</b> (colon) character in an expression to dereference an
--   attribute value. For example, suppose that you wanted to check whether
--   the value of the <i>ProductStatus</i> attribute was one of the
--   following: <tt>Available | Backordered | Discontinued</tt> You would
--   first need to specify <tt>ExpressionAttributeValues</tt> as follows:
--   <tt>{ ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
piExpressionAttributeValues :: Lens' PutItem (HashMap Text AttributeValue)

-- | Undocumented member.
piReturnConsumedCapacity :: Lens' PutItem (Maybe ReturnConsumedCapacity)

-- | Determines whether item collection metrics are returned. If set to
--   <tt>SIZE</tt> , the response includes statistics about item
--   collections, if any, that were modified during the operation are
--   returned in the response. If set to <tt>NONE</tt> (the default), no
--   statistics are returned.
piReturnItemCollectionMetrics :: Lens' PutItem (Maybe ReturnItemCollectionMetrics)

-- | A condition that must be satisfied in order for a conditional
--   <tt>PutItem</tt> operation to succeed. An expression can contain any
--   of the following: * Functions: <tt>attribute_exists |
--   attribute_not_exists | attribute_type | contains | begins_with |
--   size</tt> These function names are case-sensitive. * Comparison
--   operators: <tt>= | &lt;&gt; | <a>|</a> | <a>|</a>= | BETWEEN | IN
--   </tt> * Logical operators: <tt>AND | OR | NOT</tt> For more
--   information on condition expressions, see <a>Specifying Conditions</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
piConditionExpression :: Lens' PutItem (Maybe Text)

-- | This is a legacy parameter. Use <tt>ConditionExpression</tt> instead.
--   For more information, see <a>ConditionalOperator</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
piConditionalOperator :: Lens' PutItem (Maybe ConditionalOperator)

-- | This is a legacy parameter. Use <tt>ConditionExpression</tt> instead.
--   For more information, see <a>Expected</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
piExpected :: Lens' PutItem (HashMap Text ExpectedAttributeValue)

-- | The name of the table to contain the item.
piTableName :: Lens' PutItem Text

-- | A map of attribute name<i>value pairs, one for each attribute. Only
--   the primary key attributes are required; you can optionally provide
--   other attribute name-value pairs for the item. You must provide all of
--   the attributes for the primary key. For example, with a simple primary
--   key, you only need to provide a value for the partition key. For a
--   composite primary key, you must provide both values for both the
--   partition key and the sort key. If you specify any attributes that are
--   part of an index key, then the data types for those attributes must
--   match those of the schema in the table's attribute definition. For
--   more information about primary keys, see
--   &lt;http:</i><i>docs.aws.amazon.com</i>amazondynamodb<i>latest</i>developerguide<i>DataModel.html#DataModelPrimaryKey
--   Primary Key&gt; in the </i>Amazon DynamoDB Developer Guide/ . Each
--   element in the <tt>Item</tt> map is an <tt>AttributeValue</tt> object.
piItem :: Lens' PutItem (HashMap Text AttributeValue)

-- | Creates a value of <a>PutItemResponse</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>pirsItemCollectionMetrics</a> - Information about item
--   collections, if any, that were affected by the <tt>PutItem</tt>
--   operation. <tt>ItemCollectionMetrics</tt> is only returned if the
--   <tt>ReturnItemCollectionMetrics</tt> parameter was specified. If the
--   table does not have any local secondary indexes, this information is
--   not returned in the response. Each <tt>ItemCollectionMetrics</tt>
--   element consists of: * <tt>ItemCollectionKey</tt> - The partition key
--   value of the item collection. This is the same as the partition key
--   value of the item itself. * <tt>SizeEstimateRangeGB</tt> - An estimate
--   of item collection size, in gigabytes. This value is a two-element
--   array containing a lower bound and an upper bound for the estimate.
--   The estimate includes the size of all the items in the table, plus the
--   size of all attributes projected into all of the local secondary
--   indexes on that table. Use this estimate to measure whether a local
--   secondary index is approaching its size limit. The estimate is subject
--   to change over time; therefore, do not rely on the precision or
--   accuracy of the estimate.</li>
--   <li><a>pirsConsumedCapacity</a> - The capacity units consumed by the
--   <tt>PutItem</tt> operation. The data returned includes the total
--   provisioned throughput consumed, along with statistics for the table
--   and any indexes involved in the operation. <tt>ConsumedCapacity</tt>
--   is only returned if the <tt>ReturnConsumedCapacity</tt> parameter was
--   specified. For more information, see <a>Provisioned Throughput</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>pirsAttributes</a> - The attribute values as they appeared
--   before the <tt>PutItem</tt> operation, but only if
--   <tt>ReturnValues</tt> is specified as <tt>ALL_OLD</tt> in the request.
--   Each element consists of an attribute name and an attribute
--   value.</li>
--   <li><a>pirsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
putItemResponse :: Int -> PutItemResponse

-- | Represents the output of a <tt>PutItem</tt> operation.
--   
--   <i>See:</i> <a>putItemResponse</a> smart constructor.
data PutItemResponse

-- | Information about item collections, if any, that were affected by the
--   <tt>PutItem</tt> operation. <tt>ItemCollectionMetrics</tt> is only
--   returned if the <tt>ReturnItemCollectionMetrics</tt> parameter was
--   specified. If the table does not have any local secondary indexes,
--   this information is not returned in the response. Each
--   <tt>ItemCollectionMetrics</tt> element consists of: *
--   <tt>ItemCollectionKey</tt> - The partition key value of the item
--   collection. This is the same as the partition key value of the item
--   itself. * <tt>SizeEstimateRangeGB</tt> - An estimate of item
--   collection size, in gigabytes. This value is a two-element array
--   containing a lower bound and an upper bound for the estimate. The
--   estimate includes the size of all the items in the table, plus the
--   size of all attributes projected into all of the local secondary
--   indexes on that table. Use this estimate to measure whether a local
--   secondary index is approaching its size limit. The estimate is subject
--   to change over time; therefore, do not rely on the precision or
--   accuracy of the estimate.
pirsItemCollectionMetrics :: Lens' PutItemResponse (Maybe ItemCollectionMetrics)

-- | The capacity units consumed by the <tt>PutItem</tt> operation. The
--   data returned includes the total provisioned throughput consumed,
--   along with statistics for the table and any indexes involved in the
--   operation. <tt>ConsumedCapacity</tt> is only returned if the
--   <tt>ReturnConsumedCapacity</tt> parameter was specified. For more
--   information, see <a>Provisioned Throughput</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
pirsConsumedCapacity :: Lens' PutItemResponse (Maybe ConsumedCapacity)

-- | The attribute values as they appeared before the <tt>PutItem</tt>
--   operation, but only if <tt>ReturnValues</tt> is specified as
--   <tt>ALL_OLD</tt> in the request. Each element consists of an attribute
--   name and an attribute value.
pirsAttributes :: Lens' PutItemResponse (HashMap Text AttributeValue)

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


-- | List all tags on an Amazon DynamoDB resource. You can call
--   ListTagsOfResource up to 10 times per second, per account.
--   
--   For an overview on tagging DynamoDB resources, see <a>Tagging for
--   DynamoDB</a> in the <i>Amazon DynamoDB Developer Guide</i> .
module Network.AWS.DynamoDB.ListTagsOfResource

-- | Creates a value of <a>ListTagsOfResource</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>ltorNextToken</a> - An optional string that, if supplied, must
--   be copied from the output of a previous call to ListTagOfResource.
--   When provided in this manner, this API fetches the next page of
--   results.</li>
--   <li><a>ltorResourceARN</a> - The Amazon DynamoDB resource with tags to
--   be listed. This value is an Amazon Resource Name (ARN).</li>
--   </ul>
listTagsOfResource :: Text -> ListTagsOfResource

-- | <i>See:</i> <a>listTagsOfResource</a> smart constructor.
data ListTagsOfResource

-- | An optional string that, if supplied, must be copied from the output
--   of a previous call to ListTagOfResource. When provided in this manner,
--   this API fetches the next page of results.
ltorNextToken :: Lens' ListTagsOfResource (Maybe Text)

-- | The Amazon DynamoDB resource with tags to be listed. This value is an
--   Amazon Resource Name (ARN).
ltorResourceARN :: Lens' ListTagsOfResource Text

-- | Creates a value of <a>ListTagsOfResourceResponse</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>ltorrsNextToken</a> - If this value is returned, there are
--   additional results to be displayed. To retrieve them, call
--   ListTagsOfResource again, with NextToken set to this value.</li>
--   <li><a>ltorrsTags</a> - The tags currently associated with the Amazon
--   DynamoDB resource.</li>
--   <li><a>ltorrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listTagsOfResourceResponse :: Int -> ListTagsOfResourceResponse

-- | <i>See:</i> <a>listTagsOfResourceResponse</a> smart constructor.
data ListTagsOfResourceResponse

-- | If this value is returned, there are additional results to be
--   displayed. To retrieve them, call ListTagsOfResource again, with
--   NextToken set to this value.
ltorrsNextToken :: Lens' ListTagsOfResourceResponse (Maybe Text)

-- | The tags currently associated with the Amazon DynamoDB resource.
ltorrsTags :: Lens' ListTagsOfResourceResponse [Tag]

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


-- | Returns an array of table names associated with the current account
--   and endpoint. The output from <tt>ListTables</tt> is paginated, with
--   each page returning a maximum of 100 table names.
--   
--   This operation returns paginated results.
module Network.AWS.DynamoDB.ListTables

-- | Creates a value of <a>ListTables</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>ltExclusiveStartTableName</a> - The first table name that this
--   operation will evaluate. Use the value that was returned for
--   <tt>LastEvaluatedTableName</tt> in a previous operation, so that you
--   can obtain the next page of results.</li>
--   <li><a>ltLimit</a> - A maximum number of table names to return. If
--   this parameter is not specified, the limit is 100.</li>
--   </ul>
listTables :: ListTables

-- | Represents the input of a <tt>ListTables</tt> operation.
--   
--   <i>See:</i> <a>listTables</a> smart constructor.
data ListTables

-- | The first table name that this operation will evaluate. Use the value
--   that was returned for <tt>LastEvaluatedTableName</tt> in a previous
--   operation, so that you can obtain the next page of results.
ltExclusiveStartTableName :: Lens' ListTables (Maybe Text)

-- | A maximum number of table names to return. If this parameter is not
--   specified, the limit is 100.
ltLimit :: Lens' ListTables (Maybe Natural)

-- | Creates a value of <a>ListTablesResponse</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>ltrsLastEvaluatedTableName</a> - The name of the last table in
--   the current page of results. Use this value as the
--   <tt>ExclusiveStartTableName</tt> in a new request to obtain the next
--   page of results, until all the table names are returned. If you do not
--   receive a <tt>LastEvaluatedTableName</tt> value in the response, this
--   means that there are no more table names to be retrieved.</li>
--   <li><a>ltrsTableNames</a> - The names of the tables associated with
--   the current account at the current endpoint. The maximum size of this
--   array is 100. If <tt>LastEvaluatedTableName</tt> also appears in the
--   output, you can use this value as the <tt>ExclusiveStartTableName</tt>
--   parameter in a subsequent <tt>ListTables</tt> request and obtain the
--   next page of results.</li>
--   <li><a>ltrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listTablesResponse :: Int -> ListTablesResponse

-- | Represents the output of a <tt>ListTables</tt> operation.
--   
--   <i>See:</i> <a>listTablesResponse</a> smart constructor.
data ListTablesResponse

-- | The name of the last table in the current page of results. Use this
--   value as the <tt>ExclusiveStartTableName</tt> in a new request to
--   obtain the next page of results, until all the table names are
--   returned. If you do not receive a <tt>LastEvaluatedTableName</tt>
--   value in the response, this means that there are no more table names
--   to be retrieved.
ltrsLastEvaluatedTableName :: Lens' ListTablesResponse (Maybe Text)

-- | The names of the tables associated with the current account at the
--   current endpoint. The maximum size of this array is 100. If
--   <tt>LastEvaluatedTableName</tt> also appears in the output, you can
--   use this value as the <tt>ExclusiveStartTableName</tt> parameter in a
--   subsequent <tt>ListTables</tt> request and obtain the next page of
--   results.
ltrsTableNames :: Lens' ListTablesResponse [Text]

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


-- | Lists all global tables that have a replica in the specified region.
module Network.AWS.DynamoDB.ListGlobalTables

-- | Creates a value of <a>ListGlobalTables</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>lgtRegionName</a> - Lists the global tables in a specific
--   region.</li>
--   <li><a>lgtExclusiveStartGlobalTableName</a> - The first global table
--   name that this operation will evaluate.</li>
--   <li><a>lgtLimit</a> - The maximum number of table names to
--   return.</li>
--   </ul>
listGlobalTables :: ListGlobalTables

-- | <i>See:</i> <a>listGlobalTables</a> smart constructor.
data ListGlobalTables

-- | Lists the global tables in a specific region.
lgtRegionName :: Lens' ListGlobalTables (Maybe Text)

-- | The first global table name that this operation will evaluate.
lgtExclusiveStartGlobalTableName :: Lens' ListGlobalTables (Maybe Text)

-- | The maximum number of table names to return.
lgtLimit :: Lens' ListGlobalTables (Maybe Natural)

-- | Creates a value of <a>ListGlobalTablesResponse</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>lgtrsLastEvaluatedGlobalTableName</a> - Last evaluated global
--   table name.</li>
--   <li><a>lgtrsGlobalTables</a> - List of global table names.</li>
--   <li><a>lgtrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listGlobalTablesResponse :: Int -> ListGlobalTablesResponse

-- | <i>See:</i> <a>listGlobalTablesResponse</a> smart constructor.
data ListGlobalTablesResponse

-- | Last evaluated global table name.
lgtrsLastEvaluatedGlobalTableName :: Lens' ListGlobalTablesResponse (Maybe Text)

-- | List of global table names.
lgtrsGlobalTables :: Lens' ListGlobalTablesResponse [GlobalTable]

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


-- | List backups associated with an AWS account. To list backups for a
--   given table, specify <tt>TableName</tt> . <tt>ListBackups</tt> returns
--   a paginated list of results with at most 1MB worth of items in a page.
--   You can also specify a limit for the maximum number of entries to be
--   returned in a page.
--   
--   In the request, start time is inclusive but end time is exclusive.
--   Note that these limits are for the time at which the original backup
--   was requested.
--   
--   You can call <tt>ListBackups</tt> a maximum of 5 times per second.
--   
--   This operation returns paginated results.
module Network.AWS.DynamoDB.ListBackups

-- | Creates a value of <a>ListBackups</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>lbTimeRangeUpperBound</a> - Only backups created before this
--   time are listed. <tt>TimeRangeUpperBound</tt> is exclusive.</li>
--   <li><a>lbTimeRangeLowerBound</a> - Only backups created after this
--   time are listed. <tt>TimeRangeLowerBound</tt> is inclusive.</li>
--   <li><a>lbLimit</a> - Maximum number of backups to return at once.</li>
--   <li><a>lbExclusiveStartBackupARN</a> - <tt>LastEvaluatedBackupARN</tt>
--   returned by the previous ListBackups call.</li>
--   <li><a>lbTableName</a> - The backups from the table specified by
--   TableName are listed.</li>
--   </ul>
listBackups :: ListBackups

-- | <i>See:</i> <a>listBackups</a> smart constructor.
data ListBackups

-- | Only backups created before this time are listed.
--   <tt>TimeRangeUpperBound</tt> is exclusive.
lbTimeRangeUpperBound :: Lens' ListBackups (Maybe UTCTime)

-- | Only backups created after this time are listed.
--   <tt>TimeRangeLowerBound</tt> is inclusive.
lbTimeRangeLowerBound :: Lens' ListBackups (Maybe UTCTime)

-- | Maximum number of backups to return at once.
lbLimit :: Lens' ListBackups (Maybe Natural)

-- | <tt>LastEvaluatedBackupARN</tt> returned by the previous ListBackups
--   call.
lbExclusiveStartBackupARN :: Lens' ListBackups (Maybe Text)

-- | The backups from the table specified by TableName are listed.
lbTableName :: Lens' ListBackups (Maybe Text)

-- | Creates a value of <a>ListBackupsResponse</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>lbrsBackupSummaries</a> - List of <tt>BackupSummary</tt>
--   objects.</li>
--   <li><a>lbrsLastEvaluatedBackupARN</a> - Last evaluated BackupARN.</li>
--   <li><a>lbrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
listBackupsResponse :: Int -> ListBackupsResponse

-- | <i>See:</i> <a>listBackupsResponse</a> smart constructor.
data ListBackupsResponse

-- | List of <tt>BackupSummary</tt> objects.
lbrsBackupSummaries :: Lens' ListBackupsResponse [BackupSummary]

-- | Last evaluated BackupARN.
lbrsLastEvaluatedBackupARN :: Lens' ListBackupsResponse (Maybe Text)

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


-- | The <tt>GetItem</tt> operation returns a set of attributes for the
--   item with the given primary key. If there is no matching item,
--   <tt>GetItem</tt> does not return any data and there will be no
--   <tt>Item</tt> element in the response.
--   
--   <tt>GetItem</tt> provides an eventually consistent read by default. If
--   your application requires a strongly consistent read, set
--   <tt>ConsistentRead</tt> to <tt>true</tt> . Although a strongly
--   consistent read might take more time than an eventually consistent
--   read, it always returns the last updated value.
module Network.AWS.DynamoDB.GetItem

-- | Creates a value of <a>GetItem</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>giProjectionExpression</a> - A string that identifies one or
--   more attributes to retrieve from the table. These attributes can
--   include scalars, sets, or elements of a JSON document. The attributes
--   in the expression must be separated by commas. If no attribute names
--   are specified, then all attributes will be returned. If any of the
--   requested attributes are not found, they will not appear in the
--   result. For more information, see <a>Accessing Item Attributes</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>giAttributesToGet</a> - This is a legacy parameter. Use
--   <tt>ProjectionExpression</tt> instead. For more information, see
--   <a>AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>giExpressionAttributeNames</a> - One or more substitution
--   tokens for attribute names in an expression. The following are some
--   use cases for using <tt>ExpressionAttributeNames</tt> : * To access an
--   attribute whose name conflicts with a DynamoDB reserved word. * To
--   create a placeholder for repeating occurrences of an attribute name in
--   an expression. * To prevent special characters in an attribute name
--   from being misinterpreted in an expression. Use the <b>#</b> character
--   in an expression to dereference an attribute name. For example,
--   consider the following attribute name: * <tt>Percentile</tt> The name
--   of this attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>giConsistentRead</a> - Determines the read consistency model:
--   If set to <tt>true</tt> , then the operation uses strongly consistent
--   reads; otherwise, the operation uses eventually consistent reads.</li>
--   <li><a>giReturnConsumedCapacity</a> - Undocumented member.</li>
--   <li><a>giTableName</a> - The name of the table containing the
--   requested item.</li>
--   <li><a>giKey</a> - A map of attribute names to <tt>AttributeValue</tt>
--   objects, representing the primary key of the item to retrieve. For the
--   primary key, you must provide all of the attributes. For example, with
--   a simple primary key, you only need to provide a value for the
--   partition key. For a composite primary key, you must provide values
--   for both the partition key and the sort key.</li>
--   </ul>
getItem :: Text -> GetItem

-- | Represents the input of a <tt>GetItem</tt> operation.
--   
--   <i>See:</i> <a>getItem</a> smart constructor.
data GetItem

-- | A string that identifies one or more attributes to retrieve from the
--   table. These attributes can include scalars, sets, or elements of a
--   JSON document. The attributes in the expression must be separated by
--   commas. If no attribute names are specified, then all attributes will
--   be returned. If any of the requested attributes are not found, they
--   will not appear in the result. For more information, see <a>Accessing
--   Item Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
giProjectionExpression :: Lens' GetItem (Maybe Text)

-- | This is a legacy parameter. Use <tt>ProjectionExpression</tt> instead.
--   For more information, see <a>AttributesToGet</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
giAttributesToGet :: Lens' GetItem (Maybe (NonEmpty Text))

-- | One or more substitution tokens for attribute names in an expression.
--   The following are some use cases for using
--   <tt>ExpressionAttributeNames</tt> : * To access an attribute whose
--   name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
giExpressionAttributeNames :: Lens' GetItem (HashMap Text Text)

-- | Determines the read consistency model: If set to <tt>true</tt> , then
--   the operation uses strongly consistent reads; otherwise, the operation
--   uses eventually consistent reads.
giConsistentRead :: Lens' GetItem (Maybe Bool)

-- | Undocumented member.
giReturnConsumedCapacity :: Lens' GetItem (Maybe ReturnConsumedCapacity)

-- | The name of the table containing the requested item.
giTableName :: Lens' GetItem Text

-- | A map of attribute names to <tt>AttributeValue</tt> objects,
--   representing the primary key of the item to retrieve. For the primary
--   key, you must provide all of the attributes. For example, with a
--   simple primary key, you only need to provide a value for the partition
--   key. For a composite primary key, you must provide values for both the
--   partition key and the sort key.
giKey :: Lens' GetItem (HashMap Text AttributeValue)

-- | Creates a value of <a>GetItemResponse</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>girsConsumedCapacity</a> - The capacity units consumed by the
--   <tt>GetItem</tt> operation. The data returned includes the total
--   provisioned throughput consumed, along with statistics for the table
--   and any indexes involved in the operation. <tt>ConsumedCapacity</tt>
--   is only returned if the <tt>ReturnConsumedCapacity</tt> parameter was
--   specified. For more information, see <a>Provisioned Throughput</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>girsItem</a> - A map of attribute names to
--   <tt>AttributeValue</tt> objects, as specified by
--   <tt>ProjectionExpression</tt> .</li>
--   <li><a>girsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
getItemResponse :: Int -> GetItemResponse

-- | Represents the output of a <tt>GetItem</tt> operation.
--   
--   <i>See:</i> <a>getItemResponse</a> smart constructor.
data GetItemResponse

-- | The capacity units consumed by the <tt>GetItem</tt> operation. The
--   data returned includes the total provisioned throughput consumed,
--   along with statistics for the table and any indexes involved in the
--   operation. <tt>ConsumedCapacity</tt> is only returned if the
--   <tt>ReturnConsumedCapacity</tt> parameter was specified. For more
--   information, see <a>Provisioned Throughput</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
girsConsumedCapacity :: Lens' GetItemResponse (Maybe ConsumedCapacity)

-- | A map of attribute names to <tt>AttributeValue</tt> objects, as
--   specified by <tt>ProjectionExpression</tt> .
girsItem :: Lens' GetItemResponse (HashMap Text AttributeValue)

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


-- | Gives a description of the Time to Live (TTL) status on the specified
--   table.
module Network.AWS.DynamoDB.DescribeTimeToLive

-- | Creates a value of <a>DescribeTimeToLive</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>dttlTableName</a> - The name of the table to be described.</li>
--   </ul>
describeTimeToLive :: Text -> DescribeTimeToLive

-- | <i>See:</i> <a>describeTimeToLive</a> smart constructor.
data DescribeTimeToLive

-- | The name of the table to be described.
dttlTableName :: Lens' DescribeTimeToLive Text

-- | Creates a value of <a>DescribeTimeToLiveResponse</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>dttlrsTimeToLiveDescription</a> -</li>
--   <li><a>dttlrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
describeTimeToLiveResponse :: Int -> DescribeTimeToLiveResponse

-- | <i>See:</i> <a>describeTimeToLiveResponse</a> smart constructor.
data DescribeTimeToLiveResponse

dttlrsTimeToLiveDescription :: Lens' DescribeTimeToLiveResponse (Maybe TimeToLiveDescription)

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


-- | Returns information about the table, including the current status of
--   the table, when it was created, the primary key schema, and any
--   indexes on the table.
module Network.AWS.DynamoDB.DescribeTable

-- | Creates a value of <a>DescribeTable</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>dTableName</a> - The name of the table to describe.</li>
--   </ul>
describeTable :: Text -> DescribeTable

-- | Represents the input of a <tt>DescribeTable</tt> operation.
--   
--   <i>See:</i> <a>describeTable</a> smart constructor.
data DescribeTable

-- | The name of the table to describe.
dTableName :: Lens' DescribeTable Text

-- | Creates a value of <a>DescribeTableResponse</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>drsTable</a> - The properties of the table.</li>
--   <li><a>drsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
describeTableResponse :: Int -> DescribeTableResponse

-- | Represents the output of a <tt>DescribeTable</tt> operation.
--   
--   <i>See:</i> <a>describeTableResponse</a> smart constructor.
data DescribeTableResponse

-- | The properties of the table.
drsTable :: Lens' DescribeTableResponse (Maybe TableDescription)

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


-- | Returns the current provisioned-capacity limits for your AWS account
--   in a region, both for the region as a whole and for any one DynamoDB
--   table that you create there.
--   
--   When you establish an AWS account, the account has initial limits on
--   the maximum read capacity units and write capacity units that you can
--   provision across all of your DynamoDB tables in a given region. Also,
--   there are per-table limits that apply when you create a table there.
--   For more information, see <a>Limits</a> page in the <i>Amazon DynamoDB
--   Developer Guide</i> .
--   
--   Although you can increase these limits by filing a case at <a>AWS
--   Support Center</a> , obtaining the increase is not instantaneous. The
--   <tt>DescribeLimits</tt> action lets you write code to compare the
--   capacity you are currently using to those limits imposed by your
--   account so that you have enough time to apply for an increase before
--   you hit a limit.
--   
--   For example, you could use one of the AWS SDKs to do the following:
--   
--   <ul>
--   <li>Call <tt>DescribeLimits</tt> for a particular region to obtain
--   your current account limits on provisioned capacity there.</li>
--   <li>Create a variable to hold the aggregate read capacity units
--   provisioned for all your tables in that region, and one to hold the
--   aggregate write capacity units. Zero them both.</li>
--   <li>Call <tt>ListTables</tt> to obtain a list of all your DynamoDB
--   tables.</li>
--   <li>For each table name listed by <tt>ListTables</tt> , do the
--   following:</li>
--   <li>Call <tt>DescribeTable</tt> with the table name.</li>
--   <li>Use the data returned by <tt>DescribeTable</tt> to add the read
--   capacity units and write capacity units provisioned for the table
--   itself to your variables.</li>
--   <li>If the table has one or more global secondary indexes (GSIs), loop
--   over these GSIs and add their provisioned capacity values to your
--   variables as well.</li>
--   <li>Report the account limits for that region returned by
--   <tt>DescribeLimits</tt> , along with the total current provisioned
--   capacity levels you have calculated.</li>
--   </ul>
--   
--   This will let you see whether you are getting close to your
--   account-level limits.
--   
--   The per-table limits apply only when you are creating a new table.
--   They restrict the sum of the provisioned capacity of the new table
--   itself and all its global secondary indexes.
--   
--   For existing tables and their GSIs, DynamoDB will not let you increase
--   provisioned capacity extremely rapidly, but the only upper limit that
--   applies is that the aggregate provisioned capacity over all your
--   tables and GSIs cannot exceed either of the per-account limits.
--   
--   The <tt>DescribeLimits</tt> Request element has no content.
module Network.AWS.DynamoDB.DescribeLimits

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

-- | Represents the input of a <tt>DescribeLimits</tt> operation. Has no
--   content.
--   
--   <i>See:</i> <a>describeLimits</a> smart constructor.
data DescribeLimits

-- | Creates a value of <a>DescribeLimitsResponse</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>dlrsTableMaxWriteCapacityUnits</a> - The maximum write capacity
--   units that your account allows you to provision for a new table that
--   you are creating in this region, including the write capacity units
--   provisioned for its global secondary indexes (GSIs).</li>
--   <li><a>dlrsTableMaxReadCapacityUnits</a> - The maximum read capacity
--   units that your account allows you to provision for a new table that
--   you are creating in this region, including the read capacity units
--   provisioned for its global secondary indexes (GSIs).</li>
--   <li><a>dlrsAccountMaxWriteCapacityUnits</a> - The maximum total write
--   capacity units that your account allows you to provision across all of
--   your tables in this region.</li>
--   <li><a>dlrsAccountMaxReadCapacityUnits</a> - The maximum total read
--   capacity units that your account allows you to provision across all of
--   your tables in this region.</li>
--   <li><a>dlrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
describeLimitsResponse :: Int -> DescribeLimitsResponse

-- | Represents the output of a <tt>DescribeLimits</tt> operation.
--   
--   <i>See:</i> <a>describeLimitsResponse</a> smart constructor.
data DescribeLimitsResponse

-- | The maximum write capacity units that your account allows you to
--   provision for a new table that you are creating in this region,
--   including the write capacity units provisioned for its global
--   secondary indexes (GSIs).
dlrsTableMaxWriteCapacityUnits :: Lens' DescribeLimitsResponse (Maybe Natural)

-- | The maximum read capacity units that your account allows you to
--   provision for a new table that you are creating in this region,
--   including the read capacity units provisioned for its global secondary
--   indexes (GSIs).
dlrsTableMaxReadCapacityUnits :: Lens' DescribeLimitsResponse (Maybe Natural)

-- | The maximum total write capacity units that your account allows you to
--   provision across all of your tables in this region.
dlrsAccountMaxWriteCapacityUnits :: Lens' DescribeLimitsResponse (Maybe Natural)

-- | The maximum total read capacity units that your account allows you to
--   provision across all of your tables in this region.
dlrsAccountMaxReadCapacityUnits :: Lens' DescribeLimitsResponse (Maybe Natural)

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


-- | Describes region specific settings for a global table.
module Network.AWS.DynamoDB.DescribeGlobalTableSettings

-- | Creates a value of <a>DescribeGlobalTableSettings</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>dgtsGlobalTableName</a> - The name of the global table to
--   describe.</li>
--   </ul>
describeGlobalTableSettings :: Text -> DescribeGlobalTableSettings

-- | <i>See:</i> <a>describeGlobalTableSettings</a> smart constructor.
data DescribeGlobalTableSettings

-- | The name of the global table to describe.
dgtsGlobalTableName :: Lens' DescribeGlobalTableSettings Text

-- | Creates a value of <a>DescribeGlobalTableSettingsResponse</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>dgtsrsReplicaSettings</a> - The region specific settings for
--   the global table.</li>
--   <li><a>dgtsrsGlobalTableName</a> - The name of the global table.</li>
--   <li><a>dgtsrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
describeGlobalTableSettingsResponse :: Int -> DescribeGlobalTableSettingsResponse

-- | <i>See:</i> <a>describeGlobalTableSettingsResponse</a> smart
--   constructor.
data DescribeGlobalTableSettingsResponse

-- | The region specific settings for the global table.
dgtsrsReplicaSettings :: Lens' DescribeGlobalTableSettingsResponse [ReplicaSettingsDescription]

-- | The name of the global table.
dgtsrsGlobalTableName :: Lens' DescribeGlobalTableSettingsResponse (Maybe Text)

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


-- | Returns information about the specified global table.
module Network.AWS.DynamoDB.DescribeGlobalTable

-- | Creates a value of <a>DescribeGlobalTable</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>dgtGlobalTableName</a> - The name of the global table.</li>
--   </ul>
describeGlobalTable :: Text -> DescribeGlobalTable

-- | <i>See:</i> <a>describeGlobalTable</a> smart constructor.
data DescribeGlobalTable

-- | The name of the global table.
dgtGlobalTableName :: Lens' DescribeGlobalTable Text

-- | Creates a value of <a>DescribeGlobalTableResponse</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>dgtrsGlobalTableDescription</a> - Contains the details of the
--   global table.</li>
--   <li><a>dgtrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
describeGlobalTableResponse :: Int -> DescribeGlobalTableResponse

-- | <i>See:</i> <a>describeGlobalTableResponse</a> smart constructor.
data DescribeGlobalTableResponse

-- | Contains the details of the global table.
dgtrsGlobalTableDescription :: Lens' DescribeGlobalTableResponse (Maybe GlobalTableDescription)

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


-- | Checks the status of continuous backups and point in time recovery on
--   the specified table. Continuous backups are <tt>ENABLED</tt> on all
--   tables at table creation. If point in time recovery is enabled,
--   <tt>PointInTimeRecoveryStatus</tt> will be set to ENABLED.
--   
--   Once continuous backups and point in time recovery are enabled, you
--   can restore to any point in time within
--   <tt>EarliestRestorableDateTime</tt> and
--   <tt>LatestRestorableDateTime</tt> .
--   
--   <tt>LatestRestorableDateTime</tt> is typically 5 minutes before the
--   current time. You can restore your table to any point in time during
--   the last 35 days.
--   
--   You can call <tt>DescribeContinuousBackups</tt> at a maximum rate of
--   10 times per second.
module Network.AWS.DynamoDB.DescribeContinuousBackups

-- | Creates a value of <a>DescribeContinuousBackups</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>dcbTableName</a> - Name of the table for which the customer
--   wants to check the continuous backups and point in time recovery
--   settings.</li>
--   </ul>
describeContinuousBackups :: Text -> DescribeContinuousBackups

-- | <i>See:</i> <a>describeContinuousBackups</a> smart constructor.
data DescribeContinuousBackups

-- | Name of the table for which the customer wants to check the continuous
--   backups and point in time recovery settings.
dcbTableName :: Lens' DescribeContinuousBackups Text

-- | Creates a value of <a>DescribeContinuousBackupsResponse</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>dcbrsContinuousBackupsDescription</a> -
--   <tt>ContinuousBackupsDescription</tt> can be one of the following :
--   ENABLED, DISABLED.</li>
--   <li><a>dcbrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
describeContinuousBackupsResponse :: Int -> DescribeContinuousBackupsResponse

-- | <i>See:</i> <a>describeContinuousBackupsResponse</a> smart
--   constructor.
data DescribeContinuousBackupsResponse

-- | <tt>ContinuousBackupsDescription</tt> can be one of the following :
--   ENABLED, DISABLED.
dcbrsContinuousBackupsDescription :: Lens' DescribeContinuousBackupsResponse (Maybe ContinuousBackupsDescription)

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


-- | Describes an existing backup of a table.
--   
--   You can call <tt>DescribeBackup</tt> at a maximum rate of 10 times per
--   second.
module Network.AWS.DynamoDB.DescribeBackup

-- | Creates a value of <a>DescribeBackup</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>dBackupARN</a> - The ARN associated with the backup.</li>
--   </ul>
describeBackup :: Text -> DescribeBackup

-- | <i>See:</i> <a>describeBackup</a> smart constructor.
data DescribeBackup

-- | The ARN associated with the backup.
dBackupARN :: Lens' DescribeBackup Text

-- | Creates a value of <a>DescribeBackupResponse</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>desrsBackupDescription</a> - Contains the description of the
--   backup created for the table.</li>
--   <li><a>desrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
describeBackupResponse :: Int -> DescribeBackupResponse

-- | <i>See:</i> <a>describeBackupResponse</a> smart constructor.
data DescribeBackupResponse

-- | Contains the description of the backup created for the table.
desrsBackupDescription :: Lens' DescribeBackupResponse (Maybe BackupDescription)

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


-- | The <tt>DeleteTable</tt> operation deletes a table and all of its
--   items. After a <tt>DeleteTable</tt> request, the specified table is in
--   the <tt>DELETING</tt> state until DynamoDB completes the deletion. If
--   the table is in the <tt>ACTIVE</tt> state, you can delete it. If a
--   table is in <tt>CREATING</tt> or <tt>UPDATING</tt> states, then
--   DynamoDB returns a <tt>ResourceInUseException</tt> . If the specified
--   table does not exist, DynamoDB returns a
--   <tt>ResourceNotFoundException</tt> . If table is already in the
--   <tt>DELETING</tt> state, no error is returned.
--   
--   When you delete a table, any indexes on that table are also deleted.
--   
--   If you have DynamoDB Streams enabled on the table, then the
--   corresponding stream on that table goes into the <tt>DISABLED</tt>
--   state, and the stream is automatically deleted after 24 hours.
--   
--   Use the <tt>DescribeTable</tt> action to check the status of the
--   table.
module Network.AWS.DynamoDB.DeleteTable

-- | Creates a value of <a>DeleteTable</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>dtTableName</a> - The name of the table to delete.</li>
--   </ul>
deleteTable :: Text -> DeleteTable

-- | Represents the input of a <tt>DeleteTable</tt> operation.
--   
--   <i>See:</i> <a>deleteTable</a> smart constructor.
data DeleteTable

-- | The name of the table to delete.
dtTableName :: Lens' DeleteTable Text

-- | Creates a value of <a>DeleteTableResponse</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>dtrsTableDescription</a> - Represents the properties of a
--   table.</li>
--   <li><a>dtrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
deleteTableResponse :: Int -> DeleteTableResponse

-- | Represents the output of a <tt>DeleteTable</tt> operation.
--   
--   <i>See:</i> <a>deleteTableResponse</a> smart constructor.
data DeleteTableResponse

-- | Represents the properties of a table.
dtrsTableDescription :: Lens' DeleteTableResponse (Maybe TableDescription)

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


-- | Deletes a single item in a table by primary key. You can perform a
--   conditional delete operation that deletes the item if it exists, or if
--   it has an expected attribute value.
--   
--   In addition to deleting an item, you can also return the item's
--   attribute values in the same operation, using the
--   <tt>ReturnValues</tt> parameter.
--   
--   Unless you specify conditions, the <tt>DeleteItem</tt> is an
--   idempotent operation; running it multiple times on the same item or
--   attribute does <i>not</i> result in an error response.
--   
--   Conditional deletes are useful for deleting items only if specific
--   conditions are met. If those conditions are met, DynamoDB performs the
--   delete. Otherwise, the item is not deleted.
module Network.AWS.DynamoDB.DeleteItem

-- | Creates a value of <a>DeleteItem</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>diExpressionAttributeNames</a> - One or more substitution
--   tokens for attribute names in an expression. The following are some
--   use cases for using <tt>ExpressionAttributeNames</tt> : * To access an
--   attribute whose name conflicts with a DynamoDB reserved word. * To
--   create a placeholder for repeating occurrences of an attribute name in
--   an expression. * To prevent special characters in an attribute name
--   from being misinterpreted in an expression. Use the <b>#</b> character
--   in an expression to dereference an attribute name. For example,
--   consider the following attribute name: * <tt>Percentile</tt> The name
--   of this attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>diReturnValues</a> - Use <tt>ReturnValues</tt> if you want to
--   get the item attributes as they appeared before they were deleted. For
--   <tt>DeleteItem</tt> , the valid values are: * <tt>NONE</tt> - If
--   <tt>ReturnValues</tt> is not specified, or if its value is
--   <tt>NONE</tt> , then nothing is returned. (This setting is the default
--   for <tt>ReturnValues</tt> .) * <tt>ALL_OLD</tt> - The content of the
--   old item is returned.</li>
--   <li><a>diExpressionAttributeValues</a> - One or more values that can
--   be substituted in an expression. Use the <b>:</b> (colon) character in
--   an expression to dereference an attribute value. For example, suppose
--   that you wanted to check whether the value of the <i>ProductStatus</i>
--   attribute was one of the following: <tt>Available | Backordered |
--   Discontinued</tt> You would first need to specify
--   <tt>ExpressionAttributeValues</tt> as follows: <tt>{
--   ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>diReturnConsumedCapacity</a> - Undocumented member.</li>
--   <li><a>diReturnItemCollectionMetrics</a> - Determines whether item
--   collection metrics are returned. If set to <tt>SIZE</tt> , the
--   response includes statistics about item collections, if any, that were
--   modified during the operation are returned in the response. If set to
--   <tt>NONE</tt> (the default), no statistics are returned.</li>
--   <li><a>diConditionExpression</a> - A condition that must be satisfied
--   in order for a conditional <tt>DeleteItem</tt> to succeed. An
--   expression can contain any of the following: * Functions:
--   <tt>attribute_exists | attribute_not_exists | attribute_type |
--   contains | begins_with | size</tt> These function names are
--   case-sensitive. * Comparison operators: <tt>= | &lt;&gt; | <a>|</a> |
--   <a>|</a>= | BETWEEN | IN </tt> * Logical operators: <tt>AND | OR |
--   NOT</tt> For more information on condition expressions, see
--   <a>Specifying Conditions</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>diConditionalOperator</a> - This is a legacy parameter. Use
--   <tt>ConditionExpression</tt> instead. For more information, see
--   <a>ConditionalOperator</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>diExpected</a> - This is a legacy parameter. Use
--   <tt>ConditionExpression</tt> instead. For more information, see
--   <a>Expected</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>diTableName</a> - The name of the table from which to delete
--   the item.</li>
--   <li><a>diKey</a> - A map of attribute names to <tt>AttributeValue</tt>
--   objects, representing the primary key of the item to delete. For the
--   primary key, you must provide all of the attributes. For example, with
--   a simple primary key, you only need to provide a value for the
--   partition key. For a composite primary key, you must provide values
--   for both the partition key and the sort key.</li>
--   </ul>
deleteItem :: Text -> DeleteItem

-- | Represents the input of a <tt>DeleteItem</tt> operation.
--   
--   <i>See:</i> <a>deleteItem</a> smart constructor.
data DeleteItem

-- | One or more substitution tokens for attribute names in an expression.
--   The following are some use cases for using
--   <tt>ExpressionAttributeNames</tt> : * To access an attribute whose
--   name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
diExpressionAttributeNames :: Lens' DeleteItem (HashMap Text Text)

-- | Use <tt>ReturnValues</tt> if you want to get the item attributes as
--   they appeared before they were deleted. For <tt>DeleteItem</tt> , the
--   valid values are: * <tt>NONE</tt> - If <tt>ReturnValues</tt> is not
--   specified, or if its value is <tt>NONE</tt> , then nothing is
--   returned. (This setting is the default for <tt>ReturnValues</tt> .) *
--   <tt>ALL_OLD</tt> - The content of the old item is returned.
diReturnValues :: Lens' DeleteItem (Maybe ReturnValue)

-- | One or more values that can be substituted in an expression. Use the
--   <b>:</b> (colon) character in an expression to dereference an
--   attribute value. For example, suppose that you wanted to check whether
--   the value of the <i>ProductStatus</i> attribute was one of the
--   following: <tt>Available | Backordered | Discontinued</tt> You would
--   first need to specify <tt>ExpressionAttributeValues</tt> as follows:
--   <tt>{ ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
diExpressionAttributeValues :: Lens' DeleteItem (HashMap Text AttributeValue)

-- | Undocumented member.
diReturnConsumedCapacity :: Lens' DeleteItem (Maybe ReturnConsumedCapacity)

-- | Determines whether item collection metrics are returned. If set to
--   <tt>SIZE</tt> , the response includes statistics about item
--   collections, if any, that were modified during the operation are
--   returned in the response. If set to <tt>NONE</tt> (the default), no
--   statistics are returned.
diReturnItemCollectionMetrics :: Lens' DeleteItem (Maybe ReturnItemCollectionMetrics)

-- | A condition that must be satisfied in order for a conditional
--   <tt>DeleteItem</tt> to succeed. An expression can contain any of the
--   following: * Functions: <tt>attribute_exists | attribute_not_exists |
--   attribute_type | contains | begins_with | size</tt> These function
--   names are case-sensitive. * Comparison operators: <tt>= | &lt;&gt; |
--   <a>|</a> | <a>|</a>= | BETWEEN | IN </tt> * Logical operators: <tt>AND
--   | OR | NOT</tt> For more information on condition expressions, see
--   <a>Specifying Conditions</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .
diConditionExpression :: Lens' DeleteItem (Maybe Text)

-- | This is a legacy parameter. Use <tt>ConditionExpression</tt> instead.
--   For more information, see <a>ConditionalOperator</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
diConditionalOperator :: Lens' DeleteItem (Maybe ConditionalOperator)

-- | This is a legacy parameter. Use <tt>ConditionExpression</tt> instead.
--   For more information, see <a>Expected</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
diExpected :: Lens' DeleteItem (HashMap Text ExpectedAttributeValue)

-- | The name of the table from which to delete the item.
diTableName :: Lens' DeleteItem Text

-- | A map of attribute names to <tt>AttributeValue</tt> objects,
--   representing the primary key of the item to delete. For the primary
--   key, you must provide all of the attributes. For example, with a
--   simple primary key, you only need to provide a value for the partition
--   key. For a composite primary key, you must provide values for both the
--   partition key and the sort key.
diKey :: Lens' DeleteItem (HashMap Text AttributeValue)

-- | Creates a value of <a>DeleteItemResponse</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>dirsItemCollectionMetrics</a> - Information about item
--   collections, if any, that were affected by the <tt>DeleteItem</tt>
--   operation. <tt>ItemCollectionMetrics</tt> is only returned if the
--   <tt>ReturnItemCollectionMetrics</tt> parameter was specified. If the
--   table does not have any local secondary indexes, this information is
--   not returned in the response. Each <tt>ItemCollectionMetrics</tt>
--   element consists of: * <tt>ItemCollectionKey</tt> - The partition key
--   value of the item collection. This is the same as the partition key
--   value of the item itself. * <tt>SizeEstimateRangeGB</tt> - An estimate
--   of item collection size, in gigabytes. This value is a two-element
--   array containing a lower bound and an upper bound for the estimate.
--   The estimate includes the size of all the items in the table, plus the
--   size of all attributes projected into all of the local secondary
--   indexes on that table. Use this estimate to measure whether a local
--   secondary index is approaching its size limit. The estimate is subject
--   to change over time; therefore, do not rely on the precision or
--   accuracy of the estimate.</li>
--   <li><a>dirsConsumedCapacity</a> - The capacity units consumed by the
--   <tt>DeleteItem</tt> operation. The data returned includes the total
--   provisioned throughput consumed, along with statistics for the table
--   and any indexes involved in the operation. <tt>ConsumedCapacity</tt>
--   is only returned if the <tt>ReturnConsumedCapacity</tt> parameter was
--   specified. For more information, see <a>Provisioned Throughput</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>dirsAttributes</a> - A map of attribute names to
--   <tt>AttributeValue</tt> objects, representing the item as it appeared
--   before the <tt>DeleteItem</tt> operation. This map appears in the
--   response only if <tt>ReturnValues</tt> was specified as
--   <tt>ALL_OLD</tt> in the request.</li>
--   <li><a>dirsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
deleteItemResponse :: Int -> DeleteItemResponse

-- | Represents the output of a <tt>DeleteItem</tt> operation.
--   
--   <i>See:</i> <a>deleteItemResponse</a> smart constructor.
data DeleteItemResponse

-- | Information about item collections, if any, that were affected by the
--   <tt>DeleteItem</tt> operation. <tt>ItemCollectionMetrics</tt> is only
--   returned if the <tt>ReturnItemCollectionMetrics</tt> parameter was
--   specified. If the table does not have any local secondary indexes,
--   this information is not returned in the response. Each
--   <tt>ItemCollectionMetrics</tt> element consists of: *
--   <tt>ItemCollectionKey</tt> - The partition key value of the item
--   collection. This is the same as the partition key value of the item
--   itself. * <tt>SizeEstimateRangeGB</tt> - An estimate of item
--   collection size, in gigabytes. This value is a two-element array
--   containing a lower bound and an upper bound for the estimate. The
--   estimate includes the size of all the items in the table, plus the
--   size of all attributes projected into all of the local secondary
--   indexes on that table. Use this estimate to measure whether a local
--   secondary index is approaching its size limit. The estimate is subject
--   to change over time; therefore, do not rely on the precision or
--   accuracy of the estimate.
dirsItemCollectionMetrics :: Lens' DeleteItemResponse (Maybe ItemCollectionMetrics)

-- | The capacity units consumed by the <tt>DeleteItem</tt> operation. The
--   data returned includes the total provisioned throughput consumed,
--   along with statistics for the table and any indexes involved in the
--   operation. <tt>ConsumedCapacity</tt> is only returned if the
--   <tt>ReturnConsumedCapacity</tt> parameter was specified. For more
--   information, see <a>Provisioned Throughput</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
dirsConsumedCapacity :: Lens' DeleteItemResponse (Maybe ConsumedCapacity)

-- | A map of attribute names to <tt>AttributeValue</tt> objects,
--   representing the item as it appeared before the <tt>DeleteItem</tt>
--   operation. This map appears in the response only if
--   <tt>ReturnValues</tt> was specified as <tt>ALL_OLD</tt> in the
--   request.
dirsAttributes :: Lens' DeleteItemResponse (HashMap Text AttributeValue)

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


-- | Deletes an existing backup of a table.
--   
--   You can call <tt>DeleteBackup</tt> at a maximum rate of 10 times per
--   second.
module Network.AWS.DynamoDB.DeleteBackup

-- | Creates a value of <a>DeleteBackup</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>dbBackupARN</a> - The ARN associated with the backup.</li>
--   </ul>
deleteBackup :: Text -> DeleteBackup

-- | <i>See:</i> <a>deleteBackup</a> smart constructor.
data DeleteBackup

-- | The ARN associated with the backup.
dbBackupARN :: Lens' DeleteBackup Text

-- | Creates a value of <a>DeleteBackupResponse</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>dbrsBackupDescription</a> - Contains the description of the
--   backup created for the table.</li>
--   <li><a>dbrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
deleteBackupResponse :: Int -> DeleteBackupResponse

-- | <i>See:</i> <a>deleteBackupResponse</a> smart constructor.
data DeleteBackupResponse

-- | Contains the description of the backup created for the table.
dbrsBackupDescription :: Lens' DeleteBackupResponse (Maybe BackupDescription)

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


-- | The <tt>CreateTable</tt> operation adds a new table to your account.
--   In an AWS account, table names must be unique within each region. That
--   is, you can have two tables with same name if you create the tables in
--   different regions.
--   
--   <tt>CreateTable</tt> is an asynchronous operation. Upon receiving a
--   <tt>CreateTable</tt> request, DynamoDB immediately returns a response
--   with a <tt>TableStatus</tt> of <tt>CREATING</tt> . After the table is
--   created, DynamoDB sets the <tt>TableStatus</tt> to <tt>ACTIVE</tt> .
--   You can perform read and write operations only on an <tt>ACTIVE</tt>
--   table.
--   
--   You can optionally define secondary indexes on the new table, as part
--   of the <tt>CreateTable</tt> operation. If you want to create multiple
--   tables with secondary indexes on them, you must create the tables
--   sequentially. Only one table with secondary indexes can be in the
--   <tt>CREATING</tt> state at any given time.
--   
--   You can use the <tt>DescribeTable</tt> action to check the table
--   status.
module Network.AWS.DynamoDB.CreateTable

-- | Creates a value of <a>CreateTable</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>ctSSESpecification</a> - Represents the settings used to enable
--   server-side encryption.</li>
--   <li><a>ctGlobalSecondaryIndexes</a> - One or more global secondary
--   indexes (the maximum is five) to be created on the table. Each global
--   secondary index in the array includes the following: *
--   <tt>IndexName</tt> - The name of the global secondary index. Must be
--   unique only for this table. * <tt>KeySchema</tt> - Specifies the key
--   schema for the global secondary index. * <tt>Projection</tt> -
--   Specifies attributes that are copied (projected) from the table into
--   the index. These are in addition to the primary key attributes and
--   index key attributes, which are automatically projected. Each
--   attribute specification is composed of: * <tt>ProjectionType</tt> -
--   One of the following: * <tt>KEYS_ONLY</tt> - Only the index and
--   primary keys are projected into the index. * <tt>INCLUDE</tt> - Only
--   the specified table attributes are projected into the index. The list
--   of projected attributes are in <tt>NonKeyAttributes</tt> . *
--   <tt>ALL</tt> - All of the table attributes are projected into the
--   index. * <tt>NonKeyAttributes</tt> - A list of one or more non-key
--   attribute names that are projected into the secondary index. The total
--   count of attributes provided in <tt>NonKeyAttributes</tt> , summed
--   across all of the secondary indexes, must not exceed 20. If you
--   project the same attribute into two different indexes, this counts as
--   two distinct attributes when determining the total. *
--   <tt>ProvisionedThroughput</tt> - The provisioned throughput settings
--   for the global secondary index, consisting of read and write capacity
--   units.</li>
--   <li><a>ctLocalSecondaryIndexes</a> - One or more local secondary
--   indexes (the maximum is five) to be created on the table. Each index
--   is scoped to a given partition key value. There is a 10 GB size limit
--   per partition key value; otherwise, the size of a local secondary
--   index is unconstrained. Each local secondary index in the array
--   includes the following: * <tt>IndexName</tt> - The name of the local
--   secondary index. Must be unique only for this table. *
--   <tt>KeySchema</tt> - Specifies the key schema for the local secondary
--   index. The key schema must begin with the same partition key as the
--   table. * <tt>Projection</tt> - Specifies attributes that are copied
--   (projected) from the table into the index. These are in addition to
--   the primary key attributes and index key attributes, which are
--   automatically projected. Each attribute specification is composed of:
--   * <tt>ProjectionType</tt> - One of the following: * <tt>KEYS_ONLY</tt>
--   - Only the index and primary keys are projected into the index. *
--   <tt>INCLUDE</tt> - Only the specified table attributes are projected
--   into the index. The list of projected attributes are in
--   <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of the table
--   attributes are projected into the index. * <tt>NonKeyAttributes</tt> -
--   A list of one or more non-key attribute names that are projected into
--   the secondary index. The total count of attributes provided in
--   <tt>NonKeyAttributes</tt> , summed across all of the secondary
--   indexes, must not exceed 20. If you project the same attribute into
--   two different indexes, this counts as two distinct attributes when
--   determining the total.</li>
--   <li><a>ctStreamSpecification</a> - The settings for DynamoDB Streams
--   on the table. These settings consist of: * <tt>StreamEnabled</tt> -
--   Indicates whether Streams is to be enabled (true) or disabled (false).
--   * <tt>StreamViewType</tt> - When an item in the table is modified,
--   <tt>StreamViewType</tt> determines what information is written to the
--   table's stream. Valid values for <tt>StreamViewType</tt> are: *
--   <tt>KEYS_ONLY</tt> - Only the key attributes of the modified item are
--   written to the stream. * <tt>NEW_IMAGE</tt> - The entire item, as it
--   appears after it was modified, is written to the stream. *
--   <tt>OLD_IMAGE</tt> - The entire item, as it appeared before it was
--   modified, is written to the stream. * <tt>NEW_AND_OLD_IMAGES</tt> -
--   Both the new and the old item images of the item are written to the
--   stream.</li>
--   <li><a>ctAttributeDefinitions</a> - An array of attributes that
--   describe the key schema for the table and indexes.</li>
--   <li><a>ctTableName</a> - The name of the table to create.</li>
--   <li><a>ctKeySchema</a> - Specifies the attributes that make up the
--   primary key for a table or an index. The attributes in
--   <tt>KeySchema</tt> must also be defined in the
--   <tt>AttributeDefinitions</tt> array. For more information, see <a>Data
--   Model</a> in the <i>Amazon DynamoDB Developer Guide</i> . Each
--   <tt>KeySchemaElement</tt> in the array is composed of: *
--   <tt>AttributeName</tt> - The name of this key attribute. *
--   <tt>KeyType</tt> - The role that the key attribute will assume: *
--   <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort key For a simple
--   primary key (partition key), you must provide exactly one element with
--   a <tt>KeyType</tt> of <tt>HASH</tt> . For a composite primary key
--   (partition key and sort key), you must provide exactly two elements,
--   in this order: The first element must have a <tt>KeyType</tt> of
--   <tt>HASH</tt> , and the second element must have a <tt>KeyType</tt> of
--   <tt>RANGE</tt> . For more information, see <a>Specifying the Primary
--   Key</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>ctProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for a specified table or index. The settings can
--   be modified using the <tt>UpdateTable</tt> operation. For current
--   minimum and maximum provisioned throughput values, see <a>Limits</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   </ul>
createTable :: Text -> NonEmpty KeySchemaElement -> ProvisionedThroughput -> CreateTable

-- | Represents the input of a <tt>CreateTable</tt> operation.
--   
--   <i>See:</i> <a>createTable</a> smart constructor.
data CreateTable

-- | Represents the settings used to enable server-side encryption.
ctSSESpecification :: Lens' CreateTable (Maybe SSESpecification)

-- | One or more global secondary indexes (the maximum is five) to be
--   created on the table. Each global secondary index in the array
--   includes the following: * <tt>IndexName</tt> - The name of the global
--   secondary index. Must be unique only for this table. *
--   <tt>KeySchema</tt> - Specifies the key schema for the global secondary
--   index. * <tt>Projection</tt> - Specifies attributes that are copied
--   (projected) from the table into the index. These are in addition to
--   the primary key attributes and index key attributes, which are
--   automatically projected. Each attribute specification is composed of:
--   * <tt>ProjectionType</tt> - One of the following: * <tt>KEYS_ONLY</tt>
--   - Only the index and primary keys are projected into the index. *
--   <tt>INCLUDE</tt> - Only the specified table attributes are projected
--   into the index. The list of projected attributes are in
--   <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of the table
--   attributes are projected into the index. * <tt>NonKeyAttributes</tt> -
--   A list of one or more non-key attribute names that are projected into
--   the secondary index. The total count of attributes provided in
--   <tt>NonKeyAttributes</tt> , summed across all of the secondary
--   indexes, must not exceed 20. If you project the same attribute into
--   two different indexes, this counts as two distinct attributes when
--   determining the total. * <tt>ProvisionedThroughput</tt> - The
--   provisioned throughput settings for the global secondary index,
--   consisting of read and write capacity units.
ctGlobalSecondaryIndexes :: Lens' CreateTable [GlobalSecondaryIndex]

-- | One or more local secondary indexes (the maximum is five) to be
--   created on the table. Each index is scoped to a given partition key
--   value. There is a 10 GB size limit per partition key value; otherwise,
--   the size of a local secondary index is unconstrained. Each local
--   secondary index in the array includes the following: *
--   <tt>IndexName</tt> - The name of the local secondary index. Must be
--   unique only for this table. * <tt>KeySchema</tt> - Specifies the key
--   schema for the local secondary index. The key schema must begin with
--   the same partition key as the table. * <tt>Projection</tt> - Specifies
--   attributes that are copied (projected) from the table into the index.
--   These are in addition to the primary key attributes and index key
--   attributes, which are automatically projected. Each attribute
--   specification is composed of: * <tt>ProjectionType</tt> - One of the
--   following: * <tt>KEYS_ONLY</tt> - Only the index and primary keys are
--   projected into the index. * <tt>INCLUDE</tt> - Only the specified
--   table attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index. *
--   <tt>NonKeyAttributes</tt> - A list of one or more non-key attribute
--   names that are projected into the secondary index. The total count of
--   attributes provided in <tt>NonKeyAttributes</tt> , summed across all
--   of the secondary indexes, must not exceed 20. If you project the same
--   attribute into two different indexes, this counts as two distinct
--   attributes when determining the total.
ctLocalSecondaryIndexes :: Lens' CreateTable [LocalSecondaryIndex]

-- | The settings for DynamoDB Streams on the table. These settings consist
--   of: * <tt>StreamEnabled</tt> - Indicates whether Streams is to be
--   enabled (true) or disabled (false). * <tt>StreamViewType</tt> - When
--   an item in the table is modified, <tt>StreamViewType</tt> determines
--   what information is written to the table's stream. Valid values for
--   <tt>StreamViewType</tt> are: * <tt>KEYS_ONLY</tt> - Only the key
--   attributes of the modified item are written to the stream. *
--   <tt>NEW_IMAGE</tt> - The entire item, as it appears after it was
--   modified, is written to the stream. * <tt>OLD_IMAGE</tt> - The entire
--   item, as it appeared before it was modified, is written to the stream.
--   * <tt>NEW_AND_OLD_IMAGES</tt> - Both the new and the old item images
--   of the item are written to the stream.
ctStreamSpecification :: Lens' CreateTable (Maybe StreamSpecification)

-- | An array of attributes that describe the key schema for the table and
--   indexes.
ctAttributeDefinitions :: Lens' CreateTable [AttributeDefinition]

-- | The name of the table to create.
ctTableName :: Lens' CreateTable Text

-- | Specifies the attributes that make up the primary key for a table or
--   an index. The attributes in <tt>KeySchema</tt> must also be defined in
--   the <tt>AttributeDefinitions</tt> array. For more information, see
--   <a>Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i> . Each
--   <tt>KeySchemaElement</tt> in the array is composed of: *
--   <tt>AttributeName</tt> - The name of this key attribute. *
--   <tt>KeyType</tt> - The role that the key attribute will assume: *
--   <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort key For a simple
--   primary key (partition key), you must provide exactly one element with
--   a <tt>KeyType</tt> of <tt>HASH</tt> . For a composite primary key
--   (partition key and sort key), you must provide exactly two elements,
--   in this order: The first element must have a <tt>KeyType</tt> of
--   <tt>HASH</tt> , and the second element must have a <tt>KeyType</tt> of
--   <tt>RANGE</tt> . For more information, see <a>Specifying the Primary
--   Key</a> in the <i>Amazon DynamoDB Developer Guide</i> .
ctKeySchema :: Lens' CreateTable (NonEmpty KeySchemaElement)

-- | Represents the provisioned throughput settings for a specified table
--   or index. The settings can be modified using the <tt>UpdateTable</tt>
--   operation. For current minimum and maximum provisioned throughput
--   values, see <a>Limits</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .
ctProvisionedThroughput :: Lens' CreateTable ProvisionedThroughput

-- | Creates a value of <a>CreateTableResponse</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>ctrsTableDescription</a> - Represents the properties of the
--   table.</li>
--   <li><a>ctrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
createTableResponse :: Int -> CreateTableResponse

-- | Represents the output of a <tt>CreateTable</tt> operation.
--   
--   <i>See:</i> <a>createTableResponse</a> smart constructor.
data CreateTableResponse

-- | Represents the properties of the table.
ctrsTableDescription :: Lens' CreateTableResponse (Maybe TableDescription)

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


-- | Creates a global table from an existing table. A global table creates
--   a replication relationship between two or more DynamoDB tables with
--   the same table name in the provided regions.
--   
--   Tables can only be added as the replicas of a global table group under
--   the following conditions:
--   
--   <ul>
--   <li>The tables must have the same name.</li>
--   <li>The tables must contain no items.</li>
--   <li>The tables must have the same hash key and sort key (if
--   present).</li>
--   <li>The tables must have DynamoDB Streams enabled
--   (NEW_AND_OLD_IMAGES).</li>
--   <li>The tables must have same provisioned and maximum write capacity
--   units.</li>
--   </ul>
--   
--   If global secondary indexes are specified, then the following
--   conditions must also be met:
--   
--   <ul>
--   <li>The global secondary indexes must have the same name.</li>
--   <li>The global secondary indexes must have the same hash key and sort
--   key (if present).</li>
--   <li>The global secondary indexes must have the same provisioned and
--   maximum write capacity units.</li>
--   </ul>
module Network.AWS.DynamoDB.CreateGlobalTable

-- | Creates a value of <a>CreateGlobalTable</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>cgtGlobalTableName</a> - The global table name.</li>
--   <li><a>cgtReplicationGroup</a> - The regions where the global table
--   needs to be created.</li>
--   </ul>
createGlobalTable :: Text -> CreateGlobalTable

-- | <i>See:</i> <a>createGlobalTable</a> smart constructor.
data CreateGlobalTable

-- | The global table name.
cgtGlobalTableName :: Lens' CreateGlobalTable Text

-- | The regions where the global table needs to be created.
cgtReplicationGroup :: Lens' CreateGlobalTable [Replica]

-- | Creates a value of <a>CreateGlobalTableResponse</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>cgtrsGlobalTableDescription</a> - Contains the details of the
--   global table.</li>
--   <li><a>cgtrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
createGlobalTableResponse :: Int -> CreateGlobalTableResponse

-- | <i>See:</i> <a>createGlobalTableResponse</a> smart constructor.
data CreateGlobalTableResponse

-- | Contains the details of the global table.
cgtrsGlobalTableDescription :: Lens' CreateGlobalTableResponse (Maybe GlobalTableDescription)

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


-- | Creates a backup for an existing table.
--   
--   Each time you create an On-Demand Backup, the entire table data is
--   backed up. There is no limit to the number of on-demand backups that
--   can be taken.
--   
--   When you create an On-Demand Backup, a time marker of the request is
--   cataloged, and the backup is created asynchronously, by applying all
--   changes until the time of the request to the last full table snapshot.
--   Backup requests are processed instantaneously and become available for
--   restore within minutes.
--   
--   You can call <tt>CreateBackup</tt> at a maximum rate of 50 times per
--   second.
--   
--   All backups in DynamoDB work without consuming any provisioned
--   throughput on the table.
--   
--   If you submit a backup request on 2018-12-14 at 14:25:00, the backup
--   is guaranteed to contain all data committed to the table up to
--   14:24:00, and data committed after 14:26:00 will not be. The backup
--   may or may not contain data modifications made between 14:24:00 and
--   14:26:00. On-Demand Backup does not support causal consistency.
--   
--   Along with data, the following are also included on the backups:
--   
--   <ul>
--   <li>Global secondary indexes (GSIs)</li>
--   <li>Local secondary indexes (LSIs)</li>
--   <li>Streams</li>
--   <li>Provisioned read and write capacity</li>
--   </ul>
module Network.AWS.DynamoDB.CreateBackup

-- | Creates a value of <a>CreateBackup</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>cbTableName</a> - The name of the table.</li>
--   <li><a>cbBackupName</a> - Specified name for the backup.</li>
--   </ul>
createBackup :: Text -> Text -> CreateBackup

-- | <i>See:</i> <a>createBackup</a> smart constructor.
data CreateBackup

-- | The name of the table.
cbTableName :: Lens' CreateBackup Text

-- | Specified name for the backup.
cbBackupName :: Lens' CreateBackup Text

-- | Creates a value of <a>CreateBackupResponse</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>cbrsBackupDetails</a> - Contains the details of the backup
--   created for the table.</li>
--   <li><a>cbrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
createBackupResponse :: Int -> CreateBackupResponse

-- | <i>See:</i> <a>createBackupResponse</a> smart constructor.
data CreateBackupResponse

-- | Contains the details of the backup created for the table.
cbrsBackupDetails :: Lens' CreateBackupResponse (Maybe BackupDetails)

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


-- | The <tt>BatchWriteItem</tt> operation puts or deletes multiple items
--   in one or more tables. A single call to <tt>BatchWriteItem</tt> can
--   write up to 16 MB of data, which can comprise as many as 25 put or
--   delete requests. Individual items to be written can be as large as 400
--   KB.
--   
--   The individual <tt>PutItem</tt> and <tt>DeleteItem</tt> operations
--   specified in <tt>BatchWriteItem</tt> are atomic; however
--   <tt>BatchWriteItem</tt> as a whole is not. If any requested operations
--   fail because the table's provisioned throughput is exceeded or an
--   internal processing failure occurs, the failed operations are returned
--   in the <tt>UnprocessedItems</tt> response parameter. You can
--   investigate and optionally resend the requests. Typically, you would
--   call <tt>BatchWriteItem</tt> in a loop. Each iteration would check for
--   unprocessed items and submit a new <tt>BatchWriteItem</tt> request
--   with those unprocessed items until all items have been processed.
--   
--   Note that if <i>none</i> of the items can be processed due to
--   insufficient provisioned throughput on all of the tables in the
--   request, then <tt>BatchWriteItem</tt> will return a
--   <tt>ProvisionedThroughputExceededException</tt> .
--   
--   <i>Important:</i> If DynamoDB returns any unprocessed items, you
--   should retry the batch operation on those items. However, <i>we
--   strongly recommend that you use an exponential backoff algorithm</i> .
--   If you retry the batch operation immediately, the underlying read or
--   write requests can still fail due to throttling on the individual
--   tables. If you delay the batch operation using exponential backoff,
--   the individual requests in the batch are much more likely to succeed.
--   
--   For more information, see <a>Batch Operations and Error Handling</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
--   
--   With <tt>BatchWriteItem</tt> , you can efficiently write or delete
--   large amounts of data, such as from Amazon Elastic MapReduce (EMR), or
--   copy data from another database into DynamoDB. In order to improve
--   performance with these large-scale operations, <tt>BatchWriteItem</tt>
--   does not behave in the same way as individual <tt>PutItem</tt> and
--   <tt>DeleteItem</tt> calls would. For example, you cannot specify
--   conditions on individual put and delete requests, and
--   <tt>BatchWriteItem</tt> does not return deleted items in the response.
--   
--   If you use a programming language that supports concurrency, you can
--   use threads to write items in parallel. Your application must include
--   the necessary logic to manage the threads. With languages that don't
--   support threading, you must update or delete the specified items one
--   at a time. In both situations, <tt>BatchWriteItem</tt> performs the
--   specified put and delete operations in parallel, giving you the power
--   of the thread pool approach without having to introduce complexity
--   into your application.
--   
--   Parallel processing reduces latency, but each specified put and delete
--   request consumes the same number of write capacity units whether it is
--   processed in parallel or not. Delete operations on nonexistent items
--   consume one write capacity unit.
--   
--   If one or more of the following is true, DynamoDB rejects the entire
--   batch write operation:
--   
--   <ul>
--   <li>One or more tables specified in the <tt>BatchWriteItem</tt>
--   request does not exist.</li>
--   <li>Primary key attributes specified on an item in the request do not
--   match those in the corresponding table's primary key schema.</li>
--   <li>You try to perform multiple operations on the same item in the
--   same <tt>BatchWriteItem</tt> request. For example, you cannot put and
--   delete the same item in the same <tt>BatchWriteItem</tt> request.</li>
--   <li>Your request contains at least two items with identical hash and
--   range keys (which essentially is two put operations).</li>
--   <li>There are more than 25 requests in the batch.</li>
--   <li>Any individual item in a batch exceeds 400 KB.</li>
--   <li>The total request size exceeds 16 MB.</li>
--   </ul>
module Network.AWS.DynamoDB.BatchWriteItem

-- | Creates a value of <a>BatchWriteItem</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>bwiReturnConsumedCapacity</a> - Undocumented member.</li>
--   <li><a>bwiReturnItemCollectionMetrics</a> - Determines whether item
--   collection metrics are returned. If set to <tt>SIZE</tt> , the
--   response includes statistics about item collections, if any, that were
--   modified during the operation are returned in the response. If set to
--   <tt>NONE</tt> (the default), no statistics are returned.</li>
--   <li><a>bwiRequestItems</a> - A map of one or more table names and, for
--   each table, a list of operations to be performed
--   (<tt>DeleteRequest</tt> or <tt>PutRequest</tt> ). Each element in the
--   map consists of the following: * <tt>DeleteRequest</tt> - Perform a
--   <tt>DeleteItem</tt> operation on the specified item. The item to be
--   deleted is identified by a <tt>Key</tt> subelement: * <tt>Key</tt> - A
--   map of primary key attribute values that uniquely identify the item.
--   Each entry in this map consists of an attribute name and an attribute
--   value. For each primary key, you must provide <i>all</i> of the key
--   attributes. For example, with a simple primary key, you only need to
--   provide a value for the partition key. For a composite primary key,
--   you must provide values for <i>both</i> the partition key and the sort
--   key. * <tt>PutRequest</tt> - Perform a <tt>PutItem</tt> operation on
--   the specified item. The item to be put is identified by an
--   <tt>Item</tt> subelement: * <tt>Item</tt> - A map of attributes and
--   their values. Each entry in this map consists of an attribute name and
--   an attribute value. Attribute values must not be null; string and
--   binary type attributes must have lengths greater than zero; and set
--   type attributes must not be empty. Requests that contain empty values
--   will be rejected with a <tt>ValidationException</tt> exception. If you
--   specify any attributes that are part of an index key, then the data
--   types for those attributes must match those of the schema in the
--   table's attribute definition.</li>
--   </ul>
batchWriteItem :: BatchWriteItem

-- | Represents the input of a <tt>BatchWriteItem</tt> operation.
--   
--   <i>See:</i> <a>batchWriteItem</a> smart constructor.
data BatchWriteItem

-- | Undocumented member.
bwiReturnConsumedCapacity :: Lens' BatchWriteItem (Maybe ReturnConsumedCapacity)

-- | Determines whether item collection metrics are returned. If set to
--   <tt>SIZE</tt> , the response includes statistics about item
--   collections, if any, that were modified during the operation are
--   returned in the response. If set to <tt>NONE</tt> (the default), no
--   statistics are returned.
bwiReturnItemCollectionMetrics :: Lens' BatchWriteItem (Maybe ReturnItemCollectionMetrics)

-- | A map of one or more table names and, for each table, a list of
--   operations to be performed (<tt>DeleteRequest</tt> or
--   <tt>PutRequest</tt> ). Each element in the map consists of the
--   following: * <tt>DeleteRequest</tt> - Perform a <tt>DeleteItem</tt>
--   operation on the specified item. The item to be deleted is identified
--   by a <tt>Key</tt> subelement: * <tt>Key</tt> - A map of primary key
--   attribute values that uniquely identify the item. Each entry in this
--   map consists of an attribute name and an attribute value. For each
--   primary key, you must provide <i>all</i> of the key attributes. For
--   example, with a simple primary key, you only need to provide a value
--   for the partition key. For a composite primary key, you must provide
--   values for <i>both</i> the partition key and the sort key. *
--   <tt>PutRequest</tt> - Perform a <tt>PutItem</tt> operation on the
--   specified item. The item to be put is identified by an <tt>Item</tt>
--   subelement: * <tt>Item</tt> - A map of attributes and their values.
--   Each entry in this map consists of an attribute name and an attribute
--   value. Attribute values must not be null; string and binary type
--   attributes must have lengths greater than zero; and set type
--   attributes must not be empty. Requests that contain empty values will
--   be rejected with a <tt>ValidationException</tt> exception. If you
--   specify any attributes that are part of an index key, then the data
--   types for those attributes must match those of the schema in the
--   table's attribute definition.
bwiRequestItems :: Lens' BatchWriteItem (HashMap Text (NonEmpty WriteRequest))

-- | Creates a value of <a>BatchWriteItemResponse</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>bwirsItemCollectionMetrics</a> - A list of tables that were
--   processed by <tt>BatchWriteItem</tt> and, for each table, information
--   about any item collections that were affected by individual
--   <tt>DeleteItem</tt> or <tt>PutItem</tt> operations. Each entry
--   consists of the following subelements: * <tt>ItemCollectionKey</tt> -
--   The partition key value of the item collection. This is the same as
--   the partition key value of the item. * <tt>SizeEstimateRangeGB</tt> -
--   An estimate of item collection size, expressed in GB. This is a
--   two-element array containing a lower bound and an upper bound for the
--   estimate. The estimate includes the size of all the items in the
--   table, plus the size of all attributes projected into all of the local
--   secondary indexes on the table. Use this estimate to measure whether a
--   local secondary index is approaching its size limit. The estimate is
--   subject to change over time; therefore, do not rely on the precision
--   or accuracy of the estimate.</li>
--   <li><a>bwirsConsumedCapacity</a> - The capacity units consumed by the
--   entire <tt>BatchWriteItem</tt> operation. Each element consists of: *
--   <tt>TableName</tt> - The table that consumed the provisioned
--   throughput. * <tt>CapacityUnits</tt> - The total number of capacity
--   units consumed.</li>
--   <li><a>bwirsUnprocessedItems</a> - A map of tables and requests
--   against those tables that were not processed. The
--   <tt>UnprocessedItems</tt> value is in the same form as
--   <tt>RequestItems</tt> , so you can provide this value directly to a
--   subsequent <tt>BatchGetItem</tt> operation. For more information, see
--   <tt>RequestItems</tt> in the Request Parameters section. Each
--   <tt>UnprocessedItems</tt> entry consists of a table name and, for that
--   table, a list of operations to perform (<tt>DeleteRequest</tt> or
--   <tt>PutRequest</tt> ). * <tt>DeleteRequest</tt> - Perform a
--   <tt>DeleteItem</tt> operation on the specified item. The item to be
--   deleted is identified by a <tt>Key</tt> subelement: * <tt>Key</tt> - A
--   map of primary key attribute values that uniquely identify the item.
--   Each entry in this map consists of an attribute name and an attribute
--   value. * <tt>PutRequest</tt> - Perform a <tt>PutItem</tt> operation on
--   the specified item. The item to be put is identified by an
--   <tt>Item</tt> subelement: * <tt>Item</tt> - A map of attributes and
--   their values. Each entry in this map consists of an attribute name and
--   an attribute value. Attribute values must not be null; string and
--   binary type attributes must have lengths greater than zero; and set
--   type attributes must not be empty. Requests that contain empty values
--   will be rejected with a <tt>ValidationException</tt> exception. If you
--   specify any attributes that are part of an index key, then the data
--   types for those attributes must match those of the schema in the
--   table's attribute definition. If there are no unprocessed items
--   remaining, the response contains an empty <tt>UnprocessedItems</tt>
--   map.</li>
--   <li><a>bwirsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
batchWriteItemResponse :: Int -> BatchWriteItemResponse

-- | Represents the output of a <tt>BatchWriteItem</tt> operation.
--   
--   <i>See:</i> <a>batchWriteItemResponse</a> smart constructor.
data BatchWriteItemResponse

-- | A list of tables that were processed by <tt>BatchWriteItem</tt> and,
--   for each table, information about any item collections that were
--   affected by individual <tt>DeleteItem</tt> or <tt>PutItem</tt>
--   operations. Each entry consists of the following subelements: *
--   <tt>ItemCollectionKey</tt> - The partition key value of the item
--   collection. This is the same as the partition key value of the item. *
--   <tt>SizeEstimateRangeGB</tt> - An estimate of item collection size,
--   expressed in GB. This is a two-element array containing a lower bound
--   and an upper bound for the estimate. The estimate includes the size of
--   all the items in the table, plus the size of all attributes projected
--   into all of the local secondary indexes on the table. Use this
--   estimate to measure whether a local secondary index is approaching its
--   size limit. The estimate is subject to change over time; therefore, do
--   not rely on the precision or accuracy of the estimate.
bwirsItemCollectionMetrics :: Lens' BatchWriteItemResponse (HashMap Text [ItemCollectionMetrics])

-- | The capacity units consumed by the entire <tt>BatchWriteItem</tt>
--   operation. Each element consists of: * <tt>TableName</tt> - The table
--   that consumed the provisioned throughput. * <tt>CapacityUnits</tt> -
--   The total number of capacity units consumed.
bwirsConsumedCapacity :: Lens' BatchWriteItemResponse [ConsumedCapacity]

-- | A map of tables and requests against those tables that were not
--   processed. The <tt>UnprocessedItems</tt> value is in the same form as
--   <tt>RequestItems</tt> , so you can provide this value directly to a
--   subsequent <tt>BatchGetItem</tt> operation. For more information, see
--   <tt>RequestItems</tt> in the Request Parameters section. Each
--   <tt>UnprocessedItems</tt> entry consists of a table name and, for that
--   table, a list of operations to perform (<tt>DeleteRequest</tt> or
--   <tt>PutRequest</tt> ). * <tt>DeleteRequest</tt> - Perform a
--   <tt>DeleteItem</tt> operation on the specified item. The item to be
--   deleted is identified by a <tt>Key</tt> subelement: * <tt>Key</tt> - A
--   map of primary key attribute values that uniquely identify the item.
--   Each entry in this map consists of an attribute name and an attribute
--   value. * <tt>PutRequest</tt> - Perform a <tt>PutItem</tt> operation on
--   the specified item. The item to be put is identified by an
--   <tt>Item</tt> subelement: * <tt>Item</tt> - A map of attributes and
--   their values. Each entry in this map consists of an attribute name and
--   an attribute value. Attribute values must not be null; string and
--   binary type attributes must have lengths greater than zero; and set
--   type attributes must not be empty. Requests that contain empty values
--   will be rejected with a <tt>ValidationException</tt> exception. If you
--   specify any attributes that are part of an index key, then the data
--   types for those attributes must match those of the schema in the
--   table's attribute definition. If there are no unprocessed items
--   remaining, the response contains an empty <tt>UnprocessedItems</tt>
--   map.
bwirsUnprocessedItems :: Lens' BatchWriteItemResponse (HashMap Text (NonEmpty WriteRequest))

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


-- | The <tt>BatchGetItem</tt> operation returns the attributes of one or
--   more items from one or more tables. You identify requested items by
--   primary key.
--   
--   A single operation can retrieve up to 16 MB of data, which can contain
--   as many as 100 items. <tt>BatchGetItem</tt> will return a partial
--   result if the response size limit is exceeded, the table's provisioned
--   throughput is exceeded, or an internal processing failure occurs. If a
--   partial result is returned, the operation returns a value for
--   <tt>UnprocessedKeys</tt> . You can use this value to retry the
--   operation starting with the next item to get.
--   
--   <i>Important:</i> If you request more than 100 items
--   <tt>BatchGetItem</tt> will return a <tt>ValidationException</tt> with
--   the message "Too many items requested for the BatchGetItem call".
--   
--   For example, if you ask to retrieve 100 items, but each individual
--   item is 300 KB in size, the system returns 52 items (so as not to
--   exceed the 16 MB limit). It also returns an appropriate
--   <tt>UnprocessedKeys</tt> value so you can get the next page of
--   results. If desired, your application can include its own logic to
--   assemble the pages of results into one data set.
--   
--   If <i>none</i> of the items can be processed due to insufficient
--   provisioned throughput on all of the tables in the request, then
--   <tt>BatchGetItem</tt> will return a
--   <tt>ProvisionedThroughputExceededException</tt> . If <i>at least
--   one</i> of the items is successfully processed, then
--   <tt>BatchGetItem</tt> completes successfully, while returning the keys
--   of the unread items in <tt>UnprocessedKeys</tt> .
--   
--   <i>Important:</i> If DynamoDB returns any unprocessed items, you
--   should retry the batch operation on those items. However, <i>we
--   strongly recommend that you use an exponential backoff algorithm</i> .
--   If you retry the batch operation immediately, the underlying read or
--   write requests can still fail due to throttling on the individual
--   tables. If you delay the batch operation using exponential backoff,
--   the individual requests in the batch are much more likely to succeed.
--   
--   For more information, see <a>Batch Operations and Error Handling</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
--   
--   By default, <tt>BatchGetItem</tt> performs eventually consistent reads
--   on every table in the request. If you want strongly consistent reads
--   instead, you can set <tt>ConsistentRead</tt> to <tt>true</tt> for any
--   or all tables.
--   
--   In order to minimize response latency, <tt>BatchGetItem</tt> retrieves
--   items in parallel.
--   
--   When designing your application, keep in mind that DynamoDB does not
--   return items in any particular order. To help parse the response by
--   item, include the primary key values for the items in your request in
--   the <tt>ProjectionExpression</tt> parameter.
--   
--   If a requested item does not exist, it is not returned in the result.
--   Requests for nonexistent items consume the minimum read capacity units
--   according to the type of read. For more information, see <a>Capacity
--   Units Calculations</a> in the <i>Amazon DynamoDB Developer Guide</i> .
module Network.AWS.DynamoDB.BatchGetItem

-- | Creates a value of <a>BatchGetItem</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>bgiReturnConsumedCapacity</a> - Undocumented member.</li>
--   <li><a>bgiRequestItems</a> - A map of one or more table names and, for
--   each table, a map that describes one or more items to retrieve from
--   that table. Each table name can be used only once per
--   <tt>BatchGetItem</tt> request. Each element in the map of items to
--   retrieve consists of the following: * <tt>ConsistentRead</tt> - If
--   <tt>true</tt> , a strongly consistent read is used; if <tt>false</tt>
--   (the default), an eventually consistent read is used. *
--   <tt>ExpressionAttributeNames</tt> - One or more substitution tokens
--   for attribute names in the <tt>ProjectionExpression</tt> parameter.
--   The following are some use cases for using
--   <tt>ExpressionAttributeNames</tt> : * To access an attribute whose
--   name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> . *
--   <tt>Keys</tt> - An array of primary key attribute values that define
--   specific items in the table. For each primary key, you must provide
--   <i>all</i> of the key attributes. For example, with a simple primary
--   key, you only need to provide the partition key value. For a composite
--   key, you must provide <i>both</i> the partition key value and the sort
--   key value. * <tt>ProjectionExpression</tt> - A string that identifies
--   one or more attributes to retrieve from the table. These attributes
--   can include scalars, sets, or elements of a JSON document. The
--   attributes in the expression must be separated by commas. If no
--   attribute names are specified, then all attributes will be returned.
--   If any of the requested attributes are not found, they will not appear
--   in the result. For more information, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> . *
--   <tt>AttributesToGet</tt> - This is a legacy parameter. Use
--   <tt>ProjectionExpression</tt> instead. For more information, see
--   <a>AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   </ul>
batchGetItem :: BatchGetItem

-- | Represents the input of a <tt>BatchGetItem</tt> operation.
--   
--   <i>See:</i> <a>batchGetItem</a> smart constructor.
data BatchGetItem

-- | Undocumented member.
bgiReturnConsumedCapacity :: Lens' BatchGetItem (Maybe ReturnConsumedCapacity)

-- | A map of one or more table names and, for each table, a map that
--   describes one or more items to retrieve from that table. Each table
--   name can be used only once per <tt>BatchGetItem</tt> request. Each
--   element in the map of items to retrieve consists of the following: *
--   <tt>ConsistentRead</tt> - If <tt>true</tt> , a strongly consistent
--   read is used; if <tt>false</tt> (the default), an eventually
--   consistent read is used. * <tt>ExpressionAttributeNames</tt> - One or
--   more substitution tokens for attribute names in the
--   <tt>ProjectionExpression</tt> parameter. The following are some use
--   cases for using <tt>ExpressionAttributeNames</tt> : * To access an
--   attribute whose name conflicts with a DynamoDB reserved word. * To
--   create a placeholder for repeating occurrences of an attribute name in
--   an expression. * To prevent special characters in an attribute name
--   from being misinterpreted in an expression. Use the <b>#</b> character
--   in an expression to dereference an attribute name. For example,
--   consider the following attribute name: * <tt>Percentile</tt> The name
--   of this attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> . *
--   <tt>Keys</tt> - An array of primary key attribute values that define
--   specific items in the table. For each primary key, you must provide
--   <i>all</i> of the key attributes. For example, with a simple primary
--   key, you only need to provide the partition key value. For a composite
--   key, you must provide <i>both</i> the partition key value and the sort
--   key value. * <tt>ProjectionExpression</tt> - A string that identifies
--   one or more attributes to retrieve from the table. These attributes
--   can include scalars, sets, or elements of a JSON document. The
--   attributes in the expression must be separated by commas. If no
--   attribute names are specified, then all attributes will be returned.
--   If any of the requested attributes are not found, they will not appear
--   in the result. For more information, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> . *
--   <tt>AttributesToGet</tt> - This is a legacy parameter. Use
--   <tt>ProjectionExpression</tt> instead. For more information, see
--   <a>AttributesToGet</a> in the <i>Amazon DynamoDB Developer Guide</i> .
bgiRequestItems :: Lens' BatchGetItem (HashMap Text KeysAndAttributes)

-- | Creates a value of <a>BatchGetItemResponse</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>bgirsUnprocessedKeys</a> - A map of tables and their respective
--   keys that were not processed with the current response. The
--   <tt>UnprocessedKeys</tt> value is in the same form as
--   <tt>RequestItems</tt> , so the value can be provided directly to a
--   subsequent <tt>BatchGetItem</tt> operation. For more information, see
--   <tt>RequestItems</tt> in the Request Parameters section. Each element
--   consists of: * <tt>Keys</tt> - An array of primary key attribute
--   values that define specific items in the table. *
--   <tt>ProjectionExpression</tt> - One or more attributes to be retrieved
--   from the table or index. By default, all attributes are returned. If a
--   requested attribute is not found, it does not appear in the result. *
--   <tt>ConsistentRead</tt> - The consistency of a read operation. If set
--   to <tt>true</tt> , then a strongly consistent read is used; otherwise,
--   an eventually consistent read is used. If there are no unprocessed
--   keys remaining, the response contains an empty
--   <tt>UnprocessedKeys</tt> map.</li>
--   <li><a>bgirsResponses</a> - A map of table name to a list of items.
--   Each object in <tt>Responses</tt> consists of a table name, along with
--   a map of attribute data consisting of the data type and attribute
--   value.</li>
--   <li><a>bgirsConsumedCapacity</a> - The read capacity units consumed by
--   the entire <tt>BatchGetItem</tt> operation. Each element consists of:
--   * <tt>TableName</tt> - The table that consumed the provisioned
--   throughput. * <tt>CapacityUnits</tt> - The total number of capacity
--   units consumed.</li>
--   <li><a>bgirsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
batchGetItemResponse :: Int -> BatchGetItemResponse

-- | Represents the output of a <tt>BatchGetItem</tt> operation.
--   
--   <i>See:</i> <a>batchGetItemResponse</a> smart constructor.
data BatchGetItemResponse

-- | A map of tables and their respective keys that were not processed with
--   the current response. The <tt>UnprocessedKeys</tt> value is in the
--   same form as <tt>RequestItems</tt> , so the value can be provided
--   directly to a subsequent <tt>BatchGetItem</tt> operation. For more
--   information, see <tt>RequestItems</tt> in the Request Parameters
--   section. Each element consists of: * <tt>Keys</tt> - An array of
--   primary key attribute values that define specific items in the table.
--   * <tt>ProjectionExpression</tt> - One or more attributes to be
--   retrieved from the table or index. By default, all attributes are
--   returned. If a requested attribute is not found, it does not appear in
--   the result. * <tt>ConsistentRead</tt> - The consistency of a read
--   operation. If set to <tt>true</tt> , then a strongly consistent read
--   is used; otherwise, an eventually consistent read is used. If there
--   are no unprocessed keys remaining, the response contains an empty
--   <tt>UnprocessedKeys</tt> map.
bgirsUnprocessedKeys :: Lens' BatchGetItemResponse (HashMap Text KeysAndAttributes)

-- | A map of table name to a list of items. Each object in
--   <tt>Responses</tt> consists of a table name, along with a map of
--   attribute data consisting of the data type and attribute value.
bgirsResponses :: Lens' BatchGetItemResponse (HashMap Text [HashMap Text AttributeValue])

-- | The read capacity units consumed by the entire <tt>BatchGetItem</tt>
--   operation. Each element consists of: * <tt>TableName</tt> - The table
--   that consumed the provisioned throughput. * <tt>CapacityUnits</tt> -
--   The total number of capacity units consumed.
bgirsConsumedCapacity :: Lens' BatchGetItemResponse [ConsumedCapacity]

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


-- | Removes the association of tags from an Amazon DynamoDB resource. You
--   can call UntagResource up to 5 times per second, per account.
--   
--   For an overview on tagging DynamoDB resources, see <a>Tagging for
--   DynamoDB</a> in the <i>Amazon DynamoDB Developer Guide</i> .
module Network.AWS.DynamoDB.UntagResource

-- | Creates a value of <a>UntagResource</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>urResourceARN</a> - The Amazon DyanamoDB resource the tags will
--   be removed from. This value is an Amazon Resource Name (ARN).</li>
--   <li><a>urTagKeys</a> - A list of tag keys. Existing tags of the
--   resource whose keys are members of this list will be removed from the
--   Amazon DynamoDB resource.</li>
--   </ul>
untagResource :: Text -> UntagResource

-- | <i>See:</i> <a>untagResource</a> smart constructor.
data UntagResource

-- | The Amazon DyanamoDB resource the tags will be removed from. This
--   value is an Amazon Resource Name (ARN).
urResourceARN :: Lens' UntagResource Text

-- | A list of tag keys. Existing tags of the resource whose keys are
--   members of this list will be removed from the Amazon DynamoDB
--   resource.
urTagKeys :: Lens' UntagResource [Text]

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

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


-- | <tt>UpdateContinuousBackups</tt> enables or disables point in time
--   recovery for the specified table. A successful
--   <tt>UpdateContinuousBackups</tt> call returns the current
--   <tt>ContinuousBackupsDescription</tt> . Continuous backups are
--   <tt>ENABLED</tt> on all tables at table creation. If point in time
--   recovery is enabled, <tt>PointInTimeRecoveryStatus</tt> will be set to
--   ENABLED.
--   
--   Once continuous backups and point in time recovery are enabled, you
--   can restore to any point in time within
--   <tt>EarliestRestorableDateTime</tt> and
--   <tt>LatestRestorableDateTime</tt> .
--   
--   <tt>LatestRestorableDateTime</tt> is typically 5 minutes before the
--   current time. You can restore your table to any point in time during
--   the last 35 days..
module Network.AWS.DynamoDB.UpdateContinuousBackups

-- | Creates a value of <a>UpdateContinuousBackups</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>ucbTableName</a> - The name of the table.</li>
--   <li><a>ucbPointInTimeRecoverySpecification</a> - Represents the
--   settings used to enable point in time recovery.</li>
--   </ul>
updateContinuousBackups :: Text -> PointInTimeRecoverySpecification -> UpdateContinuousBackups

-- | <i>See:</i> <a>updateContinuousBackups</a> smart constructor.
data UpdateContinuousBackups

-- | The name of the table.
ucbTableName :: Lens' UpdateContinuousBackups Text

-- | Represents the settings used to enable point in time recovery.
ucbPointInTimeRecoverySpecification :: Lens' UpdateContinuousBackups PointInTimeRecoverySpecification

-- | Creates a value of <a>UpdateContinuousBackupsResponse</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>ucbrsContinuousBackupsDescription</a> - Represents the
--   continuous backups and point in time recovery settings on the
--   table.</li>
--   <li><a>ucbrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
updateContinuousBackupsResponse :: Int -> UpdateContinuousBackupsResponse

-- | <i>See:</i> <a>updateContinuousBackupsResponse</a> smart constructor.
data UpdateContinuousBackupsResponse

-- | Represents the continuous backups and point in time recovery settings
--   on the table.
ucbrsContinuousBackupsDescription :: Lens' UpdateContinuousBackupsResponse (Maybe ContinuousBackupsDescription)

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


-- | Adds or removes replicas in the specified global table. The global
--   table must already exist to be able to use this operation. Any replica
--   to be added must be empty, must have the same name as the global
--   table, must have the same key schema, and must have DynamoDB Streams
--   enabled and must have same provisioned and maximum write capacity
--   units.
--   
--   If global secondary indexes are specified, then the following
--   conditions must also be met:
--   
--   <ul>
--   <li>The global secondary indexes must have the same name.</li>
--   <li>The global secondary indexes must have the same hash key and sort
--   key (if present).</li>
--   <li>The global secondary indexes must have the same provisioned and
--   maximum write capacity units.</li>
--   </ul>
module Network.AWS.DynamoDB.UpdateGlobalTable

-- | Creates a value of <a>UpdateGlobalTable</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>ugtGlobalTableName</a> - The global table name.</li>
--   <li><a>ugtReplicaUpdates</a> - A list of regions that should be added
--   or removed from the global table.</li>
--   </ul>
updateGlobalTable :: Text -> UpdateGlobalTable

-- | <i>See:</i> <a>updateGlobalTable</a> smart constructor.
data UpdateGlobalTable

-- | The global table name.
ugtGlobalTableName :: Lens' UpdateGlobalTable Text

-- | A list of regions that should be added or removed from the global
--   table.
ugtReplicaUpdates :: Lens' UpdateGlobalTable [ReplicaUpdate]

-- | Creates a value of <a>UpdateGlobalTableResponse</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>ugtrsGlobalTableDescription</a> - Contains the details of the
--   global table.</li>
--   <li><a>ugtrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
updateGlobalTableResponse :: Int -> UpdateGlobalTableResponse

-- | <i>See:</i> <a>updateGlobalTableResponse</a> smart constructor.
data UpdateGlobalTableResponse

-- | Contains the details of the global table.
ugtrsGlobalTableDescription :: Lens' UpdateGlobalTableResponse (Maybe GlobalTableDescription)

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


-- | Updates settings for a global table.
module Network.AWS.DynamoDB.UpdateGlobalTableSettings

-- | Creates a value of <a>UpdateGlobalTableSettings</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>ugtsGlobalTableProvisionedWriteCapacityUnits</a> - The maximum
--   number of writes consumed per second before DynamoDB returns a
--   <tt>ThrottlingException.</tt></li>
--   <li><a>ugtsReplicaSettingsUpdate</a> - Represents the settings for a
--   global table in a region that will be modified.</li>
--   <li><a>ugtsGlobalTableGlobalSecondaryIndexSettingsUpdate</a> -
--   Represents the settings of a global secondary index for a global table
--   that will be modified.</li>
--   <li><a>ugtsGlobalTableName</a> - The name of the global table</li>
--   </ul>
updateGlobalTableSettings :: Text -> UpdateGlobalTableSettings

-- | <i>See:</i> <a>updateGlobalTableSettings</a> smart constructor.
data UpdateGlobalTableSettings

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException.</tt>
ugtsGlobalTableProvisionedWriteCapacityUnits :: Lens' UpdateGlobalTableSettings (Maybe Natural)

-- | Represents the settings for a global table in a region that will be
--   modified.
ugtsReplicaSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe (NonEmpty ReplicaSettingsUpdate))

-- | Represents the settings of a global secondary index for a global table
--   that will be modified.
ugtsGlobalTableGlobalSecondaryIndexSettingsUpdate :: Lens' UpdateGlobalTableSettings (Maybe (NonEmpty GlobalTableGlobalSecondaryIndexSettingsUpdate))

-- | The name of the global table
ugtsGlobalTableName :: Lens' UpdateGlobalTableSettings Text

-- | Creates a value of <a>UpdateGlobalTableSettingsResponse</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>ugtsrsReplicaSettings</a> - The region specific settings for
--   the global table.</li>
--   <li><a>ugtsrsGlobalTableName</a> - The name of the global table.</li>
--   <li><a>ugtsrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
updateGlobalTableSettingsResponse :: Int -> UpdateGlobalTableSettingsResponse

-- | <i>See:</i> <a>updateGlobalTableSettingsResponse</a> smart
--   constructor.
data UpdateGlobalTableSettingsResponse

-- | The region specific settings for the global table.
ugtsrsReplicaSettings :: Lens' UpdateGlobalTableSettingsResponse [ReplicaSettingsDescription]

-- | The name of the global table.
ugtsrsGlobalTableName :: Lens' UpdateGlobalTableSettingsResponse (Maybe Text)

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


-- | Edits an existing item's attributes, or adds a new item to the table
--   if it does not already exist. You can put, delete, or add attribute
--   values. You can also perform a conditional update on an existing item
--   (insert a new attribute name-value pair if it doesn't exist, or
--   replace an existing name-value pair if it has certain expected
--   attribute values).
--   
--   You can also return the item's attribute values in the same
--   <tt>UpdateItem</tt> operation using the <tt>ReturnValues</tt>
--   parameter.
module Network.AWS.DynamoDB.UpdateItem

-- | Creates a value of <a>UpdateItem</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>uiExpressionAttributeNames</a> - One or more substitution
--   tokens for attribute names in an expression. The following are some
--   use cases for using <tt>ExpressionAttributeNames</tt> : * To access an
--   attribute whose name conflicts with a DynamoDB reserved word. * To
--   create a placeholder for repeating occurrences of an attribute name in
--   an expression. * To prevent special characters in an attribute name
--   from being misinterpreted in an expression. Use the <b>#</b> character
--   in an expression to dereference an attribute name. For example,
--   consider the following attribute name: * <tt>Percentile</tt> The name
--   of this attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>uiReturnValues</a> - Use <tt>ReturnValues</tt> if you want to
--   get the item attributes as they appear before or after they are
--   updated. For <tt>UpdateItem</tt> , the valid values are: *
--   <tt>NONE</tt> - If <tt>ReturnValues</tt> is not specified, or if its
--   value is <tt>NONE</tt> , then nothing is returned. (This setting is
--   the default for <tt>ReturnValues</tt> .) * <tt>ALL_OLD</tt> - Returns
--   all of the attributes of the item, as they appeared before the
--   UpdateItem operation. * <tt>UPDATED_OLD</tt> - Returns only the
--   updated attributes, as they appeared before the UpdateItem operation.
--   * <tt>ALL_NEW</tt> - Returns all of the attributes of the item, as
--   they appear after the UpdateItem operation. * <tt>UPDATED_NEW</tt> -
--   Returns only the updated attributes, as they appear after the
--   UpdateItem operation. There is no additional cost associated with
--   requesting a return value aside from the small network and processing
--   overhead of receiving a larger response. No read capacity units are
--   consumed. The values returned are strongly consistent.</li>
--   <li><a>uiUpdateExpression</a> - An expression that defines one or more
--   attributes to be updated, the action to be performed on them, and new
--   value(s) for them. The following action values are available for
--   <tt>UpdateExpression</tt> . * <tt>SET</tt> - Adds one or more
--   attributes and values to an item. If any of these attribute already
--   exist, they are replaced by the new values. You can also use
--   <tt>SET</tt> to add or subtract from an attribute that is of type
--   Number. For example: <tt>SET myNum = myNum + :val</tt> <tt>SET</tt>
--   supports the following functions: * <tt>if_not_exists (path,
--   operand)</tt> - if the item does not contain an attribute at the
--   specified path, then <tt>if_not_exists</tt> evaluates to operand;
--   otherwise, it evaluates to path. You can use this function to avoid
--   overwriting an attribute that may already be present in the item. *
--   <tt>list_append (operand, operand)</tt> - evaluates to a list with a
--   new element added to it. You can append the new element to the start
--   or the end of the list by reversing the order of the operands. These
--   function names are case-sensitive. * <tt>REMOVE</tt> - Removes one or
--   more attributes from an item. * <tt>ADD</tt> - Adds the specified
--   value to the item, if the attribute does not already exist. If the
--   attribute does exist, then the behavior of <tt>ADD</tt> depends on the
--   data type of the attribute: * If the existing attribute is a number,
--   and if <tt>Value</tt> is also a number, then <tt>Value</tt> is
--   mathematically added to the existing attribute. If <tt>Value</tt> is a
--   negative number, then it is subtracted from the existing attribute. *
--   If the existing data type is a set and if <tt>Value</tt> is also a
--   set, then <tt>Value</tt> is added to the existing set. For example, if
--   the attribute value is the set <tt>[1,2]</tt> , and the <tt>ADD</tt>
--   action specified <tt>[3]</tt> , then the final attribute value is
--   <tt>[1,2,3]</tt> . An error occurs if an <tt>ADD</tt> action is
--   specified for a set attribute and the attribute type specified does
--   not match the existing set type. Both sets must have the same
--   primitive data type. For example, if the existing data type is a set
--   of strings, the <tt>Value</tt> must also be a set of strings.
--   <i>Important:</i> The <tt>ADD</tt> action only supports Number and set
--   data types. In addition, <tt>ADD</tt> can only be used on top-level
--   attributes, not nested attributes. * <tt>DELETE</tt> - Deletes an
--   element from a set. If a set of values is specified, then those values
--   are subtracted from the old set. For example, if the attribute value
--   was the set <tt>[a,b,c]</tt> and the <tt>DELETE</tt> action specifies
--   <tt>[a,c]</tt> , then the final attribute value is <tt>[b]</tt> .
--   Specifying an empty set is an error. <i>Important:</i> The
--   <tt>DELETE</tt> action only supports set data types. In addition,
--   <tt>DELETE</tt> can only be used on top-level attributes, not nested
--   attributes. You can have many actions in a single expression, such as
--   the following: <tt>SET a=:value1, b=:value2 DELETE :value3, :value4,
--   :value5</tt> For more information on update expressions, see
--   <a>Modifying Items and Attributes</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>uiExpressionAttributeValues</a> - One or more values that can
--   be substituted in an expression. Use the <b>:</b> (colon) character in
--   an expression to dereference an attribute value. For example, suppose
--   that you wanted to check whether the value of the <i>ProductStatus</i>
--   attribute was one of the following: <tt>Available | Backordered |
--   Discontinued</tt> You would first need to specify
--   <tt>ExpressionAttributeValues</tt> as follows: <tt>{
--   ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>uiAttributeUpdates</a> - This is a legacy parameter. Use
--   <tt>UpdateExpression</tt> instead. For more information, see
--   <a>AttributeUpdates</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>uiReturnConsumedCapacity</a> - Undocumented member.</li>
--   <li><a>uiReturnItemCollectionMetrics</a> - Determines whether item
--   collection metrics are returned. If set to <tt>SIZE</tt> , the
--   response includes statistics about item collections, if any, that were
--   modified during the operation are returned in the response. If set to
--   <tt>NONE</tt> (the default), no statistics are returned.</li>
--   <li><a>uiConditionExpression</a> - A condition that must be satisfied
--   in order for a conditional update to succeed. An expression can
--   contain any of the following: * Functions: <tt>attribute_exists |
--   attribute_not_exists | attribute_type | contains | begins_with |
--   size</tt> These function names are case-sensitive. * Comparison
--   operators: <tt>= | &lt;&gt; | <a>|</a> | <a>|</a>= | BETWEEN | IN
--   </tt> * Logical operators: <tt>AND | OR | NOT</tt> For more
--   information on condition expressions, see <a>Specifying Conditions</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>uiConditionalOperator</a> - This is a legacy parameter. Use
--   <tt>ConditionExpression</tt> instead. For more information, see
--   <a>ConditionalOperator</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>uiExpected</a> - This is a legacy parameter. Use
--   <tt>ConditionExpression</tt> instead. For more information, see
--   <a>Expected</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>uiTableName</a> - The name of the table containing the item to
--   update.</li>
--   <li><a>uiKey</a> - The primary key of the item to be updated. Each
--   element consists of an attribute name and a value for that attribute.
--   For the primary key, you must provide all of the attributes. For
--   example, with a simple primary key, you only need to provide a value
--   for the partition key. For a composite primary key, you must provide
--   values for both the partition key and the sort key.</li>
--   </ul>
updateItem :: Text -> UpdateItem

-- | Represents the input of an <tt>UpdateItem</tt> operation.
--   
--   <i>See:</i> <a>updateItem</a> smart constructor.
data UpdateItem

-- | One or more substitution tokens for attribute names in an expression.
--   The following are some use cases for using
--   <tt>ExpressionAttributeNames</tt> : * To access an attribute whose
--   name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
uiExpressionAttributeNames :: Lens' UpdateItem (HashMap Text Text)

-- | Use <tt>ReturnValues</tt> if you want to get the item attributes as
--   they appear before or after they are updated. For <tt>UpdateItem</tt>
--   , the valid values are: * <tt>NONE</tt> - If <tt>ReturnValues</tt> is
--   not specified, or if its value is <tt>NONE</tt> , then nothing is
--   returned. (This setting is the default for <tt>ReturnValues</tt> .) *
--   <tt>ALL_OLD</tt> - Returns all of the attributes of the item, as they
--   appeared before the UpdateItem operation. * <tt>UPDATED_OLD</tt> -
--   Returns only the updated attributes, as they appeared before the
--   UpdateItem operation. * <tt>ALL_NEW</tt> - Returns all of the
--   attributes of the item, as they appear after the UpdateItem operation.
--   * <tt>UPDATED_NEW</tt> - Returns only the updated attributes, as they
--   appear after the UpdateItem operation. There is no additional cost
--   associated with requesting a return value aside from the small network
--   and processing overhead of receiving a larger response. No read
--   capacity units are consumed. The values returned are strongly
--   consistent.
uiReturnValues :: Lens' UpdateItem (Maybe ReturnValue)

-- | An expression that defines one or more attributes to be updated, the
--   action to be performed on them, and new value(s) for them. The
--   following action values are available for <tt>UpdateExpression</tt> .
--   * <tt>SET</tt> - Adds one or more attributes and values to an item. If
--   any of these attribute already exist, they are replaced by the new
--   values. You can also use <tt>SET</tt> to add or subtract from an
--   attribute that is of type Number. For example: <tt>SET myNum = myNum +
--   :val</tt> <tt>SET</tt> supports the following functions: *
--   <tt>if_not_exists (path, operand)</tt> - if the item does not contain
--   an attribute at the specified path, then <tt>if_not_exists</tt>
--   evaluates to operand; otherwise, it evaluates to path. You can use
--   this function to avoid overwriting an attribute that may already be
--   present in the item. * <tt>list_append (operand, operand)</tt> -
--   evaluates to a list with a new element added to it. You can append the
--   new element to the start or the end of the list by reversing the order
--   of the operands. These function names are case-sensitive. *
--   <tt>REMOVE</tt> - Removes one or more attributes from an item. *
--   <tt>ADD</tt> - Adds the specified value to the item, if the attribute
--   does not already exist. If the attribute does exist, then the behavior
--   of <tt>ADD</tt> depends on the data type of the attribute: * If the
--   existing attribute is a number, and if <tt>Value</tt> is also a
--   number, then <tt>Value</tt> is mathematically added to the existing
--   attribute. If <tt>Value</tt> is a negative number, then it is
--   subtracted from the existing attribute. * If the existing data type is
--   a set and if <tt>Value</tt> is also a set, then <tt>Value</tt> is
--   added to the existing set. For example, if the attribute value is the
--   set <tt>[1,2]</tt> , and the <tt>ADD</tt> action specified
--   <tt>[3]</tt> , then the final attribute value is <tt>[1,2,3]</tt> . An
--   error occurs if an <tt>ADD</tt> action is specified for a set
--   attribute and the attribute type specified does not match the existing
--   set type. Both sets must have the same primitive data type. For
--   example, if the existing data type is a set of strings, the
--   <tt>Value</tt> must also be a set of strings. <i>Important:</i> The
--   <tt>ADD</tt> action only supports Number and set data types. In
--   addition, <tt>ADD</tt> can only be used on top-level attributes, not
--   nested attributes. * <tt>DELETE</tt> - Deletes an element from a set.
--   If a set of values is specified, then those values are subtracted from
--   the old set. For example, if the attribute value was the set
--   <tt>[a,b,c]</tt> and the <tt>DELETE</tt> action specifies
--   <tt>[a,c]</tt> , then the final attribute value is <tt>[b]</tt> .
--   Specifying an empty set is an error. <i>Important:</i> The
--   <tt>DELETE</tt> action only supports set data types. In addition,
--   <tt>DELETE</tt> can only be used on top-level attributes, not nested
--   attributes. You can have many actions in a single expression, such as
--   the following: <tt>SET a=:value1, b=:value2 DELETE :value3, :value4,
--   :value5</tt> For more information on update expressions, see
--   <a>Modifying Items and Attributes</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
uiUpdateExpression :: Lens' UpdateItem (Maybe Text)

-- | One or more values that can be substituted in an expression. Use the
--   <b>:</b> (colon) character in an expression to dereference an
--   attribute value. For example, suppose that you wanted to check whether
--   the value of the <i>ProductStatus</i> attribute was one of the
--   following: <tt>Available | Backordered | Discontinued</tt> You would
--   first need to specify <tt>ExpressionAttributeValues</tt> as follows:
--   <tt>{ ":avail":{<a>S</a>:<a>Available</a>},
--   ":back":{<a>S</a>:<a>Backordered</a>},
--   ":disc":{<a>S</a>:<a>Discontinued</a>} }</tt> You could then use these
--   values in an expression, such as this: <tt>ProductStatus IN (:avail,
--   :back, :disc)</tt> For more information on expression attribute
--   values, see <a>Specifying Conditions</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
uiExpressionAttributeValues :: Lens' UpdateItem (HashMap Text AttributeValue)

-- | This is a legacy parameter. Use <tt>UpdateExpression</tt> instead. For
--   more information, see <a>AttributeUpdates</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
uiAttributeUpdates :: Lens' UpdateItem (HashMap Text AttributeValueUpdate)

-- | Undocumented member.
uiReturnConsumedCapacity :: Lens' UpdateItem (Maybe ReturnConsumedCapacity)

-- | Determines whether item collection metrics are returned. If set to
--   <tt>SIZE</tt> , the response includes statistics about item
--   collections, if any, that were modified during the operation are
--   returned in the response. If set to <tt>NONE</tt> (the default), no
--   statistics are returned.
uiReturnItemCollectionMetrics :: Lens' UpdateItem (Maybe ReturnItemCollectionMetrics)

-- | A condition that must be satisfied in order for a conditional update
--   to succeed. An expression can contain any of the following: *
--   Functions: <tt>attribute_exists | attribute_not_exists |
--   attribute_type | contains | begins_with | size</tt> These function
--   names are case-sensitive. * Comparison operators: <tt>= | &lt;&gt; |
--   <a>|</a> | <a>|</a>= | BETWEEN | IN </tt> * Logical operators: <tt>AND
--   | OR | NOT</tt> For more information on condition expressions, see
--   <a>Specifying Conditions</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .
uiConditionExpression :: Lens' UpdateItem (Maybe Text)

-- | This is a legacy parameter. Use <tt>ConditionExpression</tt> instead.
--   For more information, see <a>ConditionalOperator</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
uiConditionalOperator :: Lens' UpdateItem (Maybe ConditionalOperator)

-- | This is a legacy parameter. Use <tt>ConditionExpression</tt> instead.
--   For more information, see <a>Expected</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
uiExpected :: Lens' UpdateItem (HashMap Text ExpectedAttributeValue)

-- | The name of the table containing the item to update.
uiTableName :: Lens' UpdateItem Text

-- | The primary key of the item to be updated. Each element consists of an
--   attribute name and a value for that attribute. For the primary key,
--   you must provide all of the attributes. For example, with a simple
--   primary key, you only need to provide a value for the partition key.
--   For a composite primary key, you must provide values for both the
--   partition key and the sort key.
uiKey :: Lens' UpdateItem (HashMap Text AttributeValue)

-- | Creates a value of <a>UpdateItemResponse</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>uirsItemCollectionMetrics</a> - Information about item
--   collections, if any, that were affected by the <tt>UpdateItem</tt>
--   operation. <tt>ItemCollectionMetrics</tt> is only returned if the
--   <tt>ReturnItemCollectionMetrics</tt> parameter was specified. If the
--   table does not have any local secondary indexes, this information is
--   not returned in the response. Each <tt>ItemCollectionMetrics</tt>
--   element consists of: * <tt>ItemCollectionKey</tt> - The partition key
--   value of the item collection. This is the same as the partition key
--   value of the item itself. * <tt>SizeEstimateRangeGB</tt> - An estimate
--   of item collection size, in gigabytes. This value is a two-element
--   array containing a lower bound and an upper bound for the estimate.
--   The estimate includes the size of all the items in the table, plus the
--   size of all attributes projected into all of the local secondary
--   indexes on that table. Use this estimate to measure whether a local
--   secondary index is approaching its size limit. The estimate is subject
--   to change over time; therefore, do not rely on the precision or
--   accuracy of the estimate.</li>
--   <li><a>uirsConsumedCapacity</a> - The capacity units consumed by the
--   <tt>UpdateItem</tt> operation. The data returned includes the total
--   provisioned throughput consumed, along with statistics for the table
--   and any indexes involved in the operation. <tt>ConsumedCapacity</tt>
--   is only returned if the <tt>ReturnConsumedCapacity</tt> parameter was
--   specified. For more information, see <a>Provisioned Throughput</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>uirsAttributes</a> - A map of attribute values as they appear
--   before or after the <tt>UpdateItem</tt> operation, as determined by
--   the <tt>ReturnValues</tt> parameter. The <tt>Attributes</tt> map is
--   only present if <tt>ReturnValues</tt> was specified as something other
--   than <tt>NONE</tt> in the request. Each element represents one
--   attribute.</li>
--   <li><a>uirsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
updateItemResponse :: Int -> UpdateItemResponse

-- | Represents the output of an <tt>UpdateItem</tt> operation.
--   
--   <i>See:</i> <a>updateItemResponse</a> smart constructor.
data UpdateItemResponse

-- | Information about item collections, if any, that were affected by the
--   <tt>UpdateItem</tt> operation. <tt>ItemCollectionMetrics</tt> is only
--   returned if the <tt>ReturnItemCollectionMetrics</tt> parameter was
--   specified. If the table does not have any local secondary indexes,
--   this information is not returned in the response. Each
--   <tt>ItemCollectionMetrics</tt> element consists of: *
--   <tt>ItemCollectionKey</tt> - The partition key value of the item
--   collection. This is the same as the partition key value of the item
--   itself. * <tt>SizeEstimateRangeGB</tt> - An estimate of item
--   collection size, in gigabytes. This value is a two-element array
--   containing a lower bound and an upper bound for the estimate. The
--   estimate includes the size of all the items in the table, plus the
--   size of all attributes projected into all of the local secondary
--   indexes on that table. Use this estimate to measure whether a local
--   secondary index is approaching its size limit. The estimate is subject
--   to change over time; therefore, do not rely on the precision or
--   accuracy of the estimate.
uirsItemCollectionMetrics :: Lens' UpdateItemResponse (Maybe ItemCollectionMetrics)

-- | The capacity units consumed by the <tt>UpdateItem</tt> operation. The
--   data returned includes the total provisioned throughput consumed,
--   along with statistics for the table and any indexes involved in the
--   operation. <tt>ConsumedCapacity</tt> is only returned if the
--   <tt>ReturnConsumedCapacity</tt> parameter was specified. For more
--   information, see <a>Provisioned Throughput</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
uirsConsumedCapacity :: Lens' UpdateItemResponse (Maybe ConsumedCapacity)

-- | A map of attribute values as they appear before or after the
--   <tt>UpdateItem</tt> operation, as determined by the
--   <tt>ReturnValues</tt> parameter. The <tt>Attributes</tt> map is only
--   present if <tt>ReturnValues</tt> was specified as something other than
--   <tt>NONE</tt> in the request. Each element represents one attribute.
uirsAttributes :: Lens' UpdateItemResponse (HashMap Text AttributeValue)

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


-- | Modifies the provisioned throughput settings, global secondary
--   indexes, or DynamoDB Streams settings for a given table.
--   
--   You can only perform one of the following operations at once:
--   
--   <ul>
--   <li>Modify the provisioned throughput settings of the table.</li>
--   <li>Enable or disable Streams on the table.</li>
--   <li>Remove a global secondary index from the table.</li>
--   <li>Create a new global secondary index on the table. Once the index
--   begins backfilling, you can use <tt>UpdateTable</tt> to perform other
--   operations.</li>
--   </ul>
--   
--   <tt>UpdateTable</tt> is an asynchronous operation; while it is
--   executing, the table status changes from <tt>ACTIVE</tt> to
--   <tt>UPDATING</tt> . While it is <tt>UPDATING</tt> , you cannot issue
--   another <tt>UpdateTable</tt> request. When the table returns to the
--   <tt>ACTIVE</tt> state, the <tt>UpdateTable</tt> operation is complete.
module Network.AWS.DynamoDB.UpdateTable

-- | Creates a value of <a>UpdateTable</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>utAttributeDefinitions</a> - An array of attributes that
--   describe the key schema for the table and indexes. If you are adding a
--   new global secondary index to the table, <tt>AttributeDefinitions</tt>
--   must include the key element(s) of the new index.</li>
--   <li><a>utProvisionedThroughput</a> - The new provisioned throughput
--   settings for the specified table or index.</li>
--   <li><a>utGlobalSecondaryIndexUpdates</a> - An array of one or more
--   global secondary indexes for the table. For each index in the array,
--   you can request one action: * <tt>Create</tt> - add a new global
--   secondary index to the table. * <tt>Update</tt> - modify the
--   provisioned throughput settings of an existing global secondary index.
--   * <tt>Delete</tt> - remove a global secondary index from the table.
--   For more information, see <a>Managing Global Secondary Indexes</a> in
--   the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>utStreamSpecification</a> - Represents the DynamoDB Streams
--   configuration for the table.</li>
--   <li><a>utTableName</a> - The name of the table to be updated.</li>
--   </ul>
updateTable :: Text -> UpdateTable

-- | Represents the input of an <tt>UpdateTable</tt> operation.
--   
--   <i>See:</i> <a>updateTable</a> smart constructor.
data UpdateTable

-- | An array of attributes that describe the key schema for the table and
--   indexes. If you are adding a new global secondary index to the table,
--   <tt>AttributeDefinitions</tt> must include the key element(s) of the
--   new index.
utAttributeDefinitions :: Lens' UpdateTable [AttributeDefinition]

-- | The new provisioned throughput settings for the specified table or
--   index.
utProvisionedThroughput :: Lens' UpdateTable (Maybe ProvisionedThroughput)

-- | An array of one or more global secondary indexes for the table. For
--   each index in the array, you can request one action: * <tt>Create</tt>
--   - add a new global secondary index to the table. * <tt>Update</tt> -
--   modify the provisioned throughput settings of an existing global
--   secondary index. * <tt>Delete</tt> - remove a global secondary index
--   from the table. For more information, see <a>Managing Global Secondary
--   Indexes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
utGlobalSecondaryIndexUpdates :: Lens' UpdateTable [GlobalSecondaryIndexUpdate]

-- | Represents the DynamoDB Streams configuration for the table.
utStreamSpecification :: Lens' UpdateTable (Maybe StreamSpecification)

-- | The name of the table to be updated.
utTableName :: Lens' UpdateTable Text

-- | Creates a value of <a>UpdateTableResponse</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>utrsTableDescription</a> - Represents the properties of the
--   table.</li>
--   <li><a>utrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
updateTableResponse :: Int -> UpdateTableResponse

-- | Represents the output of an <tt>UpdateTable</tt> operation.
--   
--   <i>See:</i> <a>updateTableResponse</a> smart constructor.
data UpdateTableResponse

-- | Represents the properties of the table.
utrsTableDescription :: Lens' UpdateTableResponse (Maybe TableDescription)

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


-- | The UpdateTimeToLive method will enable or disable TTL for the
--   specified table. A successful <tt>UpdateTimeToLive</tt> call returns
--   the current <tt>TimeToLiveSpecification</tt> ; it may take up to one
--   hour for the change to fully process. Any additional
--   <tt>UpdateTimeToLive</tt> calls for the same table during this one
--   hour duration result in a <tt>ValidationException</tt> .
--   
--   TTL compares the current time in epoch time format to the time stored
--   in the TTL attribute of an item. If the epoch time value stored in the
--   attribute is less than the current time, the item is marked as expired
--   and subsequently deleted.
--   
--   DynamoDB deletes expired items on a best-effort basis to ensure
--   availability of throughput for other data operations.
--   
--   <i>Important:</i> DynamoDB typically deletes expired items within two
--   days of expiration. The exact duration within which an item gets
--   deleted after expiration is specific to the nature of the workload.
--   Items that have expired and not been deleted will still show up in
--   reads, queries, and scans.
--   
--   As items are deleted, they are removed from any Local Secondary Index
--   and Global Secondary Index immediately in the same eventually
--   consistent way as a standard delete operation.
--   
--   For more information, see <a>Time To Live</a> in the Amazon DynamoDB
--   Developer Guide.
module Network.AWS.DynamoDB.UpdateTimeToLive

-- | Creates a value of <a>UpdateTimeToLive</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>uttlTableName</a> - The name of the table to be
--   configured.</li>
--   <li><a>uttlTimeToLiveSpecification</a> - Represents the settings used
--   to enable or disable Time to Live for the specified table.</li>
--   </ul>
updateTimeToLive :: Text -> TimeToLiveSpecification -> UpdateTimeToLive

-- | Represents the input of an <tt>UpdateTimeToLive</tt> operation.
--   
--   <i>See:</i> <a>updateTimeToLive</a> smart constructor.
data UpdateTimeToLive

-- | The name of the table to be configured.
uttlTableName :: Lens' UpdateTimeToLive Text

-- | Represents the settings used to enable or disable Time to Live for the
--   specified table.
uttlTimeToLiveSpecification :: Lens' UpdateTimeToLive TimeToLiveSpecification

-- | Creates a value of <a>UpdateTimeToLiveResponse</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>uttlrsTimeToLiveSpecification</a> - Represents the output of an
--   <tt>UpdateTimeToLive</tt> operation.</li>
--   <li><a>uttlrsResponseStatus</a> - -- | The response status code.</li>
--   </ul>
updateTimeToLiveResponse :: Int -> UpdateTimeToLiveResponse

-- | <i>See:</i> <a>updateTimeToLiveResponse</a> smart constructor.
data UpdateTimeToLiveResponse

-- | Represents the output of an <tt>UpdateTimeToLive</tt> operation.
uttlrsTimeToLiveSpecification :: Lens' UpdateTimeToLiveResponse (Maybe TimeToLiveSpecification)

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


module Network.AWS.DynamoDB.Waiters

-- | Polls <a>DescribeTable</a> every 20 seconds until a successful state
--   is reached. An error is returned after 25 failed checks.
tableNotExists :: Wait DescribeTable

-- | Polls <a>DescribeTable</a> every 20 seconds until a successful state
--   is reached. An error is returned after 25 failed checks.
tableExists :: Wait DescribeTable


-- | <b>Amazon DynamoDB</b>
--   
--   Amazon DynamoDB is a fully managed NoSQL database service that
--   provides fast and predictable performance with seamless scalability.
--   DynamoDB lets you offload the administrative burdens of operating and
--   scaling a distributed database, so that you don't have to worry about
--   hardware provisioning, setup and configuration, replication, software
--   patching, or cluster scaling.
--   
--   With DynamoDB, you can create database tables that can store and
--   retrieve any amount of data, and serve any level of request traffic.
--   You can scale up or scale down your tables' throughput capacity
--   without downtime or performance degradation, and use the AWS
--   Management Console to monitor resource utilization and performance
--   metrics.
--   
--   DynamoDB automatically spreads the data and traffic for your tables
--   over a sufficient number of servers to handle your throughput and
--   storage requirements, while maintaining consistent and fast
--   performance. All of your data is stored on solid state disks (SSDs)
--   and automatically replicated across multiple Availability Zones in an
--   AWS region, providing built-in high availability and data durability.
module Network.AWS.DynamoDB

-- | API version <tt>2012-08-10</tt> of the Amazon DynamoDB SDK
--   configuration.
dynamoDB :: Service

-- | Backup not found for the given BackupARN.
_BackupNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | A target table with the specified name is either being created or
--   deleted.
_TableInUseException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Backups have not yet been enabled for this table.
_ContinuousBackupsUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Your request rate is too high. The AWS SDKs for DynamoDB automatically
--   retry requests that receive this exception. Your request is eventually
--   successful, unless your retry queue is too large to finish. Reduce the
--   frequency of requests and use exponential backoff. For more
--   information, go to <a>Error Retries and Exponential Backoff</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
_ProvisionedThroughputExceededException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified global table does not exist.
_GlobalTableNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | A condition specified in the operation could not be evaluated.
_ConditionalCheckFailedException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified global table already exists.
_GlobalTableAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified replica is no longer part of the global table.
_ReplicaNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | A target table with the specified name already exists.
_TableAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError

-- | An item collection is too large. This exception is only returned for
--   tables that have one or more local secondary indexes.
_ItemCollectionSizeLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError

-- | An error occurred on the server side.
_InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError

-- | A source table with the name <tt>TableName</tt> does not currently
--   exist within the subscriber's account.
_TableNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The operation tried to access a nonexistent index.
_IndexNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | There is another ongoing conflicting backup control plane operation on
--   the table. The backups is either being created, deleted or restored to
--   a table.
_BackupInUseException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Point in time recovery has not yet been enabled for this source table.
_PointInTimeRecoveryUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError

-- | An invalid restore time was specified. RestoreDateTime must be between
--   EarliestRestorableDateTime and LatestRestorableDateTime.
_InvalidRestoreTimeException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The operation tried to access a nonexistent table or index. The
--   resource might not be specified correctly, or its status might not be
--   <tt>ACTIVE</tt> .
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The specified replica is already part of the global table.
_ReplicaAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Up to 50 <tt>CreateBackup</tt> operations are allowed per second, per
--   account. There is no limit to the number of daily on-demand backups
--   that can be taken.
--   
--   Up to 10 simultaneous table operations are allowed per account. These
--   operations include <tt>CreateTable</tt> , <tt>UpdateTable</tt> ,
--   <tt>DeleteTable</tt> ,<tt>UpdateTimeToLive</tt> ,
--   <tt>RestoreTableFromBackup</tt> , and
--   <tt>RestoreTableToPointInTime</tt> .
--   
--   For tables with secondary indexes, only one of those tables can be in
--   the <tt>CREATING</tt> state at any point in time. Do not attempt to
--   create more than one such table simultaneously.
--   
--   The total limit of tables in the <tt>ACTIVE</tt> state is 250.
_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError

-- | The operation conflicts with the resource's availability. For example,
--   you attempted to recreate an existing table, or tried to delete a
--   table currently in the <tt>CREATING</tt> state.
_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError

-- | Polls <a>DescribeTable</a> every 20 seconds until a successful state
--   is reached. An error is returned after 25 failed checks.
tableNotExists :: Wait DescribeTable

-- | Polls <a>DescribeTable</a> every 20 seconds until a successful state
--   is reached. An error is returned after 25 failed checks.
tableExists :: Wait DescribeTable
data AttributeAction
Add :: AttributeAction
Delete :: AttributeAction
Put :: AttributeAction
data BackupStatus
Available :: BackupStatus
Creating :: BackupStatus
Deleted :: BackupStatus
data ComparisonOperator
BeginsWith :: ComparisonOperator
Between :: ComparisonOperator
Contains :: ComparisonOperator
EQ' :: ComparisonOperator
GE :: ComparisonOperator
GT' :: ComparisonOperator
IN :: ComparisonOperator
LE :: ComparisonOperator
LT' :: ComparisonOperator
NE :: ComparisonOperator
NotContains :: ComparisonOperator
NotNull :: ComparisonOperator
Null :: ComparisonOperator
data ConditionalOperator
And :: ConditionalOperator
OR :: ConditionalOperator
data ContinuousBackupsStatus
CBSDisabled :: ContinuousBackupsStatus
CBSEnabled :: ContinuousBackupsStatus
data GlobalTableStatus
GTSActive :: GlobalTableStatus
GTSCreating :: GlobalTableStatus
GTSDeleting :: GlobalTableStatus
GTSUpdating :: GlobalTableStatus
data IndexStatus
ISActive :: IndexStatus
ISCreating :: IndexStatus
ISDeleting :: IndexStatus
ISUpdating :: IndexStatus
data KeyType
Hash :: KeyType
Range :: KeyType
data PointInTimeRecoveryStatus
PITRSDisabled :: PointInTimeRecoveryStatus
PITRSEnabled :: PointInTimeRecoveryStatus
data ProjectionType
PTAll :: ProjectionType
PTInclude :: ProjectionType
PTKeysOnly :: ProjectionType
data ReplicaStatus
RSActive :: ReplicaStatus
RSCreating :: ReplicaStatus
RSDeleting :: ReplicaStatus
RSUpdating :: ReplicaStatus

-- | Determines the level of detail about provisioned throughput
--   consumption that is returned in the response:
--   
--   <ul>
--   <li><tt>INDEXES</tt> - The response includes the aggregate
--   <tt>ConsumedCapacity</tt> for the operation, together with
--   <tt>ConsumedCapacity</tt> for each table and secondary index that was
--   accessed.</li>
--   </ul>
--   
--   Note that some operations, such as <tt>GetItem</tt> and
--   <tt>BatchGetItem</tt> , do not access any indexes at all. In these
--   cases, specifying <tt>INDEXES</tt> will only return
--   <tt>ConsumedCapacity</tt> information for table(s).
--   
--   <ul>
--   <li><tt>TOTAL</tt> - The response includes only the aggregate
--   <tt>ConsumedCapacity</tt> for the operation.</li>
--   <li><tt>NONE</tt> - No <tt>ConsumedCapacity</tt> details are included
--   in the response.</li>
--   </ul>
data ReturnConsumedCapacity
RCCIndexes :: ReturnConsumedCapacity
RCCNone :: ReturnConsumedCapacity
RCCTotal :: ReturnConsumedCapacity
data ReturnItemCollectionMetrics
RICMNone :: ReturnItemCollectionMetrics
RICMSize :: ReturnItemCollectionMetrics
data ReturnValue
AllNew :: ReturnValue
AllOld :: ReturnValue
None :: ReturnValue
UpdatedNew :: ReturnValue
UpdatedOld :: ReturnValue
data SSEStatus
SSESDisabled :: SSEStatus
SSESDisabling :: SSEStatus
SSESEnabled :: SSEStatus
SSESEnabling :: SSEStatus
data ScalarAttributeType
B :: ScalarAttributeType
N :: ScalarAttributeType
S :: ScalarAttributeType
data Select
AllAttributes :: Select
AllProjectedAttributes :: Select
Count :: Select
SpecificAttributes :: Select
data StreamViewType
KeysOnly :: StreamViewType
NewAndOldImages :: StreamViewType
NewImage :: StreamViewType
OldImage :: StreamViewType
data TableStatus
TSActive :: TableStatus
TSCreating :: TableStatus
TSDeleting :: TableStatus
TSUpdating :: TableStatus
data TimeToLiveStatus
Disabled :: TimeToLiveStatus
Disabling :: TimeToLiveStatus
Enabled :: TimeToLiveStatus
Enabling :: TimeToLiveStatus

-- | Represents an attribute for describing the key schema for the table
--   and indexes.
--   
--   <i>See:</i> <a>attributeDefinition</a> smart constructor.
data AttributeDefinition

-- | Creates a value of <a>AttributeDefinition</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>adAttributeName</a> - A name for the attribute.</li>
--   <li><a>adAttributeType</a> - The data type for the attribute, where: *
--   <tt>S</tt> - the attribute is of type String * <tt>N</tt> - the
--   attribute is of type Number * <tt>B</tt> - the attribute is of type
--   Binary</li>
--   </ul>
attributeDefinition :: Text -> ScalarAttributeType -> AttributeDefinition

-- | A name for the attribute.
adAttributeName :: Lens' AttributeDefinition Text

-- | The data type for the attribute, where: * <tt>S</tt> - the attribute
--   is of type String * <tt>N</tt> - the attribute is of type Number *
--   <tt>B</tt> - the attribute is of type Binary
adAttributeType :: Lens' AttributeDefinition ScalarAttributeType

-- | Represents the data for an attribute.
--   
--   Each attribute value is described as a name-value pair. The name is
--   the data type, and the value is the data itself.
--   
--   For more information, see <a>Data Types</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
--   
--   <i>See:</i> <a>attributeValue</a> smart constructor.
data AttributeValue

-- | Creates a value of <a>AttributeValue</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>avL</a> - An attribute of type List. For example: <tt><a>L</a>:
--   [<a>Cookies</a>, <a>Coffee</a>, 3.14159]</tt></li>
--   <li><a>avNS</a> - An attribute of type Number Set. For example:
--   <tt><a>NS</a>: ["42.2", "-19", "7.5", "3.14"]</tt> Numbers are sent
--   across the network to DynamoDB as strings, to maximize compatibility
--   across languages and libraries. However, DynamoDB treats them as
--   number type attributes for mathematical operations.</li>
--   <li><a>avM</a> - An attribute of type Map. For example: <tt><a>M</a>:
--   {<a>Name</a>: {<a>S</a>: <a>Joe</a>}, <a>Age</a>: {<a>N</a>:
--   "35"}}</tt></li>
--   <li><a>avNULL</a> - An attribute of type Null. For example:
--   <tt><a>NULL</a>: true</tt></li>
--   <li><a>avN</a> - An attribute of type Number. For example:
--   <tt><a>N</a>: "123.45"</tt> Numbers are sent across the network to
--   DynamoDB as strings, to maximize compatibility across languages and
--   libraries. However, DynamoDB treats them as number type attributes for
--   mathematical operations.</li>
--   <li><a>avBS</a> - An attribute of type Binary Set. For example:
--   <tt><a>BS</a>: ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]</tt></li>
--   <li><a>avB</a> - An attribute of type Binary. For example:
--   <tt><a>B</a>: "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"</tt> --
--   <i>Note:</i> This <tt>Lens</tt> automatically encodes and decodes
--   Base64 data. The underlying isomorphism will encode to Base64
--   representation during serialisation, and decode from Base64
--   representation during deserialisation. This <tt>Lens</tt> accepts and
--   returns only raw unencoded data.</li>
--   <li><a>avSS</a> - An attribute of type String Set. For example:
--   <tt><a>SS</a>: [<a>Giraffe</a>, <a>Hippo</a> ,<a>Zebra</a>]</tt></li>
--   <li><a>avS</a> - An attribute of type String. For example:
--   <tt><a>S</a>: <a>Hello</a></tt></li>
--   <li><a>avBOOL</a> - An attribute of type Boolean. For example:
--   <tt><a>BOOL</a>: true</tt></li>
--   </ul>
attributeValue :: AttributeValue

-- | An attribute of type List. For example: <tt><a>L</a>: [<a>Cookies</a>,
--   <a>Coffee</a>, 3.14159]</tt>
avL :: Lens' AttributeValue [AttributeValue]

-- | An attribute of type Number Set. For example: <tt><a>NS</a>: ["42.2",
--   "-19", "7.5", "3.14"]</tt> Numbers are sent across the network to
--   DynamoDB as strings, to maximize compatibility across languages and
--   libraries. However, DynamoDB treats them as number type attributes for
--   mathematical operations.
avNS :: Lens' AttributeValue [Text]

-- | An attribute of type Map. For example: <tt><a>M</a>: {<a>Name</a>:
--   {<a>S</a>: <a>Joe</a>}, <a>Age</a>: {<a>N</a>: "35"}}</tt>
avM :: Lens' AttributeValue (HashMap Text AttributeValue)

-- | An attribute of type Null. For example: <tt><a>NULL</a>: true</tt>
avNULL :: Lens' AttributeValue (Maybe Bool)

-- | An attribute of type Number. For example: <tt><a>N</a>: "123.45"</tt>
--   Numbers are sent across the network to DynamoDB as strings, to
--   maximize compatibility across languages and libraries. However,
--   DynamoDB treats them as number type attributes for mathematical
--   operations.
avN :: Lens' AttributeValue (Maybe Text)

-- | An attribute of type Binary Set. For example: <tt><a>BS</a>:
--   ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]</tt>
avBS :: Lens' AttributeValue [ByteString]

-- | An attribute of type Binary. For example: <tt><a>B</a>:
--   "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"</tt> -- <i>Note:</i> This
--   <tt>Lens</tt> automatically encodes and decodes Base64 data. The
--   underlying isomorphism will encode to Base64 representation during
--   serialisation, and decode from Base64 representation during
--   deserialisation. This <tt>Lens</tt> accepts and returns only raw
--   unencoded data.
avB :: Lens' AttributeValue (Maybe ByteString)

-- | An attribute of type String Set. For example: <tt><a>SS</a>:
--   [<a>Giraffe</a>, <a>Hippo</a> ,<a>Zebra</a>]</tt>
avSS :: Lens' AttributeValue [Text]

-- | An attribute of type String. For example: <tt><a>S</a>:
--   <a>Hello</a></tt>
avS :: Lens' AttributeValue (Maybe Text)

-- | An attribute of type Boolean. For example: <tt><a>BOOL</a>: true</tt>
avBOOL :: Lens' AttributeValue (Maybe Bool)

-- | For the <tt>UpdateItem</tt> operation, represents the attributes to be
--   modified, the action to perform on each, and the new value for each.
--   
--   Attribute values cannot be null; string and binary type attributes
--   must have lengths greater than zero; and set type attributes must not
--   be empty. Requests with empty values will be rejected with a
--   <tt>ValidationException</tt> exception.
--   
--   <i>See:</i> <a>attributeValueUpdate</a> smart constructor.
data AttributeValueUpdate

-- | Creates a value of <a>AttributeValueUpdate</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>avuValue</a> - Represents the data for an attribute. Each
--   attribute value is described as a name-value pair. The name is the
--   data type, and the value is the data itself. For more information, see
--   <a>Data Types</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>avuAction</a> - Specifies how to perform the update. Valid
--   values are <tt>PUT</tt> (default), <tt>DELETE</tt> , and <tt>ADD</tt>
--   . The behavior depends on whether the specified primary key already
--   exists in the table. <b>If an item with the specified <i>Key</i> is
--   found in the table:</b> * <tt>PUT</tt> - Adds the specified attribute
--   to the item. If the attribute already exists, it is replaced by the
--   new value. * <tt>DELETE</tt> - If no value is specified, the attribute
--   and its value are removed from the item. The data type of the
--   specified value must match the existing value's data type. If a
--   <i>set</i> of values is specified, then those values are subtracted
--   from the old set. For example, if the attribute value was the set
--   <tt>[a,b,c]</tt> and the <tt>DELETE</tt> action specified
--   <tt>[a,c]</tt> , then the final attribute value would be <tt>[b]</tt>
--   . Specifying an empty set is an error. * <tt>ADD</tt> - If the
--   attribute does not already exist, then the attribute and its values
--   are added to the item. If the attribute does exist, then the behavior
--   of <tt>ADD</tt> depends on the data type of the attribute: * If the
--   existing attribute is a number, and if <tt>Value</tt> is also a
--   number, then the <tt>Value</tt> is mathematically added to the
--   existing attribute. If <tt>Value</tt> is a negative number, then it is
--   subtracted from the existing attribute. * If the existing data type is
--   a set, and if the <tt>Value</tt> is also a set, then the
--   <tt>Value</tt> is added to the existing set. (This is a <i>set</i>
--   operation, not mathematical addition.) For example, if the attribute
--   value was the set <tt>[1,2]</tt> , and the <tt>ADD</tt> action
--   specified <tt>[3]</tt> , then the final attribute value would be
--   <tt>[1,2,3]</tt> . An error occurs if an Add action is specified for a
--   set attribute and the attribute type specified does not match the
--   existing set type. Both sets must have the same primitive data type.
--   For example, if the existing data type is a set of strings, the
--   <tt>Value</tt> must also be a set of strings. The same holds true for
--   number sets and binary sets. This action is only valid for an existing
--   attribute whose data type is number or is a set. Do not use
--   <tt>ADD</tt> for any other data types. <b>If no item with the
--   specified <i>Key</i> is found:</b> * <tt>PUT</tt> - DynamoDB creates a
--   new item with the specified primary key, and then adds the attribute.
--   * <tt>DELETE</tt> - Nothing happens; there is no attribute to delete.
--   * <tt>ADD</tt> - DynamoDB creates an item with the supplied primary
--   key and number (or set of numbers) for the attribute value. The only
--   data types allowed are number and number set; no other data types can
--   be specified.</li>
--   </ul>
attributeValueUpdate :: AttributeValueUpdate

-- | Represents the data for an attribute. Each attribute value is
--   described as a name-value pair. The name is the data type, and the
--   value is the data itself. For more information, see <a>Data Types</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
avuValue :: Lens' AttributeValueUpdate (Maybe AttributeValue)

-- | Specifies how to perform the update. Valid values are <tt>PUT</tt>
--   (default), <tt>DELETE</tt> , and <tt>ADD</tt> . The behavior depends
--   on whether the specified primary key already exists in the table.
--   <b>If an item with the specified <i>Key</i> is found in the table:</b>
--   * <tt>PUT</tt> - Adds the specified attribute to the item. If the
--   attribute already exists, it is replaced by the new value. *
--   <tt>DELETE</tt> - If no value is specified, the attribute and its
--   value are removed from the item. The data type of the specified value
--   must match the existing value's data type. If a <i>set</i> of values
--   is specified, then those values are subtracted from the old set. For
--   example, if the attribute value was the set <tt>[a,b,c]</tt> and the
--   <tt>DELETE</tt> action specified <tt>[a,c]</tt> , then the final
--   attribute value would be <tt>[b]</tt> . Specifying an empty set is an
--   error. * <tt>ADD</tt> - If the attribute does not already exist, then
--   the attribute and its values are added to the item. If the attribute
--   does exist, then the behavior of <tt>ADD</tt> depends on the data type
--   of the attribute: * If the existing attribute is a number, and if
--   <tt>Value</tt> is also a number, then the <tt>Value</tt> is
--   mathematically added to the existing attribute. If <tt>Value</tt> is a
--   negative number, then it is subtracted from the existing attribute. *
--   If the existing data type is a set, and if the <tt>Value</tt> is also
--   a set, then the <tt>Value</tt> is added to the existing set. (This is
--   a <i>set</i> operation, not mathematical addition.) For example, if
--   the attribute value was the set <tt>[1,2]</tt> , and the <tt>ADD</tt>
--   action specified <tt>[3]</tt> , then the final attribute value would
--   be <tt>[1,2,3]</tt> . An error occurs if an Add action is specified
--   for a set attribute and the attribute type specified does not match
--   the existing set type. Both sets must have the same primitive data
--   type. For example, if the existing data type is a set of strings, the
--   <tt>Value</tt> must also be a set of strings. The same holds true for
--   number sets and binary sets. This action is only valid for an existing
--   attribute whose data type is number or is a set. Do not use
--   <tt>ADD</tt> for any other data types. <b>If no item with the
--   specified <i>Key</i> is found:</b> * <tt>PUT</tt> - DynamoDB creates a
--   new item with the specified primary key, and then adds the attribute.
--   * <tt>DELETE</tt> - Nothing happens; there is no attribute to delete.
--   * <tt>ADD</tt> - DynamoDB creates an item with the supplied primary
--   key and number (or set of numbers) for the attribute value. The only
--   data types allowed are number and number set; no other data types can
--   be specified.
avuAction :: Lens' AttributeValueUpdate (Maybe AttributeAction)

-- | Contains the description of the backup created for the table.
--   
--   <i>See:</i> <a>backupDescription</a> smart constructor.
data BackupDescription

-- | Creates a value of <a>BackupDescription</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>bdBackupDetails</a> - Contains the details of the backup
--   created for the table.</li>
--   <li><a>bdSourceTableDetails</a> - Contains the details of the table
--   when the backup was created.</li>
--   <li><a>bdSourceTableFeatureDetails</a> - Contains the details of the
--   features enabled on the table when the backup was created. For
--   example, LSIs, GSIs, streams, TTL.</li>
--   </ul>
backupDescription :: BackupDescription

-- | Contains the details of the backup created for the table.
bdBackupDetails :: Lens' BackupDescription (Maybe BackupDetails)

-- | Contains the details of the table when the backup was created.
bdSourceTableDetails :: Lens' BackupDescription (Maybe SourceTableDetails)

-- | Contains the details of the features enabled on the table when the
--   backup was created. For example, LSIs, GSIs, streams, TTL.
bdSourceTableFeatureDetails :: Lens' BackupDescription (Maybe SourceTableFeatureDetails)

-- | Contains the details of the backup created for the table.
--   
--   <i>See:</i> <a>backupDetails</a> smart constructor.
data BackupDetails

-- | Creates a value of <a>BackupDetails</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>bdBackupSizeBytes</a> - Size of the backup in bytes.</li>
--   <li><a>bdBackupARN</a> - ARN associated with the backup.</li>
--   <li><a>bdBackupName</a> - Name of the requested backup.</li>
--   <li><a>bdBackupStatus</a> - Backup can be in one of the following
--   states: CREATING, ACTIVE, DELETED.</li>
--   <li><a>bdBackupCreationDateTime</a> - Time at which the backup was
--   created. This is the request time of the backup.</li>
--   </ul>
backupDetails :: Text -> Text -> BackupStatus -> UTCTime -> BackupDetails

-- | Size of the backup in bytes.
bdBackupSizeBytes :: Lens' BackupDetails (Maybe Natural)

-- | ARN associated with the backup.
bdBackupARN :: Lens' BackupDetails Text

-- | Name of the requested backup.
bdBackupName :: Lens' BackupDetails Text

-- | Backup can be in one of the following states: CREATING, ACTIVE,
--   DELETED.
bdBackupStatus :: Lens' BackupDetails BackupStatus

-- | Time at which the backup was created. This is the request time of the
--   backup.
bdBackupCreationDateTime :: Lens' BackupDetails UTCTime

-- | Contains details for the backup.
--   
--   <i>See:</i> <a>backupSummary</a> smart constructor.
data BackupSummary

-- | Creates a value of <a>BackupSummary</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>bsTableARN</a> - ARN associated with the table.</li>
--   <li><a>bsBackupName</a> - Name of the specified backup.</li>
--   <li><a>bsBackupStatus</a> - Backup can be in one of the following
--   states: CREATING, ACTIVE, DELETED.</li>
--   <li><a>bsBackupSizeBytes</a> - Size of the backup in bytes.</li>
--   <li><a>bsBackupARN</a> - ARN associated with the backup.</li>
--   <li><a>bsTableId</a> - Unique identifier for the table.</li>
--   <li><a>bsBackupCreationDateTime</a> - Time at which the backup was
--   created.</li>
--   <li><a>bsTableName</a> - Name of the table.</li>
--   </ul>
backupSummary :: BackupSummary

-- | ARN associated with the table.
bsTableARN :: Lens' BackupSummary (Maybe Text)

-- | Name of the specified backup.
bsBackupName :: Lens' BackupSummary (Maybe Text)

-- | Backup can be in one of the following states: CREATING, ACTIVE,
--   DELETED.
bsBackupStatus :: Lens' BackupSummary (Maybe BackupStatus)

-- | Size of the backup in bytes.
bsBackupSizeBytes :: Lens' BackupSummary (Maybe Natural)

-- | ARN associated with the backup.
bsBackupARN :: Lens' BackupSummary (Maybe Text)

-- | Unique identifier for the table.
bsTableId :: Lens' BackupSummary (Maybe Text)

-- | Time at which the backup was created.
bsBackupCreationDateTime :: Lens' BackupSummary (Maybe UTCTime)

-- | Name of the table.
bsTableName :: Lens' BackupSummary (Maybe Text)

-- | Represents the amount of provisioned throughput capacity consumed on a
--   table or an index.
--   
--   <i>See:</i> <a>capacity</a> smart constructor.
data Capacity

-- | Creates a value of <a>Capacity</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>cCapacityUnits</a> - The total number of capacity units
--   consumed on a table or an index.</li>
--   </ul>
capacity :: Capacity

-- | The total number of capacity units consumed on a table or an index.
cCapacityUnits :: Lens' Capacity (Maybe Double)

-- | Represents the selection criteria for a <tt>Query</tt> or
--   <tt>Scan</tt> operation:
--   
--   <ul>
--   <li>For a <tt>Query</tt> operation, <tt>Condition</tt> is used for
--   specifying the <tt>KeyConditions</tt> to use when querying a table or
--   an index. For <tt>KeyConditions</tt> , only the following comparison
--   operators are supported:</li>
--   </ul>
--   
--   <pre>
--   EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN
--   </pre>
--   
--   <tt>Condition</tt> is also used in a <tt>QueryFilter</tt> , which
--   evaluates the query results and returns only the desired values.
--   
--   <ul>
--   <li>For a <tt>Scan</tt> operation, <tt>Condition</tt> is used in a
--   <tt>ScanFilter</tt> , which evaluates the scan results and returns
--   only the desired values.</li>
--   </ul>
--   
--   <i>See:</i> <a>condition</a> smart constructor.
data Condition

-- | Creates a value of <a>Condition</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>cAttributeValueList</a> - One or more values to evaluate
--   against the supplied attribute. The number of values in the list
--   depends on the <tt>ComparisonOperator</tt> being used. For type
--   Number, value comparisons are numeric. String value comparisons for
--   greater than, equals, or less than are based on ASCII character code
--   values. For example, <tt>a</tt> is greater than <tt>A</tt> , and
--   <tt>a</tt> is greater than <tt>B</tt> . For a list of code values, see
--   <a>http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters</a> .
--   For Binary, DynamoDB treats each byte of the binary data as unsigned
--   when it compares binary values.</li>
--   <li><a>cComparisonOperator</a> - A comparator for evaluating
--   attributes. For example, equals, greater than, less than, etc. The
--   following comparison operators are available: <tt>EQ | NE | LE | LT |
--   GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN
--   | BETWEEN</tt> The following are descriptions of each comparison
--   operator. * <tt>EQ</tt> : Equal. <tt>EQ</tt> is supported for all data
--   types, including lists and maps. <tt>AttributeValueList</tt> can
--   contain only one <tt>AttributeValue</tt> element of type String,
--   Number, Binary, String Set, Number Set, or Binary Set. If an item
--   contains an <tt>AttributeValue</tt> element of a different type than
--   the one provided in the request, the value does not match. For
--   example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not equal
--   <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NE</tt> : Not equal.
--   <tt>NE</tt> is supported for all data types, including lists and maps.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, Binary, String Set,
--   Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> of a different type than the one provided in
--   the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>LE</tt> : Less than or equal.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>LT</tt> : Less
--   than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, or Binary (not a set
--   type). If an item contains an <tt>AttributeValue</tt> element of a
--   different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GE</tt> :
--   Greater than or equal. <tt>AttributeValueList</tt> can contain only
--   one <tt>AttributeValue</tt> element of type String, Number, or Binary
--   (not a set type). If an item contains an <tt>AttributeValue</tt>
--   element of a different type than the one provided in the request, the
--   value does not match. For example, <tt>{<a>S</a>:"6"}</tt> does not
--   equal <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GT</tt> :
--   Greater than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NOT_NULL</tt>
--   : The attribute exists. <tt>NOT_NULL</tt> is supported for all data
--   types, including lists and maps. * <tt>NULL</tt> : The attribute does
--   not exist. <tt>NULL</tt> is supported for all data types, including
--   lists and maps. * <tt>CONTAINS</tt> : Checks for a subsequence, or
--   value in a set. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If the target attribute of the comparison is of type
--   String, then the operator checks for a substring match. If the target
--   attribute of the comparison is of type Binary, then the operator looks
--   for a subsequence of the target that matches the input. If the target
--   attribute of the comparison is a set ("<tt>SS</tt> ", "<tt>NS</tt> ",
--   or "<tt>BS</tt> "), then the operator evaluates to true if it finds an
--   exact match with any member of the set. CONTAINS is supported for
--   lists: When evaluating "<tt>a CONTAINS b</tt> ", "<tt>a</tt> " can be
--   a list; however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>NOT_CONTAINS</tt> : Checks for absence of a subsequence, or
--   absence of a value in a set. <tt>AttributeValueList</tt> can contain
--   only one <tt>AttributeValue</tt> element of type String, Number, or
--   Binary (not a set type). If the target attribute of the comparison is
--   a String, then the operator checks for the absence of a substring
--   match. If the target attribute of the comparison is Binary, then the
--   operator checks for the absence of a subsequence of the target that
--   matches the input. If the target attribute of the comparison is a set
--   ("<tt>SS</tt> ", "<tt>NS</tt> ", or "<tt>BS</tt> "), then the operator
--   evaluates to true if it <i>does not</i> find an exact match with any
--   member of the set. NOT_CONTAINS is supported for lists: When
--   evaluating "<tt>a NOT CONTAINS b</tt> ", "<tt>a</tt> " can be a list;
--   however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>BEGINS_WITH</tt> : Checks for a prefix.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String or Binary (not a Number or a
--   set type). The target attribute of the comparison must be of type
--   String or Binary (not a Number or a set type). * <tt>IN</tt> : Checks
--   for matching elements in a list. <tt>AttributeValueList</tt> can
--   contain one or more <tt>AttributeValue</tt> elements of type String,
--   Number, or Binary. These attributes are compared against an existing
--   attribute of an item. If any elements of the input are equal to the
--   item attribute, the expression evaluates to true. * <tt>BETWEEN</tt> :
--   Greater than or equal to the first value, and less than or equal to
--   the second value. <tt>AttributeValueList</tt> must contain two
--   <tt>AttributeValue</tt> elements of the same type, either String,
--   Number, or Binary (not a set type). A target attribute matches if the
--   target value is greater than, or equal to, the first element and less
--   than, or equal to, the second element. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not compare to <tt>{<a>N</a>:"6"}</tt> .
--   Also, <tt>{<a>N</a>:"6"}</tt> does not compare to <tt>{<a>NS</a>:["6",
--   "2", "1"]}</tt> For usage examples of <tt>AttributeValueList</tt> and
--   <tt>ComparisonOperator</tt> , see <a>Legacy Conditional Parameters</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   </ul>
condition :: ComparisonOperator -> Condition

-- | One or more values to evaluate against the supplied attribute. The
--   number of values in the list depends on the
--   <tt>ComparisonOperator</tt> being used. For type Number, value
--   comparisons are numeric. String value comparisons for greater than,
--   equals, or less than are based on ASCII character code values. For
--   example, <tt>a</tt> is greater than <tt>A</tt> , and <tt>a</tt> is
--   greater than <tt>B</tt> . For a list of code values, see
--   <a>http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters</a> .
--   For Binary, DynamoDB treats each byte of the binary data as unsigned
--   when it compares binary values.
cAttributeValueList :: Lens' Condition [AttributeValue]

-- | A comparator for evaluating attributes. For example, equals, greater
--   than, less than, etc. The following comparison operators are
--   available: <tt>EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL |
--   CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN</tt> The
--   following are descriptions of each comparison operator. * <tt>EQ</tt>
--   : Equal. <tt>EQ</tt> is supported for all data types, including lists
--   and maps. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, Binary, String
--   Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>NE</tt> : Not equal. <tt>NE</tt> is supported for
--   all data types, including lists and maps. <tt>AttributeValueList</tt>
--   can contain only one <tt>AttributeValue</tt> of type String, Number,
--   Binary, String Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> of a different type than the one provided in
--   the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>LE</tt> : Less than or equal.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>LT</tt> : Less
--   than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, or Binary (not a set
--   type). If an item contains an <tt>AttributeValue</tt> element of a
--   different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GE</tt> :
--   Greater than or equal. <tt>AttributeValueList</tt> can contain only
--   one <tt>AttributeValue</tt> element of type String, Number, or Binary
--   (not a set type). If an item contains an <tt>AttributeValue</tt>
--   element of a different type than the one provided in the request, the
--   value does not match. For example, <tt>{<a>S</a>:"6"}</tt> does not
--   equal <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GT</tt> :
--   Greater than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NOT_NULL</tt>
--   : The attribute exists. <tt>NOT_NULL</tt> is supported for all data
--   types, including lists and maps. * <tt>NULL</tt> : The attribute does
--   not exist. <tt>NULL</tt> is supported for all data types, including
--   lists and maps. * <tt>CONTAINS</tt> : Checks for a subsequence, or
--   value in a set. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If the target attribute of the comparison is of type
--   String, then the operator checks for a substring match. If the target
--   attribute of the comparison is of type Binary, then the operator looks
--   for a subsequence of the target that matches the input. If the target
--   attribute of the comparison is a set ("<tt>SS</tt> ", "<tt>NS</tt> ",
--   or "<tt>BS</tt> "), then the operator evaluates to true if it finds an
--   exact match with any member of the set. CONTAINS is supported for
--   lists: When evaluating "<tt>a CONTAINS b</tt> ", "<tt>a</tt> " can be
--   a list; however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>NOT_CONTAINS</tt> : Checks for absence of a subsequence, or
--   absence of a value in a set. <tt>AttributeValueList</tt> can contain
--   only one <tt>AttributeValue</tt> element of type String, Number, or
--   Binary (not a set type). If the target attribute of the comparison is
--   a String, then the operator checks for the absence of a substring
--   match. If the target attribute of the comparison is Binary, then the
--   operator checks for the absence of a subsequence of the target that
--   matches the input. If the target attribute of the comparison is a set
--   ("<tt>SS</tt> ", "<tt>NS</tt> ", or "<tt>BS</tt> "), then the operator
--   evaluates to true if it <i>does not</i> find an exact match with any
--   member of the set. NOT_CONTAINS is supported for lists: When
--   evaluating "<tt>a NOT CONTAINS b</tt> ", "<tt>a</tt> " can be a list;
--   however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>BEGINS_WITH</tt> : Checks for a prefix.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String or Binary (not a Number or a
--   set type). The target attribute of the comparison must be of type
--   String or Binary (not a Number or a set type). * <tt>IN</tt> : Checks
--   for matching elements in a list. <tt>AttributeValueList</tt> can
--   contain one or more <tt>AttributeValue</tt> elements of type String,
--   Number, or Binary. These attributes are compared against an existing
--   attribute of an item. If any elements of the input are equal to the
--   item attribute, the expression evaluates to true. * <tt>BETWEEN</tt> :
--   Greater than or equal to the first value, and less than or equal to
--   the second value. <tt>AttributeValueList</tt> must contain two
--   <tt>AttributeValue</tt> elements of the same type, either String,
--   Number, or Binary (not a set type). A target attribute matches if the
--   target value is greater than, or equal to, the first element and less
--   than, or equal to, the second element. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not compare to <tt>{<a>N</a>:"6"}</tt> .
--   Also, <tt>{<a>N</a>:"6"}</tt> does not compare to <tt>{<a>NS</a>:["6",
--   "2", "1"]}</tt> For usage examples of <tt>AttributeValueList</tt> and
--   <tt>ComparisonOperator</tt> , see <a>Legacy Conditional Parameters</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
cComparisonOperator :: Lens' Condition ComparisonOperator

-- | The capacity units consumed by an operation. The data returned
--   includes the total provisioned throughput consumed, along with
--   statistics for the table and any indexes involved in the operation.
--   <tt>ConsumedCapacity</tt> is only returned if the request asked for
--   it. For more information, see <a>Provisioned Throughput</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
--   
--   <i>See:</i> <a>consumedCapacity</a> smart constructor.
data ConsumedCapacity

-- | Creates a value of <a>ConsumedCapacity</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>ccGlobalSecondaryIndexes</a> - The amount of throughput
--   consumed on each global index affected by the operation.</li>
--   <li><a>ccCapacityUnits</a> - The total number of capacity units
--   consumed by the operation.</li>
--   <li><a>ccLocalSecondaryIndexes</a> - The amount of throughput consumed
--   on each local index affected by the operation.</li>
--   <li><a>ccTable</a> - The amount of throughput consumed on the table
--   affected by the operation.</li>
--   <li><a>ccTableName</a> - The name of the table that was affected by
--   the operation.</li>
--   </ul>
consumedCapacity :: ConsumedCapacity

-- | The amount of throughput consumed on each global index affected by the
--   operation.
ccGlobalSecondaryIndexes :: Lens' ConsumedCapacity (HashMap Text Capacity)

-- | The total number of capacity units consumed by the operation.
ccCapacityUnits :: Lens' ConsumedCapacity (Maybe Double)

-- | The amount of throughput consumed on each local index affected by the
--   operation.
ccLocalSecondaryIndexes :: Lens' ConsumedCapacity (HashMap Text Capacity)

-- | The amount of throughput consumed on the table affected by the
--   operation.
ccTable :: Lens' ConsumedCapacity (Maybe Capacity)

-- | The name of the table that was affected by the operation.
ccTableName :: Lens' ConsumedCapacity (Maybe Text)

-- | Represents the continuous backups and point in time recovery settings
--   on the table.
--   
--   <i>See:</i> <a>continuousBackupsDescription</a> smart constructor.
data ContinuousBackupsDescription

-- | Creates a value of <a>ContinuousBackupsDescription</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>cbdPointInTimeRecoveryDescription</a> - The description of the
--   point in time recovery settings applied to the table.</li>
--   <li><a>cbdContinuousBackupsStatus</a> -
--   <tt>ContinuousBackupsStatus</tt> can be one of the following states :
--   ENABLED, DISABLED</li>
--   </ul>
continuousBackupsDescription :: ContinuousBackupsStatus -> ContinuousBackupsDescription

-- | The description of the point in time recovery settings applied to the
--   table.
cbdPointInTimeRecoveryDescription :: Lens' ContinuousBackupsDescription (Maybe PointInTimeRecoveryDescription)

-- | <tt>ContinuousBackupsStatus</tt> can be one of the following states :
--   ENABLED, DISABLED
cbdContinuousBackupsStatus :: Lens' ContinuousBackupsDescription ContinuousBackupsStatus

-- | Represents a new global secondary index to be added to an existing
--   table.
--   
--   <i>See:</i> <a>createGlobalSecondaryIndexAction</a> smart constructor.
data CreateGlobalSecondaryIndexAction

-- | Creates a value of <a>CreateGlobalSecondaryIndexAction</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>cgsiaIndexName</a> - The name of the global secondary index to
--   be created.</li>
--   <li><a>cgsiaKeySchema</a> - The key schema for the global secondary
--   index.</li>
--   <li><a>cgsiaProjection</a> - Represents attributes that are copied
--   (projected) from the table into an index. These are in addition to the
--   primary key attributes and index key attributes, which are
--   automatically projected.</li>
--   <li><a>cgsiaProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index. For
--   current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   </ul>
createGlobalSecondaryIndexAction :: Text -> NonEmpty KeySchemaElement -> Projection -> ProvisionedThroughput -> CreateGlobalSecondaryIndexAction

-- | The name of the global secondary index to be created.
cgsiaIndexName :: Lens' CreateGlobalSecondaryIndexAction Text

-- | The key schema for the global secondary index.
cgsiaKeySchema :: Lens' CreateGlobalSecondaryIndexAction (NonEmpty KeySchemaElement)

-- | Represents attributes that are copied (projected) from the table into
--   an index. These are in addition to the primary key attributes and
--   index key attributes, which are automatically projected.
cgsiaProjection :: Lens' CreateGlobalSecondaryIndexAction Projection

-- | Represents the provisioned throughput settings for the specified
--   global secondary index. For current minimum and maximum provisioned
--   throughput values, see <a>Limits</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
cgsiaProvisionedThroughput :: Lens' CreateGlobalSecondaryIndexAction ProvisionedThroughput

-- | Represents a replica to be added.
--   
--   <i>See:</i> <a>createReplicaAction</a> smart constructor.
data CreateReplicaAction

-- | Creates a value of <a>CreateReplicaAction</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>craRegionName</a> - The region of the replica to be added.</li>
--   </ul>
createReplicaAction :: Text -> CreateReplicaAction

-- | The region of the replica to be added.
craRegionName :: Lens' CreateReplicaAction Text

-- | Represents a global secondary index to be deleted from an existing
--   table.
--   
--   <i>See:</i> <a>deleteGlobalSecondaryIndexAction</a> smart constructor.
data DeleteGlobalSecondaryIndexAction

-- | Creates a value of <a>DeleteGlobalSecondaryIndexAction</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>dgsiaIndexName</a> - The name of the global secondary index to
--   be deleted.</li>
--   </ul>
deleteGlobalSecondaryIndexAction :: Text -> DeleteGlobalSecondaryIndexAction

-- | The name of the global secondary index to be deleted.
dgsiaIndexName :: Lens' DeleteGlobalSecondaryIndexAction Text

-- | Represents a replica to be removed.
--   
--   <i>See:</i> <a>deleteReplicaAction</a> smart constructor.
data DeleteReplicaAction

-- | Creates a value of <a>DeleteReplicaAction</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>draRegionName</a> - The region of the replica to be
--   removed.</li>
--   </ul>
deleteReplicaAction :: Text -> DeleteReplicaAction

-- | The region of the replica to be removed.
draRegionName :: Lens' DeleteReplicaAction Text

-- | Represents a request to perform a <tt>DeleteItem</tt> operation on an
--   item.
--   
--   <i>See:</i> <a>deleteRequest</a> smart constructor.
data DeleteRequest

-- | Creates a value of <a>DeleteRequest</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>drKey</a> - A map of attribute name to attribute values,
--   representing the primary key of the item to delete. All of the table's
--   primary key attributes must be specified, and their data types must
--   match those of the table's key schema.</li>
--   </ul>
deleteRequest :: DeleteRequest

-- | A map of attribute name to attribute values, representing the primary
--   key of the item to delete. All of the table's primary key attributes
--   must be specified, and their data types must match those of the
--   table's key schema.
drKey :: Lens' DeleteRequest (HashMap Text AttributeValue)

-- | Represents a condition to be compared with an attribute value. This
--   condition can be used with <tt>DeleteItem</tt> , <tt>PutItem</tt> or
--   <tt>UpdateItem</tt> operations; if the comparison evaluates to true,
--   the operation succeeds; if not, the operation fails. You can use
--   <tt>ExpectedAttributeValue</tt> in one of two different ways:
--   
--   <ul>
--   <li>Use <tt>AttributeValueList</tt> to specify one or more values to
--   compare against an attribute. Use <tt>ComparisonOperator</tt> to
--   specify how you want to perform the comparison. If the comparison
--   evaluates to true, then the conditional operation succeeds.</li>
--   <li>Use <tt>Value</tt> to specify a value that DynamoDB will compare
--   against an attribute. If the values match, then
--   <tt>ExpectedAttributeValue</tt> evaluates to true and the conditional
--   operation succeeds. Optionally, you can also set <tt>Exists</tt> to
--   false, indicating that you <i>do not</i> expect to find the attribute
--   value in the table. In this case, the conditional operation succeeds
--   only if the comparison evaluates to false.</li>
--   </ul>
--   
--   <tt>Value</tt> and <tt>Exists</tt> are incompatible with
--   <tt>AttributeValueList</tt> and <tt>ComparisonOperator</tt> . Note
--   that if you use both sets of parameters at once, DynamoDB will return
--   a <tt>ValidationException</tt> exception.
--   
--   <i>See:</i> <a>expectedAttributeValue</a> smart constructor.
data ExpectedAttributeValue

-- | Creates a value of <a>ExpectedAttributeValue</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>eavAttributeValueList</a> - One or more values to evaluate
--   against the supplied attribute. The number of values in the list
--   depends on the <tt>ComparisonOperator</tt> being used. For type
--   Number, value comparisons are numeric. String value comparisons for
--   greater than, equals, or less than are based on ASCII character code
--   values. For example, <tt>a</tt> is greater than <tt>A</tt> , and
--   <tt>a</tt> is greater than <tt>B</tt> . For a list of code values, see
--   <a>http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters</a> .
--   For Binary, DynamoDB treats each byte of the binary data as unsigned
--   when it compares binary values. For information on specifying data
--   types in JSON, see <a>JSON Data Format</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>eavExists</a> - Causes DynamoDB to evaluate the value before
--   attempting a conditional operation: * If <tt>Exists</tt> is
--   <tt>true</tt> , DynamoDB will check to see if that attribute value
--   already exists in the table. If it is found, then the operation
--   succeeds. If it is not found, the operation fails with a
--   <tt>ConditionalCheckFailedException</tt> . * If <tt>Exists</tt> is
--   <tt>false</tt> , DynamoDB assumes that the attribute value does not
--   exist in the table. If in fact the value does not exist, then the
--   assumption is valid and the operation succeeds. If the value is found,
--   despite the assumption that it does not exist, the operation fails
--   with a <tt>ConditionalCheckFailedException</tt> . The default setting
--   for <tt>Exists</tt> is <tt>true</tt> . If you supply a <tt>Value</tt>
--   all by itself, DynamoDB assumes the attribute exists: You don't have
--   to set <tt>Exists</tt> to <tt>true</tt> , because it is implied.
--   DynamoDB returns a <tt>ValidationException</tt> if: * <tt>Exists</tt>
--   is <tt>true</tt> but there is no <tt>Value</tt> to check. (You expect
--   a value to exist, but don't specify what that value is.) *
--   <tt>Exists</tt> is <tt>false</tt> but you also provide a
--   <tt>Value</tt> . (You cannot expect an attribute to have a value,
--   while also expecting it not to exist.)</li>
--   <li><a>eavValue</a> - Represents the data for the expected attribute.
--   Each attribute value is described as a name-value pair. The name is
--   the data type, and the value is the data itself. For more information,
--   see <a>Data Types</a> in the <i>Amazon DynamoDB Developer Guide</i>
--   .</li>
--   <li><a>eavComparisonOperator</a> - A comparator for evaluating
--   attributes in the <tt>AttributeValueList</tt> . For example, equals,
--   greater than, less than, etc. The following comparison operators are
--   available: <tt>EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL |
--   CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN</tt> The
--   following are descriptions of each comparison operator. * <tt>EQ</tt>
--   : Equal. <tt>EQ</tt> is supported for all data types, including lists
--   and maps. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, Binary, String
--   Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>NE</tt> : Not equal. <tt>NE</tt> is supported for
--   all data types, including lists and maps. <tt>AttributeValueList</tt>
--   can contain only one <tt>AttributeValue</tt> of type String, Number,
--   Binary, String Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> of a different type than the one provided in
--   the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>LE</tt> : Less than or equal.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>LT</tt> : Less
--   than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, or Binary (not a set
--   type). If an item contains an <tt>AttributeValue</tt> element of a
--   different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GE</tt> :
--   Greater than or equal. <tt>AttributeValueList</tt> can contain only
--   one <tt>AttributeValue</tt> element of type String, Number, or Binary
--   (not a set type). If an item contains an <tt>AttributeValue</tt>
--   element of a different type than the one provided in the request, the
--   value does not match. For example, <tt>{<a>S</a>:"6"}</tt> does not
--   equal <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GT</tt> :
--   Greater than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NOT_NULL</tt>
--   : The attribute exists. <tt>NOT_NULL</tt> is supported for all data
--   types, including lists and maps. * <tt>NULL</tt> : The attribute does
--   not exist. <tt>NULL</tt> is supported for all data types, including
--   lists and maps. * <tt>CONTAINS</tt> : Checks for a subsequence, or
--   value in a set. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If the target attribute of the comparison is of type
--   String, then the operator checks for a substring match. If the target
--   attribute of the comparison is of type Binary, then the operator looks
--   for a subsequence of the target that matches the input. If the target
--   attribute of the comparison is a set ("<tt>SS</tt> ", "<tt>NS</tt> ",
--   or "<tt>BS</tt> "), then the operator evaluates to true if it finds an
--   exact match with any member of the set. CONTAINS is supported for
--   lists: When evaluating "<tt>a CONTAINS b</tt> ", "<tt>a</tt> " can be
--   a list; however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>NOT_CONTAINS</tt> : Checks for absence of a subsequence, or
--   absence of a value in a set. <tt>AttributeValueList</tt> can contain
--   only one <tt>AttributeValue</tt> element of type String, Number, or
--   Binary (not a set type). If the target attribute of the comparison is
--   a String, then the operator checks for the absence of a substring
--   match. If the target attribute of the comparison is Binary, then the
--   operator checks for the absence of a subsequence of the target that
--   matches the input. If the target attribute of the comparison is a set
--   ("<tt>SS</tt> ", "<tt>NS</tt> ", or "<tt>BS</tt> "), then the operator
--   evaluates to true if it <i>does not</i> find an exact match with any
--   member of the set. NOT_CONTAINS is supported for lists: When
--   evaluating "<tt>a NOT CONTAINS b</tt> ", "<tt>a</tt> " can be a list;
--   however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>BEGINS_WITH</tt> : Checks for a prefix.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String or Binary (not a Number or a
--   set type). The target attribute of the comparison must be of type
--   String or Binary (not a Number or a set type). * <tt>IN</tt> : Checks
--   for matching elements in a list. <tt>AttributeValueList</tt> can
--   contain one or more <tt>AttributeValue</tt> elements of type String,
--   Number, or Binary. These attributes are compared against an existing
--   attribute of an item. If any elements of the input are equal to the
--   item attribute, the expression evaluates to true. * <tt>BETWEEN</tt> :
--   Greater than or equal to the first value, and less than or equal to
--   the second value. <tt>AttributeValueList</tt> must contain two
--   <tt>AttributeValue</tt> elements of the same type, either String,
--   Number, or Binary (not a set type). A target attribute matches if the
--   target value is greater than, or equal to, the first element and less
--   than, or equal to, the second element. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not compare to <tt>{<a>N</a>:"6"}</tt> .
--   Also, <tt>{<a>N</a>:"6"}</tt> does not compare to <tt>{<a>NS</a>:["6",
--   "2", "1"]}</tt></li>
--   </ul>
expectedAttributeValue :: ExpectedAttributeValue

-- | One or more values to evaluate against the supplied attribute. The
--   number of values in the list depends on the
--   <tt>ComparisonOperator</tt> being used. For type Number, value
--   comparisons are numeric. String value comparisons for greater than,
--   equals, or less than are based on ASCII character code values. For
--   example, <tt>a</tt> is greater than <tt>A</tt> , and <tt>a</tt> is
--   greater than <tt>B</tt> . For a list of code values, see
--   <a>http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters</a> .
--   For Binary, DynamoDB treats each byte of the binary data as unsigned
--   when it compares binary values. For information on specifying data
--   types in JSON, see <a>JSON Data Format</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
eavAttributeValueList :: Lens' ExpectedAttributeValue [AttributeValue]

-- | Causes DynamoDB to evaluate the value before attempting a conditional
--   operation: * If <tt>Exists</tt> is <tt>true</tt> , DynamoDB will check
--   to see if that attribute value already exists in the table. If it is
--   found, then the operation succeeds. If it is not found, the operation
--   fails with a <tt>ConditionalCheckFailedException</tt> . * If
--   <tt>Exists</tt> is <tt>false</tt> , DynamoDB assumes that the
--   attribute value does not exist in the table. If in fact the value does
--   not exist, then the assumption is valid and the operation succeeds. If
--   the value is found, despite the assumption that it does not exist, the
--   operation fails with a <tt>ConditionalCheckFailedException</tt> . The
--   default setting for <tt>Exists</tt> is <tt>true</tt> . If you supply a
--   <tt>Value</tt> all by itself, DynamoDB assumes the attribute exists:
--   You don't have to set <tt>Exists</tt> to <tt>true</tt> , because it is
--   implied. DynamoDB returns a <tt>ValidationException</tt> if: *
--   <tt>Exists</tt> is <tt>true</tt> but there is no <tt>Value</tt> to
--   check. (You expect a value to exist, but don't specify what that value
--   is.) * <tt>Exists</tt> is <tt>false</tt> but you also provide a
--   <tt>Value</tt> . (You cannot expect an attribute to have a value,
--   while also expecting it not to exist.)
eavExists :: Lens' ExpectedAttributeValue (Maybe Bool)

-- | Represents the data for the expected attribute. Each attribute value
--   is described as a name-value pair. The name is the data type, and the
--   value is the data itself. For more information, see <a>Data Types</a>
--   in the <i>Amazon DynamoDB Developer Guide</i> .
eavValue :: Lens' ExpectedAttributeValue (Maybe AttributeValue)

-- | A comparator for evaluating attributes in the
--   <tt>AttributeValueList</tt> . For example, equals, greater than, less
--   than, etc. The following comparison operators are available: <tt>EQ |
--   NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS |
--   BEGINS_WITH | IN | BETWEEN</tt> The following are descriptions of each
--   comparison operator. * <tt>EQ</tt> : Equal. <tt>EQ</tt> is supported
--   for all data types, including lists and maps.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, Binary, String
--   Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>NE</tt> : Not equal. <tt>NE</tt> is supported for
--   all data types, including lists and maps. <tt>AttributeValueList</tt>
--   can contain only one <tt>AttributeValue</tt> of type String, Number,
--   Binary, String Set, Number Set, or Binary Set. If an item contains an
--   <tt>AttributeValue</tt> of a different type than the one provided in
--   the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not equal <tt>{<a>N</a>:"6"}</tt> . Also,
--   <tt>{<a>N</a>:"6"}</tt> does not equal <tt>{<a>NS</a>:["6", "2",
--   "1"]}</tt> . * <tt>LE</tt> : Less than or equal.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>LT</tt> : Less
--   than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String, Number, or Binary (not a set
--   type). If an item contains an <tt>AttributeValue</tt> element of a
--   different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GE</tt> :
--   Greater than or equal. <tt>AttributeValueList</tt> can contain only
--   one <tt>AttributeValue</tt> element of type String, Number, or Binary
--   (not a set type). If an item contains an <tt>AttributeValue</tt>
--   element of a different type than the one provided in the request, the
--   value does not match. For example, <tt>{<a>S</a>:"6"}</tt> does not
--   equal <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>GT</tt> :
--   Greater than. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If an item contains an <tt>AttributeValue</tt> element of
--   a different type than the one provided in the request, the value does
--   not match. For example, <tt>{<a>S</a>:"6"}</tt> does not equal
--   <tt>{<a>N</a>:"6"}</tt> . Also, <tt>{<a>N</a>:"6"}</tt> does not
--   compare to <tt>{<a>NS</a>:["6", "2", "1"]}</tt> . * <tt>NOT_NULL</tt>
--   : The attribute exists. <tt>NOT_NULL</tt> is supported for all data
--   types, including lists and maps. * <tt>NULL</tt> : The attribute does
--   not exist. <tt>NULL</tt> is supported for all data types, including
--   lists and maps. * <tt>CONTAINS</tt> : Checks for a subsequence, or
--   value in a set. <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> element of type String, Number, or Binary (not
--   a set type). If the target attribute of the comparison is of type
--   String, then the operator checks for a substring match. If the target
--   attribute of the comparison is of type Binary, then the operator looks
--   for a subsequence of the target that matches the input. If the target
--   attribute of the comparison is a set ("<tt>SS</tt> ", "<tt>NS</tt> ",
--   or "<tt>BS</tt> "), then the operator evaluates to true if it finds an
--   exact match with any member of the set. CONTAINS is supported for
--   lists: When evaluating "<tt>a CONTAINS b</tt> ", "<tt>a</tt> " can be
--   a list; however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>NOT_CONTAINS</tt> : Checks for absence of a subsequence, or
--   absence of a value in a set. <tt>AttributeValueList</tt> can contain
--   only one <tt>AttributeValue</tt> element of type String, Number, or
--   Binary (not a set type). If the target attribute of the comparison is
--   a String, then the operator checks for the absence of a substring
--   match. If the target attribute of the comparison is Binary, then the
--   operator checks for the absence of a subsequence of the target that
--   matches the input. If the target attribute of the comparison is a set
--   ("<tt>SS</tt> ", "<tt>NS</tt> ", or "<tt>BS</tt> "), then the operator
--   evaluates to true if it <i>does not</i> find an exact match with any
--   member of the set. NOT_CONTAINS is supported for lists: When
--   evaluating "<tt>a NOT CONTAINS b</tt> ", "<tt>a</tt> " can be a list;
--   however, "<tt>b</tt> " cannot be a set, a map, or a list. *
--   <tt>BEGINS_WITH</tt> : Checks for a prefix.
--   <tt>AttributeValueList</tt> can contain only one
--   <tt>AttributeValue</tt> of type String or Binary (not a Number or a
--   set type). The target attribute of the comparison must be of type
--   String or Binary (not a Number or a set type). * <tt>IN</tt> : Checks
--   for matching elements in a list. <tt>AttributeValueList</tt> can
--   contain one or more <tt>AttributeValue</tt> elements of type String,
--   Number, or Binary. These attributes are compared against an existing
--   attribute of an item. If any elements of the input are equal to the
--   item attribute, the expression evaluates to true. * <tt>BETWEEN</tt> :
--   Greater than or equal to the first value, and less than or equal to
--   the second value. <tt>AttributeValueList</tt> must contain two
--   <tt>AttributeValue</tt> elements of the same type, either String,
--   Number, or Binary (not a set type). A target attribute matches if the
--   target value is greater than, or equal to, the first element and less
--   than, or equal to, the second element. If an item contains an
--   <tt>AttributeValue</tt> element of a different type than the one
--   provided in the request, the value does not match. For example,
--   <tt>{<a>S</a>:"6"}</tt> does not compare to <tt>{<a>N</a>:"6"}</tt> .
--   Also, <tt>{<a>N</a>:"6"}</tt> does not compare to <tt>{<a>NS</a>:["6",
--   "2", "1"]}</tt>
eavComparisonOperator :: Lens' ExpectedAttributeValue (Maybe ComparisonOperator)

-- | Represents the properties of a global secondary index.
--   
--   <i>See:</i> <a>globalSecondaryIndex</a> smart constructor.
data GlobalSecondaryIndex

-- | Creates a value of <a>GlobalSecondaryIndex</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>gsiIndexName</a> - The name of the global secondary index. The
--   name must be unique among all other indexes on this table.</li>
--   <li><a>gsiKeySchema</a> - The complete key schema for a global
--   secondary index, which consists of one or more pairs of attribute
--   names and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt>
--   - sort key</li>
--   <li><a>gsiProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>gsiProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index. For
--   current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   </ul>
globalSecondaryIndex :: Text -> NonEmpty KeySchemaElement -> Projection -> ProvisionedThroughput -> GlobalSecondaryIndex

-- | The name of the global secondary index. The name must be unique among
--   all other indexes on this table.
gsiIndexName :: Lens' GlobalSecondaryIndex Text

-- | The complete key schema for a global secondary index, which consists
--   of one or more pairs of attribute names and key types: * <tt>HASH</tt>
--   - partition key * <tt>RANGE</tt> - sort key
gsiKeySchema :: Lens' GlobalSecondaryIndex (NonEmpty KeySchemaElement)

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
gsiProjection :: Lens' GlobalSecondaryIndex Projection

-- | Represents the provisioned throughput settings for the specified
--   global secondary index. For current minimum and maximum provisioned
--   throughput values, see <a>Limits</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
gsiProvisionedThroughput :: Lens' GlobalSecondaryIndex ProvisionedThroughput

-- | Represents the properties of a global secondary index.
--   
--   <i>See:</i> <a>globalSecondaryIndexDescription</a> smart constructor.
data GlobalSecondaryIndexDescription

-- | Creates a value of <a>GlobalSecondaryIndexDescription</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>gsidBackfilling</a> - Indicates whether the index is currently
--   backfilling. <i>Backfilling</i> is the process of reading items from
--   the table and determining whether they can be added to the index. (Not
--   all items will qualify: For example, a partition key cannot have any
--   duplicate values.) If an item can be added to the index, DynamoDB will
--   do so. After all items have been processed, the backfilling operation
--   is complete and <tt>Backfilling</tt> is false.</li>
--   <li><a>gsidIndexSizeBytes</a> - The total size of the specified index,
--   in bytes. DynamoDB updates this value approximately every six hours.
--   Recent changes might not be reflected in this value.</li>
--   <li><a>gsidIndexStatus</a> - The current state of the global secondary
--   index: * <tt>CREATING</tt> - The index is being created. *
--   <tt>UPDATING</tt> - The index is being updated. * <tt>DELETING</tt> -
--   The index is being deleted. * <tt>ACTIVE</tt> - The index is ready for
--   use.</li>
--   <li><a>gsidProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index. For
--   current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>gsidIndexARN</a> - The Amazon Resource Name (ARN) that uniquely
--   identifies the index.</li>
--   <li><a>gsidKeySchema</a> - The complete key schema for a global
--   secondary index, which consists of one or more pairs of attribute
--   names and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt>
--   - sort key</li>
--   <li><a>gsidProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>gsidItemCount</a> - The number of items in the specified index.
--   DynamoDB updates this value approximately every six hours. Recent
--   changes might not be reflected in this value.</li>
--   <li><a>gsidIndexName</a> - The name of the global secondary
--   index.</li>
--   </ul>
globalSecondaryIndexDescription :: GlobalSecondaryIndexDescription

-- | Indicates whether the index is currently backfilling.
--   <i>Backfilling</i> is the process of reading items from the table and
--   determining whether they can be added to the index. (Not all items
--   will qualify: For example, a partition key cannot have any duplicate
--   values.) If an item can be added to the index, DynamoDB will do so.
--   After all items have been processed, the backfilling operation is
--   complete and <tt>Backfilling</tt> is false.
gsidBackfilling :: Lens' GlobalSecondaryIndexDescription (Maybe Bool)

-- | The total size of the specified index, in bytes. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
gsidIndexSizeBytes :: Lens' GlobalSecondaryIndexDescription (Maybe Integer)

-- | The current state of the global secondary index: * <tt>CREATING</tt> -
--   The index is being created. * <tt>UPDATING</tt> - The index is being
--   updated. * <tt>DELETING</tt> - The index is being deleted. *
--   <tt>ACTIVE</tt> - The index is ready for use.
gsidIndexStatus :: Lens' GlobalSecondaryIndexDescription (Maybe IndexStatus)

-- | Represents the provisioned throughput settings for the specified
--   global secondary index. For current minimum and maximum provisioned
--   throughput values, see <a>Limits</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
gsidProvisionedThroughput :: Lens' GlobalSecondaryIndexDescription (Maybe ProvisionedThroughputDescription)

-- | The Amazon Resource Name (ARN) that uniquely identifies the index.
gsidIndexARN :: Lens' GlobalSecondaryIndexDescription (Maybe Text)

-- | The complete key schema for a global secondary index, which consists
--   of one or more pairs of attribute names and key types: * <tt>HASH</tt>
--   - partition key * <tt>RANGE</tt> - sort key
gsidKeySchema :: Lens' GlobalSecondaryIndexDescription (Maybe (NonEmpty KeySchemaElement))

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
gsidProjection :: Lens' GlobalSecondaryIndexDescription (Maybe Projection)

-- | The number of items in the specified index. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
gsidItemCount :: Lens' GlobalSecondaryIndexDescription (Maybe Integer)

-- | The name of the global secondary index.
gsidIndexName :: Lens' GlobalSecondaryIndexDescription (Maybe Text)

-- | Represents the properties of a global secondary index for the table
--   when the backup was created.
--   
--   <i>See:</i> <a>globalSecondaryIndexInfo</a> smart constructor.
data GlobalSecondaryIndexInfo

-- | Creates a value of <a>GlobalSecondaryIndexInfo</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>gsiiProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index.</li>
--   <li><a>gsiiKeySchema</a> - The complete key schema for a global
--   secondary index, which consists of one or more pairs of attribute
--   names and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt>
--   - sort key</li>
--   <li><a>gsiiProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>gsiiIndexName</a> - The name of the global secondary
--   index.</li>
--   </ul>
globalSecondaryIndexInfo :: GlobalSecondaryIndexInfo

-- | Represents the provisioned throughput settings for the specified
--   global secondary index.
gsiiProvisionedThroughput :: Lens' GlobalSecondaryIndexInfo (Maybe ProvisionedThroughput)

-- | The complete key schema for a global secondary index, which consists
--   of one or more pairs of attribute names and key types: * <tt>HASH</tt>
--   - partition key * <tt>RANGE</tt> - sort key
gsiiKeySchema :: Lens' GlobalSecondaryIndexInfo (Maybe (NonEmpty KeySchemaElement))

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
gsiiProjection :: Lens' GlobalSecondaryIndexInfo (Maybe Projection)

-- | The name of the global secondary index.
gsiiIndexName :: Lens' GlobalSecondaryIndexInfo (Maybe Text)

-- | Represents one of the following:
--   
--   <ul>
--   <li>A new global secondary index to be added to an existing
--   table.</li>
--   <li>New provisioned throughput parameters for an existing global
--   secondary index.</li>
--   <li>An existing global secondary index to be removed from an existing
--   table.</li>
--   </ul>
--   
--   <i>See:</i> <a>globalSecondaryIndexUpdate</a> smart constructor.
data GlobalSecondaryIndexUpdate

-- | Creates a value of <a>GlobalSecondaryIndexUpdate</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>gsiuCreate</a> - The parameters required for creating a global
--   secondary index on an existing table: * <tt>IndexName </tt> *
--   <tt>KeySchema </tt> * <tt>AttributeDefinitions </tt> * <tt>Projection
--   </tt> * <tt>ProvisionedThroughput </tt></li>
--   <li><a>gsiuDelete</a> - The name of an existing global secondary index
--   to be removed.</li>
--   <li><a>gsiuUpdate</a> - The name of an existing global secondary
--   index, along with new provisioned throughput settings to be applied to
--   that index.</li>
--   </ul>
globalSecondaryIndexUpdate :: GlobalSecondaryIndexUpdate

-- | The parameters required for creating a global secondary index on an
--   existing table: * <tt>IndexName </tt> * <tt>KeySchema </tt> *
--   <tt>AttributeDefinitions </tt> * <tt>Projection </tt> *
--   <tt>ProvisionedThroughput </tt>
gsiuCreate :: Lens' GlobalSecondaryIndexUpdate (Maybe CreateGlobalSecondaryIndexAction)

-- | The name of an existing global secondary index to be removed.
gsiuDelete :: Lens' GlobalSecondaryIndexUpdate (Maybe DeleteGlobalSecondaryIndexAction)

-- | The name of an existing global secondary index, along with new
--   provisioned throughput settings to be applied to that index.
gsiuUpdate :: Lens' GlobalSecondaryIndexUpdate (Maybe UpdateGlobalSecondaryIndexAction)

-- | Represents the properties of a global table.
--   
--   <i>See:</i> <a>globalTable</a> smart constructor.
data GlobalTable

-- | Creates a value of <a>GlobalTable</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>gtGlobalTableName</a> - The global table name.</li>
--   <li><a>gtReplicationGroup</a> - The regions where the global table has
--   replicas.</li>
--   </ul>
globalTable :: GlobalTable

-- | The global table name.
gtGlobalTableName :: Lens' GlobalTable (Maybe Text)

-- | The regions where the global table has replicas.
gtReplicationGroup :: Lens' GlobalTable [Replica]

-- | Contains details about the global table.
--   
--   <i>See:</i> <a>globalTableDescription</a> smart constructor.
data GlobalTableDescription

-- | Creates a value of <a>GlobalTableDescription</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>gtdGlobalTableStatus</a> - The current state of the global
--   table: * <tt>CREATING</tt> - The global table is being created. *
--   <tt>UPDATING</tt> - The global table is being updated. *
--   <tt>DELETING</tt> - The global table is being deleted. *
--   <tt>ACTIVE</tt> - The global table is ready for use.</li>
--   <li><a>gtdGlobalTableName</a> - The global table name.</li>
--   <li><a>gtdGlobalTableARN</a> - The unique identifier of the global
--   table.</li>
--   <li><a>gtdCreationDateTime</a> - The creation time of the global
--   table.</li>
--   <li><a>gtdReplicationGroup</a> - The regions where the global table
--   has replicas.</li>
--   </ul>
globalTableDescription :: GlobalTableDescription

-- | The current state of the global table: * <tt>CREATING</tt> - The
--   global table is being created. * <tt>UPDATING</tt> - The global table
--   is being updated. * <tt>DELETING</tt> - The global table is being
--   deleted. * <tt>ACTIVE</tt> - The global table is ready for use.
gtdGlobalTableStatus :: Lens' GlobalTableDescription (Maybe GlobalTableStatus)

-- | The global table name.
gtdGlobalTableName :: Lens' GlobalTableDescription (Maybe Text)

-- | The unique identifier of the global table.
gtdGlobalTableARN :: Lens' GlobalTableDescription (Maybe Text)

-- | The creation time of the global table.
gtdCreationDateTime :: Lens' GlobalTableDescription (Maybe UTCTime)

-- | The regions where the global table has replicas.
gtdReplicationGroup :: Lens' GlobalTableDescription [ReplicaDescription]

-- | Represents the settings of a global secondary index for a global table
--   that will be modified.
--   
--   <i>See:</i> <a>globalTableGlobalSecondaryIndexSettingsUpdate</a> smart
--   constructor.
data GlobalTableGlobalSecondaryIndexSettingsUpdate

-- | Creates a value of
--   <a>GlobalTableGlobalSecondaryIndexSettingsUpdate</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>gtgsisuProvisionedWriteCapacityUnits</a> - The maximum number
--   of writes consumed per second before DynamoDB returns a
--   <tt>ThrottlingException.</tt></li>
--   <li><a>gtgsisuIndexName</a> - The name of the global secondary index.
--   The name must be unique among all other indexes on this table.</li>
--   </ul>
globalTableGlobalSecondaryIndexSettingsUpdate :: Text -> GlobalTableGlobalSecondaryIndexSettingsUpdate

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException.</tt>
gtgsisuProvisionedWriteCapacityUnits :: Lens' GlobalTableGlobalSecondaryIndexSettingsUpdate (Maybe Natural)

-- | The name of the global secondary index. The name must be unique among
--   all other indexes on this table.
gtgsisuIndexName :: Lens' GlobalTableGlobalSecondaryIndexSettingsUpdate Text

-- | Information about item collections, if any, that were affected by the
--   operation. <tt>ItemCollectionMetrics</tt> is only returned if the
--   request asked for it. If the table does not have any local secondary
--   indexes, this information is not returned in the response.
--   
--   <i>See:</i> <a>itemCollectionMetrics</a> smart constructor.
data ItemCollectionMetrics

-- | Creates a value of <a>ItemCollectionMetrics</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>icmItemCollectionKey</a> - The partition key value of the item
--   collection. This value is the same as the partition key value of the
--   item.</li>
--   <li><a>icmSizeEstimateRangeGB</a> - An estimate of item collection
--   size, in gigabytes. This value is a two-element array containing a
--   lower bound and an upper bound for the estimate. The estimate includes
--   the size of all the items in the table, plus the size of all
--   attributes projected into all of the local secondary indexes on that
--   table. Use this estimate to measure whether a local secondary index is
--   approaching its size limit. The estimate is subject to change over
--   time; therefore, do not rely on the precision or accuracy of the
--   estimate.</li>
--   </ul>
itemCollectionMetrics :: ItemCollectionMetrics

-- | The partition key value of the item collection. This value is the same
--   as the partition key value of the item.
icmItemCollectionKey :: Lens' ItemCollectionMetrics (HashMap Text AttributeValue)

-- | An estimate of item collection size, in gigabytes. This value is a
--   two-element array containing a lower bound and an upper bound for the
--   estimate. The estimate includes the size of all the items in the
--   table, plus the size of all attributes projected into all of the local
--   secondary indexes on that table. Use this estimate to measure whether
--   a local secondary index is approaching its size limit. The estimate is
--   subject to change over time; therefore, do not rely on the precision
--   or accuracy of the estimate.
icmSizeEstimateRangeGB :: Lens' ItemCollectionMetrics [Double]

-- | Represents <i>a single element</i> of a key schema. A key schema
--   specifies the attributes that make up the primary key of a table, or
--   the key attributes of an index.
--   
--   A <tt>KeySchemaElement</tt> represents exactly one attribute of the
--   primary key. For example, a simple primary key would be represented by
--   one <tt>KeySchemaElement</tt> (for the partition key). A composite
--   primary key would require one <tt>KeySchemaElement</tt> for the
--   partition key, and another <tt>KeySchemaElement</tt> for the sort key.
--   
--   A <tt>KeySchemaElement</tt> must be a scalar, top-level attribute (not
--   a nested attribute). The data type must be one of String, Number, or
--   Binary. The attribute cannot be nested within a List or a Map.
--   
--   <i>See:</i> <a>keySchemaElement</a> smart constructor.
data KeySchemaElement

-- | Creates a value of <a>KeySchemaElement</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>kseAttributeName</a> - The name of a key attribute.</li>
--   <li><a>kseKeyType</a> - The role that this key attribute will assume:
--   * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort key</li>
--   </ul>
keySchemaElement :: Text -> KeyType -> KeySchemaElement

-- | The name of a key attribute.
kseAttributeName :: Lens' KeySchemaElement Text

-- | The role that this key attribute will assume: * <tt>HASH</tt> -
--   partition key * <tt>RANGE</tt> - sort key
kseKeyType :: Lens' KeySchemaElement KeyType

-- | Represents a set of primary keys and, for each key, the attributes to
--   retrieve from the table.
--   
--   For each primary key, you must provide <i>all</i> of the key
--   attributes. For example, with a simple primary key, you only need to
--   provide the partition key. For a composite primary key, you must
--   provide <i>both</i> the partition key and the sort key.
--   
--   <i>See:</i> <a>keysAndAttributes</a> smart constructor.
data KeysAndAttributes

-- | Creates a value of <a>KeysAndAttributes</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>kaaProjectionExpression</a> - A string that identifies one or
--   more attributes to retrieve from the table. These attributes can
--   include scalars, sets, or elements of a JSON document. The attributes
--   in the <tt>ProjectionExpression</tt> must be separated by commas. If
--   no attribute names are specified, then all attributes will be
--   returned. If any of the requested attributes are not found, they will
--   not appear in the result. For more information, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>kaaAttributesToGet</a> - This is a legacy parameter. Use
--   <tt>ProjectionExpression</tt> instead. For more information, see
--   <a>Legacy Conditional Parameters</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .</li>
--   <li><a>kaaExpressionAttributeNames</a> - One or more substitution
--   tokens for attribute names in an expression. The following are some
--   use cases for using <tt>ExpressionAttributeNames</tt> : * To access an
--   attribute whose name conflicts with a DynamoDB reserved word. * To
--   create a placeholder for repeating occurrences of an attribute name in
--   an expression. * To prevent special characters in an attribute name
--   from being misinterpreted in an expression. Use the <b>#</b> character
--   in an expression to dereference an attribute name. For example,
--   consider the following attribute name: * <tt>Percentile</tt> The name
--   of this attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>kaaConsistentRead</a> - The consistency of a read operation. If
--   set to <tt>true</tt> , then a strongly consistent read is used;
--   otherwise, an eventually consistent read is used.</li>
--   <li><a>kaaKeys</a> - The primary key attribute values that define the
--   items and the attributes associated with the items.</li>
--   </ul>
keysAndAttributes :: NonEmpty (HashMap Text AttributeValue) -> KeysAndAttributes

-- | A string that identifies one or more attributes to retrieve from the
--   table. These attributes can include scalars, sets, or elements of a
--   JSON document. The attributes in the <tt>ProjectionExpression</tt>
--   must be separated by commas. If no attribute names are specified, then
--   all attributes will be returned. If any of the requested attributes
--   are not found, they will not appear in the result. For more
--   information, see <a>Accessing Item Attributes</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
kaaProjectionExpression :: Lens' KeysAndAttributes (Maybe Text)

-- | This is a legacy parameter. Use <tt>ProjectionExpression</tt> instead.
--   For more information, see <a>Legacy Conditional Parameters</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
kaaAttributesToGet :: Lens' KeysAndAttributes (Maybe (NonEmpty Text))

-- | One or more substitution tokens for attribute names in an expression.
--   The following are some use cases for using
--   <tt>ExpressionAttributeNames</tt> : * To access an attribute whose
--   name conflicts with a DynamoDB reserved word. * To create a
--   placeholder for repeating occurrences of an attribute name in an
--   expression. * To prevent special characters in an attribute name from
--   being misinterpreted in an expression. Use the <b>#</b> character in
--   an expression to dereference an attribute name. For example, consider
--   the following attribute name: * <tt>Percentile</tt> The name of this
--   attribute conflicts with a reserved word, so it cannot be used
--   directly in an expression. (For the complete list of reserved words,
--   see <a>Reserved Words</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> ). To work around this, you could specify the following for
--   <tt>ExpressionAttributeNames</tt> : *
--   <tt>{"#P":<a>Percentile</a>}</tt> You could then use this substitution
--   in an expression, as in this example: * <tt>#P = :val</tt> For more
--   information on expression attribute names, see <a>Accessing Item
--   Attributes</a> in the <i>Amazon DynamoDB Developer Guide</i> .
kaaExpressionAttributeNames :: Lens' KeysAndAttributes (HashMap Text Text)

-- | The consistency of a read operation. If set to <tt>true</tt> , then a
--   strongly consistent read is used; otherwise, an eventually consistent
--   read is used.
kaaConsistentRead :: Lens' KeysAndAttributes (Maybe Bool)

-- | The primary key attribute values that define the items and the
--   attributes associated with the items.
kaaKeys :: Lens' KeysAndAttributes (NonEmpty (HashMap Text AttributeValue))

-- | Represents the properties of a local secondary index.
--   
--   <i>See:</i> <a>localSecondaryIndex</a> smart constructor.
data LocalSecondaryIndex

-- | Creates a value of <a>LocalSecondaryIndex</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>lsiIndexName</a> - The name of the local secondary index. The
--   name must be unique among all other indexes on this table.</li>
--   <li><a>lsiKeySchema</a> - The complete key schema for the local
--   secondary index, consisting of one or more pairs of attribute names
--   and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort
--   key</li>
--   <li><a>lsiProjection</a> - Represents attributes that are copied
--   (projected) from the table into the local secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   </ul>
localSecondaryIndex :: Text -> NonEmpty KeySchemaElement -> Projection -> LocalSecondaryIndex

-- | The name of the local secondary index. The name must be unique among
--   all other indexes on this table.
lsiIndexName :: Lens' LocalSecondaryIndex Text

-- | The complete key schema for the local secondary index, consisting of
--   one or more pairs of attribute names and key types: * <tt>HASH</tt> -
--   partition key * <tt>RANGE</tt> - sort key
lsiKeySchema :: Lens' LocalSecondaryIndex (NonEmpty KeySchemaElement)

-- | Represents attributes that are copied (projected) from the table into
--   the local secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
lsiProjection :: Lens' LocalSecondaryIndex Projection

-- | Represents the properties of a local secondary index.
--   
--   <i>See:</i> <a>localSecondaryIndexDescription</a> smart constructor.
data LocalSecondaryIndexDescription

-- | Creates a value of <a>LocalSecondaryIndexDescription</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>lsidIndexSizeBytes</a> - The total size of the specified index,
--   in bytes. DynamoDB updates this value approximately every six hours.
--   Recent changes might not be reflected in this value.</li>
--   <li><a>lsidIndexARN</a> - The Amazon Resource Name (ARN) that uniquely
--   identifies the index.</li>
--   <li><a>lsidKeySchema</a> - The complete key schema for the local
--   secondary index, consisting of one or more pairs of attribute names
--   and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort
--   key</li>
--   <li><a>lsidProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>lsidItemCount</a> - The number of items in the specified index.
--   DynamoDB updates this value approximately every six hours. Recent
--   changes might not be reflected in this value.</li>
--   <li><a>lsidIndexName</a> - Represents the name of the local secondary
--   index.</li>
--   </ul>
localSecondaryIndexDescription :: LocalSecondaryIndexDescription

-- | The total size of the specified index, in bytes. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
lsidIndexSizeBytes :: Lens' LocalSecondaryIndexDescription (Maybe Integer)

-- | The Amazon Resource Name (ARN) that uniquely identifies the index.
lsidIndexARN :: Lens' LocalSecondaryIndexDescription (Maybe Text)

-- | The complete key schema for the local secondary index, consisting of
--   one or more pairs of attribute names and key types: * <tt>HASH</tt> -
--   partition key * <tt>RANGE</tt> - sort key
lsidKeySchema :: Lens' LocalSecondaryIndexDescription (Maybe (NonEmpty KeySchemaElement))

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
lsidProjection :: Lens' LocalSecondaryIndexDescription (Maybe Projection)

-- | The number of items in the specified index. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
lsidItemCount :: Lens' LocalSecondaryIndexDescription (Maybe Integer)

-- | Represents the name of the local secondary index.
lsidIndexName :: Lens' LocalSecondaryIndexDescription (Maybe Text)

-- | Represents the properties of a local secondary index for the table
--   when the backup was created.
--   
--   <i>See:</i> <a>localSecondaryIndexInfo</a> smart constructor.
data LocalSecondaryIndexInfo

-- | Creates a value of <a>LocalSecondaryIndexInfo</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>lsiiKeySchema</a> - The complete key schema for a local
--   secondary index, which consists of one or more pairs of attribute
--   names and key types: * <tt>HASH</tt> - partition key * <tt>RANGE</tt>
--   - sort key</li>
--   <li><a>lsiiProjection</a> - Represents attributes that are copied
--   (projected) from the table into the global secondary index. These are
--   in addition to the primary key attributes and index key attributes,
--   which are automatically projected.</li>
--   <li><a>lsiiIndexName</a> - Represents the name of the local secondary
--   index.</li>
--   </ul>
localSecondaryIndexInfo :: LocalSecondaryIndexInfo

-- | The complete key schema for a local secondary index, which consists of
--   one or more pairs of attribute names and key types: * <tt>HASH</tt> -
--   partition key * <tt>RANGE</tt> - sort key
lsiiKeySchema :: Lens' LocalSecondaryIndexInfo (Maybe (NonEmpty KeySchemaElement))

-- | Represents attributes that are copied (projected) from the table into
--   the global secondary index. These are in addition to the primary key
--   attributes and index key attributes, which are automatically
--   projected.
lsiiProjection :: Lens' LocalSecondaryIndexInfo (Maybe Projection)

-- | Represents the name of the local secondary index.
lsiiIndexName :: Lens' LocalSecondaryIndexInfo (Maybe Text)

-- | The description of the point in time settings applied to the table.
--   
--   <i>See:</i> <a>pointInTimeRecoveryDescription</a> smart constructor.
data PointInTimeRecoveryDescription

-- | Creates a value of <a>PointInTimeRecoveryDescription</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>pitrdPointInTimeRecoveryStatus</a> - The current state of point
--   in time recovery: * <tt>ENABLING</tt> - Point in time recovery is
--   being enabled. * <tt>ENABLED</tt> - Point in time recovery is enabled.
--   * <tt>DISABLED</tt> - Point in time recovery is disabled.</li>
--   <li><a>pitrdEarliestRestorableDateTime</a> - Specifies the earliest
--   point in time you can restore your table to. It You can restore your
--   table to any point in time during the last 35 days.</li>
--   <li><a>pitrdLatestRestorableDateTime</a> -
--   <tt>LatestRestorableDateTime</tt> is typically 5 minutes before the
--   current time.</li>
--   </ul>
pointInTimeRecoveryDescription :: PointInTimeRecoveryDescription

-- | The current state of point in time recovery: * <tt>ENABLING</tt> -
--   Point in time recovery is being enabled. * <tt>ENABLED</tt> - Point in
--   time recovery is enabled. * <tt>DISABLED</tt> - Point in time recovery
--   is disabled.
pitrdPointInTimeRecoveryStatus :: Lens' PointInTimeRecoveryDescription (Maybe PointInTimeRecoveryStatus)

-- | Specifies the earliest point in time you can restore your table to. It
--   You can restore your table to any point in time during the last 35
--   days.
pitrdEarliestRestorableDateTime :: Lens' PointInTimeRecoveryDescription (Maybe UTCTime)

-- | <tt>LatestRestorableDateTime</tt> is typically 5 minutes before the
--   current time.
pitrdLatestRestorableDateTime :: Lens' PointInTimeRecoveryDescription (Maybe UTCTime)

-- | Represents the settings used to enable point in time recovery.
--   
--   <i>See:</i> <a>pointInTimeRecoverySpecification</a> smart constructor.
data PointInTimeRecoverySpecification

-- | Creates a value of <a>PointInTimeRecoverySpecification</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>pitrsPointInTimeRecoveryEnabled</a> - Indicates whether point
--   in time recovery is enabled (true) or disabled (false) on the
--   table.</li>
--   </ul>
pointInTimeRecoverySpecification :: Bool -> PointInTimeRecoverySpecification

-- | Indicates whether point in time recovery is enabled (true) or disabled
--   (false) on the table.
pitrsPointInTimeRecoveryEnabled :: Lens' PointInTimeRecoverySpecification Bool

-- | Represents attributes that are copied (projected) from the table into
--   an index. These are in addition to the primary key attributes and
--   index key attributes, which are automatically projected.
--   
--   <i>See:</i> <a>projection</a> smart constructor.
data Projection

-- | Creates a value of <a>Projection</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>pProjectionType</a> - The set of attributes that are projected
--   into the index: * <tt>KEYS_ONLY</tt> - Only the index and primary keys
--   are projected into the index. * <tt>INCLUDE</tt> - Only the specified
--   table attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index.</li>
--   <li><a>pNonKeyAttributes</a> - Represents the non-key attribute names
--   which will be projected into the index. For local secondary indexes,
--   the total count of <tt>NonKeyAttributes</tt> summed across all of the
--   local secondary indexes, must not exceed 20. If you project the same
--   attribute into two different indexes, this counts as two distinct
--   attributes when determining the total.</li>
--   </ul>
projection :: Projection

-- | The set of attributes that are projected into the index: *
--   <tt>KEYS_ONLY</tt> - Only the index and primary keys are projected
--   into the index. * <tt>INCLUDE</tt> - Only the specified table
--   attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index.
pProjectionType :: Lens' Projection (Maybe ProjectionType)

-- | Represents the non-key attribute names which will be projected into
--   the index. For local secondary indexes, the total count of
--   <tt>NonKeyAttributes</tt> summed across all of the local secondary
--   indexes, must not exceed 20. If you project the same attribute into
--   two different indexes, this counts as two distinct attributes when
--   determining the total.
pNonKeyAttributes :: Lens' Projection (Maybe (NonEmpty Text))

-- | Represents the provisioned throughput settings for a specified table
--   or index. The settings can be modified using the <tt>UpdateTable</tt>
--   operation.
--   
--   For current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .
--   
--   <i>See:</i> <a>provisionedThroughput</a> smart constructor.
data ProvisionedThroughput

-- | Creates a value of <a>ProvisionedThroughput</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>ptReadCapacityUnits</a> - The maximum number of strongly
--   consistent reads consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> . For more information, see <a>Specifying
--   Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>ptWriteCapacityUnits</a> - The maximum number of writes
--   consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> . For more information, see <a>Specifying
--   Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   </ul>
provisionedThroughput :: Natural -> Natural -> ProvisionedThroughput

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> . For more
--   information, see <a>Specifying Read and Write Requirements</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
ptReadCapacityUnits :: Lens' ProvisionedThroughput Natural

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> . For more information, see
--   <a>Specifying Read and Write Requirements</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
ptWriteCapacityUnits :: Lens' ProvisionedThroughput Natural

-- | Represents the provisioned throughput settings for the table,
--   consisting of read and write capacity units, along with data about
--   increases and decreases.
--   
--   <i>See:</i> <a>provisionedThroughputDescription</a> smart constructor.
data ProvisionedThroughputDescription

-- | Creates a value of <a>ProvisionedThroughputDescription</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>ptdReadCapacityUnits</a> - The maximum number of strongly
--   consistent reads consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> . Eventually consistent reads require
--   less effort than strongly consistent reads, so a setting of 50
--   <tt>ReadCapacityUnits</tt> per second provides 100 eventually
--   consistent <tt>ReadCapacityUnits</tt> per second.</li>
--   <li><a>ptdLastDecreaseDateTime</a> - The date and time of the last
--   provisioned throughput decrease for this table.</li>
--   <li><a>ptdWriteCapacityUnits</a> - The maximum number of writes
--   consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> .</li>
--   <li><a>ptdNumberOfDecreasesToday</a> - The number of provisioned
--   throughput decreases for this table during this UTC calendar day. For
--   current maximums on provisioned throughput decreases, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>ptdLastIncreaseDateTime</a> - The date and time of the last
--   provisioned throughput increase for this table.</li>
--   </ul>
provisionedThroughputDescription :: ProvisionedThroughputDescription

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> . Eventually
--   consistent reads require less effort than strongly consistent reads,
--   so a setting of 50 <tt>ReadCapacityUnits</tt> per second provides 100
--   eventually consistent <tt>ReadCapacityUnits</tt> per second.
ptdReadCapacityUnits :: Lens' ProvisionedThroughputDescription (Maybe Natural)

-- | The date and time of the last provisioned throughput decrease for this
--   table.
ptdLastDecreaseDateTime :: Lens' ProvisionedThroughputDescription (Maybe UTCTime)

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> .
ptdWriteCapacityUnits :: Lens' ProvisionedThroughputDescription (Maybe Natural)

-- | The number of provisioned throughput decreases for this table during
--   this UTC calendar day. For current maximums on provisioned throughput
--   decreases, see <a>Limits</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .
ptdNumberOfDecreasesToday :: Lens' ProvisionedThroughputDescription (Maybe Natural)

-- | The date and time of the last provisioned throughput increase for this
--   table.
ptdLastIncreaseDateTime :: Lens' ProvisionedThroughputDescription (Maybe UTCTime)

-- | Represents a request to perform a <tt>PutItem</tt> operation on an
--   item.
--   
--   <i>See:</i> <a>putRequest</a> smart constructor.
data PutRequest

-- | Creates a value of <a>PutRequest</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>prItem</a> - A map of attribute name to attribute values,
--   representing the primary key of an item to be processed by
--   <tt>PutItem</tt> . All of the table's primary key attributes must be
--   specified, and their data types must match those of the table's key
--   schema. If any attributes are present in the item which are part of an
--   index key schema for the table, their types must match the index key
--   schema.</li>
--   </ul>
putRequest :: PutRequest

-- | A map of attribute name to attribute values, representing the primary
--   key of an item to be processed by <tt>PutItem</tt> . All of the
--   table's primary key attributes must be specified, and their data types
--   must match those of the table's key schema. If any attributes are
--   present in the item which are part of an index key schema for the
--   table, their types must match the index key schema.
prItem :: Lens' PutRequest (HashMap Text AttributeValue)

-- | Represents the properties of a replica.
--   
--   <i>See:</i> <a>replica</a> smart constructor.
data Replica

-- | Creates a value of <a>Replica</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>rRegionName</a> - The region where the replica needs to be
--   created.</li>
--   </ul>
replica :: Replica

-- | The region where the replica needs to be created.
rRegionName :: Lens' Replica (Maybe Text)

-- | Contains the details of the replica.
--   
--   <i>See:</i> <a>replicaDescription</a> smart constructor.
data ReplicaDescription

-- | Creates a value of <a>ReplicaDescription</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>rdRegionName</a> - The name of the region.</li>
--   </ul>
replicaDescription :: ReplicaDescription

-- | The name of the region.
rdRegionName :: Lens' ReplicaDescription (Maybe Text)

-- | Represents the properties of a global secondary index.
--   
--   <i>See:</i> <a>replicaGlobalSecondaryIndexSettingsDescription</a>
--   smart constructor.
data ReplicaGlobalSecondaryIndexSettingsDescription

-- | Creates a value of
--   <a>ReplicaGlobalSecondaryIndexSettingsDescription</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>rgsisdIndexStatus</a> - The current status of the global
--   secondary index: * <tt>CREATING</tt> - The global secondary index is
--   being created. * <tt>UPDATING</tt> - The global secondary index is
--   being updated. * <tt>DELETING</tt> - The global secondary index is
--   being deleted. * <tt>ACTIVE</tt> - The global secondary index is ready
--   for use.</li>
--   <li><a>rgsisdProvisionedReadCapacityUnits</a> - The maximum number of
--   strongly consistent reads consumed per second before DynamoDB returns
--   a <tt>ThrottlingException</tt> .</li>
--   <li><a>rgsisdProvisionedWriteCapacityUnits</a> - The maximum number of
--   writes consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> .</li>
--   <li><a>rgsisdIndexName</a> - The name of the global secondary index.
--   The name must be unique among all other indexes on this table.</li>
--   </ul>
replicaGlobalSecondaryIndexSettingsDescription :: Text -> ReplicaGlobalSecondaryIndexSettingsDescription

-- | The current status of the global secondary index: * <tt>CREATING</tt>
--   - The global secondary index is being created. * <tt>UPDATING</tt> -
--   The global secondary index is being updated. * <tt>DELETING</tt> - The
--   global secondary index is being deleted. * <tt>ACTIVE</tt> - The
--   global secondary index is ready for use.
rgsisdIndexStatus :: Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Maybe IndexStatus)

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> .
rgsisdProvisionedReadCapacityUnits :: Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Maybe Natural)

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> .
rgsisdProvisionedWriteCapacityUnits :: Lens' ReplicaGlobalSecondaryIndexSettingsDescription (Maybe Natural)

-- | The name of the global secondary index. The name must be unique among
--   all other indexes on this table.
rgsisdIndexName :: Lens' ReplicaGlobalSecondaryIndexSettingsDescription Text

-- | Represents the settings of a global secondary index for a global table
--   that will be modified.
--   
--   <i>See:</i> <a>replicaGlobalSecondaryIndexSettingsUpdate</a> smart
--   constructor.
data ReplicaGlobalSecondaryIndexSettingsUpdate

-- | Creates a value of <a>ReplicaGlobalSecondaryIndexSettingsUpdate</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>rgsisuProvisionedReadCapacityUnits</a> - The maximum number of
--   strongly consistent reads consumed per second before DynamoDB returns
--   a <tt>ThrottlingException</tt> .</li>
--   <li><a>rgsisuIndexName</a> - The name of the global secondary index.
--   The name must be unique among all other indexes on this table.</li>
--   </ul>
replicaGlobalSecondaryIndexSettingsUpdate :: Text -> ReplicaGlobalSecondaryIndexSettingsUpdate

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> .
rgsisuProvisionedReadCapacityUnits :: Lens' ReplicaGlobalSecondaryIndexSettingsUpdate (Maybe Natural)

-- | The name of the global secondary index. The name must be unique among
--   all other indexes on this table.
rgsisuIndexName :: Lens' ReplicaGlobalSecondaryIndexSettingsUpdate Text

-- | Represents the properties of a replica.
--   
--   <i>See:</i> <a>replicaSettingsDescription</a> smart constructor.
data ReplicaSettingsDescription

-- | Creates a value of <a>ReplicaSettingsDescription</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>rsdReplicaStatus</a> - The current state of the region: *
--   <tt>CREATING</tt> - The region is being created. * <tt>UPDATING</tt> -
--   The region is being updated. * <tt>DELETING</tt> - The region is being
--   deleted. * <tt>ACTIVE</tt> - The region is ready for use.</li>
--   <li><a>rsdReplicaProvisionedReadCapacityUnits</a> - The maximum number
--   of strongly consistent reads consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> . For more information, see
--   <a>Specifying Read and Write Requirements</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .</li>
--   <li><a>rsdReplicaProvisionedWriteCapacityUnits</a> - The maximum
--   number of writes consumed per second before DynamoDB returns a
--   <tt>ThrottlingException</tt> . For more information, see <a>Specifying
--   Read and Write Requirements</a> in the <i>Amazon DynamoDB Developer
--   Guide</i> .</li>
--   <li><a>rsdReplicaGlobalSecondaryIndexSettings</a> - Replica global
--   secondary index settings for the global table.</li>
--   <li><a>rsdRegionName</a> - The region name of the replica.</li>
--   </ul>
replicaSettingsDescription :: Text -> ReplicaSettingsDescription

-- | The current state of the region: * <tt>CREATING</tt> - The region is
--   being created. * <tt>UPDATING</tt> - The region is being updated. *
--   <tt>DELETING</tt> - The region is being deleted. * <tt>ACTIVE</tt> -
--   The region is ready for use.
rsdReplicaStatus :: Lens' ReplicaSettingsDescription (Maybe ReplicaStatus)

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> . For more
--   information, see <a>Specifying Read and Write Requirements</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
rsdReplicaProvisionedReadCapacityUnits :: Lens' ReplicaSettingsDescription (Maybe Natural)

-- | The maximum number of writes consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> . For more information, see
--   <a>Specifying Read and Write Requirements</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .
rsdReplicaProvisionedWriteCapacityUnits :: Lens' ReplicaSettingsDescription (Maybe Natural)

-- | Replica global secondary index settings for the global table.
rsdReplicaGlobalSecondaryIndexSettings :: Lens' ReplicaSettingsDescription [ReplicaGlobalSecondaryIndexSettingsDescription]

-- | The region name of the replica.
rsdRegionName :: Lens' ReplicaSettingsDescription Text

-- | Represents the settings for a global table in a region that will be
--   modified.
--   
--   <i>See:</i> <a>replicaSettingsUpdate</a> smart constructor.
data ReplicaSettingsUpdate

-- | Creates a value of <a>ReplicaSettingsUpdate</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>rsuReplicaProvisionedReadCapacityUnits</a> - The maximum number
--   of strongly consistent reads consumed per second before DynamoDB
--   returns a <tt>ThrottlingException</tt> . For more information, see
--   <a>Specifying Read and Write Requirements</a> in the <i>Amazon
--   DynamoDB Developer Guide</i> .</li>
--   <li><a>rsuReplicaGlobalSecondaryIndexSettingsUpdate</a> - Represents
--   the settings of a global secondary index for a global table that will
--   be modified.</li>
--   <li><a>rsuRegionName</a> - The region of the replica to be added.</li>
--   </ul>
replicaSettingsUpdate :: Text -> ReplicaSettingsUpdate

-- | The maximum number of strongly consistent reads consumed per second
--   before DynamoDB returns a <tt>ThrottlingException</tt> . For more
--   information, see <a>Specifying Read and Write Requirements</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
rsuReplicaProvisionedReadCapacityUnits :: Lens' ReplicaSettingsUpdate (Maybe Natural)

-- | Represents the settings of a global secondary index for a global table
--   that will be modified.
rsuReplicaGlobalSecondaryIndexSettingsUpdate :: Lens' ReplicaSettingsUpdate (Maybe (NonEmpty ReplicaGlobalSecondaryIndexSettingsUpdate))

-- | The region of the replica to be added.
rsuRegionName :: Lens' ReplicaSettingsUpdate Text

-- | Represents one of the following:
--   
--   <ul>
--   <li>A new replica to be added to an existing global table.</li>
--   <li>New parameters for an existing replica.</li>
--   <li>An existing replica to be removed from an existing global
--   table.</li>
--   </ul>
--   
--   <i>See:</i> <a>replicaUpdate</a> smart constructor.
data ReplicaUpdate

-- | Creates a value of <a>ReplicaUpdate</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>ruCreate</a> - The parameters required for creating a replica
--   on an existing global table.</li>
--   <li><a>ruDelete</a> - The name of the existing replica to be
--   removed.</li>
--   </ul>
replicaUpdate :: ReplicaUpdate

-- | The parameters required for creating a replica on an existing global
--   table.
ruCreate :: Lens' ReplicaUpdate (Maybe CreateReplicaAction)

-- | The name of the existing replica to be removed.
ruDelete :: Lens' ReplicaUpdate (Maybe DeleteReplicaAction)

-- | Contains details for the restore.
--   
--   <i>See:</i> <a>restoreSummary</a> smart constructor.
data RestoreSummary

-- | Creates a value of <a>RestoreSummary</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>rsSourceTableARN</a> - ARN of the source table of the backup
--   that is being restored.</li>
--   <li><a>rsSourceBackupARN</a> - ARN of the backup from which the table
--   was restored.</li>
--   <li><a>rsRestoreDateTime</a> - Point in time or source backup
--   time.</li>
--   <li><a>rsRestoreInProgress</a> - Indicates if a restore is in progress
--   or not.</li>
--   </ul>
restoreSummary :: UTCTime -> Bool -> RestoreSummary

-- | ARN of the source table of the backup that is being restored.
rsSourceTableARN :: Lens' RestoreSummary (Maybe Text)

-- | ARN of the backup from which the table was restored.
rsSourceBackupARN :: Lens' RestoreSummary (Maybe Text)

-- | Point in time or source backup time.
rsRestoreDateTime :: Lens' RestoreSummary UTCTime

-- | Indicates if a restore is in progress or not.
rsRestoreInProgress :: Lens' RestoreSummary Bool

-- | The description of the server-side encryption status on the specified
--   table.
--   
--   <i>See:</i> <a>sSEDescription</a> smart constructor.
data SSEDescription

-- | Creates a value of <a>SSEDescription</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>ssedStatus</a> - The current state of server-side encryption: *
--   <tt>ENABLING</tt> - Server-side encryption is being enabled. *
--   <tt>ENABLED</tt> - Server-side encryption is enabled. *
--   <tt>DISABLING</tt> - Server-side encryption is being disabled. *
--   <tt>DISABLED</tt> - Server-side encryption is disabled.</li>
--   </ul>
sSEDescription :: SSEDescription

-- | The current state of server-side encryption: * <tt>ENABLING</tt> -
--   Server-side encryption is being enabled. * <tt>ENABLED</tt> -
--   Server-side encryption is enabled. * <tt>DISABLING</tt> - Server-side
--   encryption is being disabled. * <tt>DISABLED</tt> - Server-side
--   encryption is disabled.
ssedStatus :: Lens' SSEDescription (Maybe SSEStatus)

-- | Represents the settings used to enable server-side encryption.
--   
--   <i>See:</i> <a>sSESpecification</a> smart constructor.
data SSESpecification

-- | Creates a value of <a>SSESpecification</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>ssesEnabled</a> - Indicates whether server-side encryption is
--   enabled (true) or disabled (false) on the table.</li>
--   </ul>
sSESpecification :: Bool -> SSESpecification

-- | Indicates whether server-side encryption is enabled (true) or disabled
--   (false) on the table.
ssesEnabled :: Lens' SSESpecification Bool

-- | Contains the details of the table when the backup was created.
--   
--   <i>See:</i> <a>sourceTableDetails</a> smart constructor.
data SourceTableDetails

-- | Creates a value of <a>SourceTableDetails</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>stdTableSizeBytes</a> - Size of the table in bytes. Please note
--   this is an approximate value.</li>
--   <li><a>stdTableARN</a> - ARN of the table for which backup was
--   created.</li>
--   <li><a>stdItemCount</a> - Number of items in the table. Please note
--   this is an approximate value.</li>
--   <li><a>stdTableName</a> - The name of the table for which the backup
--   was created.</li>
--   <li><a>stdTableId</a> - Unique identifier for the table for which the
--   backup was created.</li>
--   <li><a>stdKeySchema</a> - Schema of the table.</li>
--   <li><a>stdTableCreationDateTime</a> - Time when the source table was
--   created.</li>
--   <li><a>stdProvisionedThroughput</a> - Read IOPs and Write IOPS on the
--   table when the backup was created.</li>
--   </ul>
sourceTableDetails :: Text -> Text -> NonEmpty KeySchemaElement -> UTCTime -> ProvisionedThroughput -> SourceTableDetails

-- | Size of the table in bytes. Please note this is an approximate value.
stdTableSizeBytes :: Lens' SourceTableDetails (Maybe Integer)

-- | ARN of the table for which backup was created.
stdTableARN :: Lens' SourceTableDetails (Maybe Text)

-- | Number of items in the table. Please note this is an approximate
--   value.
stdItemCount :: Lens' SourceTableDetails (Maybe Natural)

-- | The name of the table for which the backup was created.
stdTableName :: Lens' SourceTableDetails Text

-- | Unique identifier for the table for which the backup was created.
stdTableId :: Lens' SourceTableDetails Text

-- | Schema of the table.
stdKeySchema :: Lens' SourceTableDetails (NonEmpty KeySchemaElement)

-- | Time when the source table was created.
stdTableCreationDateTime :: Lens' SourceTableDetails UTCTime

-- | Read IOPs and Write IOPS on the table when the backup was created.
stdProvisionedThroughput :: Lens' SourceTableDetails ProvisionedThroughput

-- | Contains the details of the features enabled on the table when the
--   backup was created. For example, LSIs, GSIs, streams, TTL.
--   
--   <i>See:</i> <a>sourceTableFeatureDetails</a> smart constructor.
data SourceTableFeatureDetails

-- | Creates a value of <a>SourceTableFeatureDetails</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>stfdStreamDescription</a> - Stream settings on the table when
--   the backup was created.</li>
--   <li><a>stfdGlobalSecondaryIndexes</a> - Represents the GSI properties
--   for the table when the backup was created. It includes the IndexName,
--   KeySchema, Projection and ProvisionedThroughput for the GSIs on the
--   table at the time of backup.</li>
--   <li><a>stfdLocalSecondaryIndexes</a> - Represents the LSI properties
--   for the table when the backup was created. It includes the IndexName,
--   KeySchema and Projection for the LSIs on the table at the time of
--   backup.</li>
--   <li><a>stfdSSEDescription</a> - The description of the server-side
--   encryption status on the table when the backup was created.</li>
--   <li><a>stfdTimeToLiveDescription</a> - Time to Live settings on the
--   table when the backup was created.</li>
--   </ul>
sourceTableFeatureDetails :: SourceTableFeatureDetails

-- | Stream settings on the table when the backup was created.
stfdStreamDescription :: Lens' SourceTableFeatureDetails (Maybe StreamSpecification)

-- | Represents the GSI properties for the table when the backup was
--   created. It includes the IndexName, KeySchema, Projection and
--   ProvisionedThroughput for the GSIs on the table at the time of backup.
stfdGlobalSecondaryIndexes :: Lens' SourceTableFeatureDetails [GlobalSecondaryIndexInfo]

-- | Represents the LSI properties for the table when the backup was
--   created. It includes the IndexName, KeySchema and Projection for the
--   LSIs on the table at the time of backup.
stfdLocalSecondaryIndexes :: Lens' SourceTableFeatureDetails [LocalSecondaryIndexInfo]

-- | The description of the server-side encryption status on the table when
--   the backup was created.
stfdSSEDescription :: Lens' SourceTableFeatureDetails (Maybe SSEDescription)

-- | Time to Live settings on the table when the backup was created.
stfdTimeToLiveDescription :: Lens' SourceTableFeatureDetails (Maybe TimeToLiveDescription)

-- | Represents the DynamoDB Streams configuration for a table in DynamoDB.
--   
--   <i>See:</i> <a>streamSpecification</a> smart constructor.
data StreamSpecification

-- | Creates a value of <a>StreamSpecification</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>ssStreamViewType</a> - When an item in the table is modified,
--   <tt>StreamViewType</tt> determines what information is written to the
--   stream for this table. Valid values for <tt>StreamViewType</tt> are: *
--   <tt>KEYS_ONLY</tt> - Only the key attributes of the modified item are
--   written to the stream. * <tt>NEW_IMAGE</tt> - The entire item, as it
--   appears after it was modified, is written to the stream. *
--   <tt>OLD_IMAGE</tt> - The entire item, as it appeared before it was
--   modified, is written to the stream. * <tt>NEW_AND_OLD_IMAGES</tt> -
--   Both the new and the old item images of the item are written to the
--   stream.</li>
--   <li><a>ssStreamEnabled</a> - Indicates whether DynamoDB Streams is
--   enabled (true) or disabled (false) on the table.</li>
--   </ul>
streamSpecification :: StreamSpecification

-- | When an item in the table is modified, <tt>StreamViewType</tt>
--   determines what information is written to the stream for this table.
--   Valid values for <tt>StreamViewType</tt> are: * <tt>KEYS_ONLY</tt> -
--   Only the key attributes of the modified item are written to the
--   stream. * <tt>NEW_IMAGE</tt> - The entire item, as it appears after it
--   was modified, is written to the stream. * <tt>OLD_IMAGE</tt> - The
--   entire item, as it appeared before it was modified, is written to the
--   stream. * <tt>NEW_AND_OLD_IMAGES</tt> - Both the new and the old item
--   images of the item are written to the stream.
ssStreamViewType :: Lens' StreamSpecification (Maybe StreamViewType)

-- | Indicates whether DynamoDB Streams is enabled (true) or disabled
--   (false) on the table.
ssStreamEnabled :: Lens' StreamSpecification (Maybe Bool)

-- | Represents the properties of a table.
--   
--   <i>See:</i> <a>tableDescription</a> smart constructor.
data TableDescription

-- | Creates a value of <a>TableDescription</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>tdRestoreSummary</a> - Contains details for the restore.</li>
--   <li><a>tdTableSizeBytes</a> - The total size of the specified table,
--   in bytes. DynamoDB updates this value approximately every six hours.
--   Recent changes might not be reflected in this value.</li>
--   <li><a>tdAttributeDefinitions</a> - An array of
--   <tt>AttributeDefinition</tt> objects. Each of these objects describes
--   one attribute in the table and index key schema. Each
--   <tt>AttributeDefinition</tt> object in this array is composed of: *
--   <tt>AttributeName</tt> - The name of the attribute. *
--   <tt>AttributeType</tt> - The data type for the attribute.</li>
--   <li><a>tdLatestStreamARN</a> - The Amazon Resource Name (ARN) that
--   uniquely identifies the latest stream for this table.</li>
--   <li><a>tdProvisionedThroughput</a> - The provisioned throughput
--   settings for the table, consisting of read and write capacity units,
--   along with data about increases and decreases.</li>
--   <li><a>tdTableStatus</a> - The current state of the table: *
--   <tt>CREATING</tt> - The table is being created. * <tt>UPDATING</tt> -
--   The table is being updated. * <tt>DELETING</tt> - The table is being
--   deleted. * <tt>ACTIVE</tt> - The table is ready for use.</li>
--   <li><a>tdTableARN</a> - The Amazon Resource Name (ARN) that uniquely
--   identifies the table.</li>
--   <li><a>tdKeySchema</a> - The primary key structure for the table. Each
--   <tt>KeySchemaElement</tt> consists of: * <tt>AttributeName</tt> - The
--   name of the attribute. * <tt>KeyType</tt> - The role of the attribute:
--   * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort key For more
--   information about primary keys, see <a>Primary Key</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .</li>
--   <li><a>tdGlobalSecondaryIndexes</a> - The global secondary indexes, if
--   any, on the table. Each index is scoped to a given partition key
--   value. Each element is composed of: * <tt>Backfilling</tt> - If true,
--   then the index is currently in the backfilling phase. Backfilling
--   occurs only when a new global secondary index is added to the table;
--   it is the process by which DynamoDB populates the new index with data
--   from the table. (This attribute does not appear for indexes that were
--   created during a <tt>CreateTable</tt> operation.) * <tt>IndexName</tt>
--   - The name of the global secondary index. * <tt>IndexSizeBytes</tt> -
--   The total size of the global secondary index, in bytes. DynamoDB
--   updates this value approximately every six hours. Recent changes might
--   not be reflected in this value. * <tt>IndexStatus</tt> - The current
--   status of the global secondary index: * <tt>CREATING</tt> - The index
--   is being created. * <tt>UPDATING</tt> - The index is being updated. *
--   <tt>DELETING</tt> - The index is being deleted. * <tt>ACTIVE</tt> -
--   The index is ready for use. * <tt>ItemCount</tt> - The number of items
--   in the global secondary index. DynamoDB updates this value
--   approximately every six hours. Recent changes might not be reflected
--   in this value. * <tt>KeySchema</tt> - Specifies the complete index key
--   schema. The attribute names in the key schema must be between 1 and
--   255 characters (inclusive). The key schema must begin with the same
--   partition key as the table. * <tt>Projection</tt> - Specifies
--   attributes that are copied (projected) from the table into the index.
--   These are in addition to the primary key attributes and index key
--   attributes, which are automatically projected. Each attribute
--   specification is composed of: * <tt>ProjectionType</tt> - One of the
--   following: * <tt>KEYS_ONLY</tt> - Only the index and primary keys are
--   projected into the index. * <tt>INCLUDE</tt> - Only the specified
--   table attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index. *
--   <tt>NonKeyAttributes</tt> - A list of one or more non-key attribute
--   names that are projected into the secondary index. The total count of
--   attributes provided in <tt>NonKeyAttributes</tt> , summed across all
--   of the secondary indexes, must not exceed 20. If you project the same
--   attribute into two different indexes, this counts as two distinct
--   attributes when determining the total. *
--   <tt>ProvisionedThroughput</tt> - The provisioned throughput settings
--   for the global secondary index, consisting of read and write capacity
--   units, along with data about increases and decreases. If the table is
--   in the <tt>DELETING</tt> state, no information about indexes will be
--   returned.</li>
--   <li><a>tdLatestStreamLabel</a> - A timestamp, in ISO 8601 format, for
--   this stream. Note that <tt>LatestStreamLabel</tt> is not a unique
--   identifier for the stream, because it is possible that a stream from
--   another table might have the same timestamp. However, the combination
--   of the following three elements is guaranteed to be unique: * the AWS
--   customer ID. * the table name. * the <tt>StreamLabel</tt> .</li>
--   <li><a>tdLocalSecondaryIndexes</a> - Represents one or more local
--   secondary indexes on the table. Each index is scoped to a given
--   partition key value. Tables with one or more local secondary indexes
--   are subject to an item collection size limit, where the amount of data
--   within a given item collection cannot exceed 10 GB. Each element is
--   composed of: * <tt>IndexName</tt> - The name of the local secondary
--   index. * <tt>KeySchema</tt> - Specifies the complete index key schema.
--   The attribute names in the key schema must be between 1 and 255
--   characters (inclusive). The key schema must begin with the same
--   partition key as the table. * <tt>Projection</tt> - Specifies
--   attributes that are copied (projected) from the table into the index.
--   These are in addition to the primary key attributes and index key
--   attributes, which are automatically projected. Each attribute
--   specification is composed of: * <tt>ProjectionType</tt> - One of the
--   following: * <tt>KEYS_ONLY</tt> - Only the index and primary keys are
--   projected into the index. * <tt>INCLUDE</tt> - Only the specified
--   table attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index. *
--   <tt>NonKeyAttributes</tt> - A list of one or more non-key attribute
--   names that are projected into the secondary index. The total count of
--   attributes provided in <tt>NonKeyAttributes</tt> , summed across all
--   of the secondary indexes, must not exceed 20. If you project the same
--   attribute into two different indexes, this counts as two distinct
--   attributes when determining the total. * <tt>IndexSizeBytes</tt> -
--   Represents the total size of the index, in bytes. DynamoDB updates
--   this value approximately every six hours. Recent changes might not be
--   reflected in this value. * <tt>ItemCount</tt> - Represents the number
--   of items in the index. DynamoDB updates this value approximately every
--   six hours. Recent changes might not be reflected in this value. If the
--   table is in the <tt>DELETING</tt> state, no information about indexes
--   will be returned.</li>
--   <li><a>tdCreationDateTime</a> - The date and time when the table was
--   created, in <a>UNIX epoch time</a> format.</li>
--   <li><a>tdSSEDescription</a> - The description of the server-side
--   encryption status on the specified table.</li>
--   <li><a>tdTableId</a> - Unique identifier for the table for which the
--   backup was created.</li>
--   <li><a>tdItemCount</a> - The number of items in the specified table.
--   DynamoDB updates this value approximately every six hours. Recent
--   changes might not be reflected in this value.</li>
--   <li><a>tdTableName</a> - The name of the table.</li>
--   <li><a>tdStreamSpecification</a> - The current DynamoDB Streams
--   configuration for the table.</li>
--   </ul>
tableDescription :: TableDescription

-- | Contains details for the restore.
tdRestoreSummary :: Lens' TableDescription (Maybe RestoreSummary)

-- | The total size of the specified table, in bytes. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
tdTableSizeBytes :: Lens' TableDescription (Maybe Integer)

-- | An array of <tt>AttributeDefinition</tt> objects. Each of these
--   objects describes one attribute in the table and index key schema.
--   Each <tt>AttributeDefinition</tt> object in this array is composed of:
--   * <tt>AttributeName</tt> - The name of the attribute. *
--   <tt>AttributeType</tt> - The data type for the attribute.
tdAttributeDefinitions :: Lens' TableDescription [AttributeDefinition]

-- | The Amazon Resource Name (ARN) that uniquely identifies the latest
--   stream for this table.
tdLatestStreamARN :: Lens' TableDescription (Maybe Text)

-- | The provisioned throughput settings for the table, consisting of read
--   and write capacity units, along with data about increases and
--   decreases.
tdProvisionedThroughput :: Lens' TableDescription (Maybe ProvisionedThroughputDescription)

-- | The current state of the table: * <tt>CREATING</tt> - The table is
--   being created. * <tt>UPDATING</tt> - The table is being updated. *
--   <tt>DELETING</tt> - The table is being deleted. * <tt>ACTIVE</tt> -
--   The table is ready for use.
tdTableStatus :: Lens' TableDescription (Maybe TableStatus)

-- | The Amazon Resource Name (ARN) that uniquely identifies the table.
tdTableARN :: Lens' TableDescription (Maybe Text)

-- | The primary key structure for the table. Each
--   <tt>KeySchemaElement</tt> consists of: * <tt>AttributeName</tt> - The
--   name of the attribute. * <tt>KeyType</tt> - The role of the attribute:
--   * <tt>HASH</tt> - partition key * <tt>RANGE</tt> - sort key For more
--   information about primary keys, see <a>Primary Key</a> in the
--   <i>Amazon DynamoDB Developer Guide</i> .
tdKeySchema :: Lens' TableDescription (Maybe (NonEmpty KeySchemaElement))

-- | The global secondary indexes, if any, on the table. Each index is
--   scoped to a given partition key value. Each element is composed of: *
--   <tt>Backfilling</tt> - If true, then the index is currently in the
--   backfilling phase. Backfilling occurs only when a new global secondary
--   index is added to the table; it is the process by which DynamoDB
--   populates the new index with data from the table. (This attribute does
--   not appear for indexes that were created during a <tt>CreateTable</tt>
--   operation.) * <tt>IndexName</tt> - The name of the global secondary
--   index. * <tt>IndexSizeBytes</tt> - The total size of the global
--   secondary index, in bytes. DynamoDB updates this value approximately
--   every six hours. Recent changes might not be reflected in this value.
--   * <tt>IndexStatus</tt> - The current status of the global secondary
--   index: * <tt>CREATING</tt> - The index is being created. *
--   <tt>UPDATING</tt> - The index is being updated. * <tt>DELETING</tt> -
--   The index is being deleted. * <tt>ACTIVE</tt> - The index is ready for
--   use. * <tt>ItemCount</tt> - The number of items in the global
--   secondary index. DynamoDB updates this value approximately every six
--   hours. Recent changes might not be reflected in this value. *
--   <tt>KeySchema</tt> - Specifies the complete index key schema. The
--   attribute names in the key schema must be between 1 and 255 characters
--   (inclusive). The key schema must begin with the same partition key as
--   the table. * <tt>Projection</tt> - Specifies attributes that are
--   copied (projected) from the table into the index. These are in
--   addition to the primary key attributes and index key attributes, which
--   are automatically projected. Each attribute specification is composed
--   of: * <tt>ProjectionType</tt> - One of the following: *
--   <tt>KEYS_ONLY</tt> - Only the index and primary keys are projected
--   into the index. * <tt>INCLUDE</tt> - Only the specified table
--   attributes are projected into the index. The list of projected
--   attributes are in <tt>NonKeyAttributes</tt> . * <tt>ALL</tt> - All of
--   the table attributes are projected into the index. *
--   <tt>NonKeyAttributes</tt> - A list of one or more non-key attribute
--   names that are projected into the secondary index. The total count of
--   attributes provided in <tt>NonKeyAttributes</tt> , summed across all
--   of the secondary indexes, must not exceed 20. If you project the same
--   attribute into two different indexes, this counts as two distinct
--   attributes when determining the total. *
--   <tt>ProvisionedThroughput</tt> - The provisioned throughput settings
--   for the global secondary index, consisting of read and write capacity
--   units, along with data about increases and decreases. If the table is
--   in the <tt>DELETING</tt> state, no information about indexes will be
--   returned.
tdGlobalSecondaryIndexes :: Lens' TableDescription [GlobalSecondaryIndexDescription]

-- | A timestamp, in ISO 8601 format, for this stream. Note that
--   <tt>LatestStreamLabel</tt> is not a unique identifier for the stream,
--   because it is possible that a stream from another table might have the
--   same timestamp. However, the combination of the following three
--   elements is guaranteed to be unique: * the AWS customer ID. * the
--   table name. * the <tt>StreamLabel</tt> .
tdLatestStreamLabel :: Lens' TableDescription (Maybe Text)

-- | Represents one or more local secondary indexes on the table. Each
--   index is scoped to a given partition key value. Tables with one or
--   more local secondary indexes are subject to an item collection size
--   limit, where the amount of data within a given item collection cannot
--   exceed 10 GB. Each element is composed of: * <tt>IndexName</tt> - The
--   name of the local secondary index. * <tt>KeySchema</tt> - Specifies
--   the complete index key schema. The attribute names in the key schema
--   must be between 1 and 255 characters (inclusive). The key schema must
--   begin with the same partition key as the table. * <tt>Projection</tt>
--   - Specifies attributes that are copied (projected) from the table into
--   the index. These are in addition to the primary key attributes and
--   index key attributes, which are automatically projected. Each
--   attribute specification is composed of: * <tt>ProjectionType</tt> -
--   One of the following: * <tt>KEYS_ONLY</tt> - Only the index and
--   primary keys are projected into the index. * <tt>INCLUDE</tt> - Only
--   the specified table attributes are projected into the index. The list
--   of projected attributes are in <tt>NonKeyAttributes</tt> . *
--   <tt>ALL</tt> - All of the table attributes are projected into the
--   index. * <tt>NonKeyAttributes</tt> - A list of one or more non-key
--   attribute names that are projected into the secondary index. The total
--   count of attributes provided in <tt>NonKeyAttributes</tt> , summed
--   across all of the secondary indexes, must not exceed 20. If you
--   project the same attribute into two different indexes, this counts as
--   two distinct attributes when determining the total. *
--   <tt>IndexSizeBytes</tt> - Represents the total size of the index, in
--   bytes. DynamoDB updates this value approximately every six hours.
--   Recent changes might not be reflected in this value. *
--   <tt>ItemCount</tt> - Represents the number of items in the index.
--   DynamoDB updates this value approximately every six hours. Recent
--   changes might not be reflected in this value. If the table is in the
--   <tt>DELETING</tt> state, no information about indexes will be
--   returned.
tdLocalSecondaryIndexes :: Lens' TableDescription [LocalSecondaryIndexDescription]

-- | The date and time when the table was created, in <a>UNIX epoch
--   time</a> format.
tdCreationDateTime :: Lens' TableDescription (Maybe UTCTime)

-- | The description of the server-side encryption status on the specified
--   table.
tdSSEDescription :: Lens' TableDescription (Maybe SSEDescription)

-- | Unique identifier for the table for which the backup was created.
tdTableId :: Lens' TableDescription (Maybe Text)

-- | The number of items in the specified table. DynamoDB updates this
--   value approximately every six hours. Recent changes might not be
--   reflected in this value.
tdItemCount :: Lens' TableDescription (Maybe Integer)

-- | The name of the table.
tdTableName :: Lens' TableDescription (Maybe Text)

-- | The current DynamoDB Streams configuration for the table.
tdStreamSpecification :: Lens' TableDescription (Maybe StreamSpecification)

-- | Describes a tag. A tag is a key-value pair. You can add up to 50 tags
--   to a single DynamoDB table.
--   
--   AWS-assigned tag names and values are automatically assigned the aws:
--   prefix, which the user cannot assign. AWS-assigned tag names do not
--   count towards the tag limit of 50. User-assigned tag names have the
--   prefix user: in the Cost Allocation Report. You cannot backdate the
--   application of a tag.
--   
--   For an overview on tagging DynamoDB resources, see <a>Tagging for
--   DynamoDB</a> in the <i>Amazon DynamoDB Developer Guide</i> .
--   
--   <i>See:</i> <a>tag</a> smart constructor.
data Tag

-- | Creates a value of <a>Tag</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>tagKey</a> - The key of the tag.Tag keys are case sensitive.
--   Each DynamoDB table can only have up to one tag with the same key. If
--   you try to add an existing tag (same key), the existing tag value will
--   be updated to the new value.</li>
--   <li><a>tagValue</a> - The value of the tag. Tag values are
--   case-sensitive and can be null.</li>
--   </ul>
tag :: Text -> Text -> Tag

-- | The key of the tag.Tag keys are case sensitive. Each DynamoDB table
--   can only have up to one tag with the same key. If you try to add an
--   existing tag (same key), the existing tag value will be updated to the
--   new value.
tagKey :: Lens' Tag Text

-- | The value of the tag. Tag values are case-sensitive and can be null.
tagValue :: Lens' Tag Text

-- | The description of the Time to Live (TTL) status on the specified
--   table.
--   
--   <i>See:</i> <a>timeToLiveDescription</a> smart constructor.
data TimeToLiveDescription

-- | Creates a value of <a>TimeToLiveDescription</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>ttldTimeToLiveStatus</a> - The Time to Live status for the
--   table.</li>
--   <li><a>ttldAttributeName</a> - The name of the Time to Live attribute
--   for items in the table.</li>
--   </ul>
timeToLiveDescription :: TimeToLiveDescription

-- | The Time to Live status for the table.
ttldTimeToLiveStatus :: Lens' TimeToLiveDescription (Maybe TimeToLiveStatus)

-- | The name of the Time to Live attribute for items in the table.
ttldAttributeName :: Lens' TimeToLiveDescription (Maybe Text)

-- | Represents the settings used to enable or disable Time to Live for the
--   specified table.
--   
--   <i>See:</i> <a>timeToLiveSpecification</a> smart constructor.
data TimeToLiveSpecification

-- | Creates a value of <a>TimeToLiveSpecification</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>ttlsEnabled</a> - Indicates whether Time To Live is to be
--   enabled (true) or disabled (false) on the table.</li>
--   <li><a>ttlsAttributeName</a> - The name of the Time to Live attribute
--   used to store the expiration time for items in the table.</li>
--   </ul>
timeToLiveSpecification :: Bool -> Text -> TimeToLiveSpecification

-- | Indicates whether Time To Live is to be enabled (true) or disabled
--   (false) on the table.
ttlsEnabled :: Lens' TimeToLiveSpecification Bool

-- | The name of the Time to Live attribute used to store the expiration
--   time for items in the table.
ttlsAttributeName :: Lens' TimeToLiveSpecification Text

-- | Represents the new provisioned throughput settings to be applied to a
--   global secondary index.
--   
--   <i>See:</i> <a>updateGlobalSecondaryIndexAction</a> smart constructor.
data UpdateGlobalSecondaryIndexAction

-- | Creates a value of <a>UpdateGlobalSecondaryIndexAction</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>ugsiaIndexName</a> - The name of the global secondary index to
--   be updated.</li>
--   <li><a>ugsiaProvisionedThroughput</a> - Represents the provisioned
--   throughput settings for the specified global secondary index. For
--   current minimum and maximum provisioned throughput values, see
--   <a>Limits</a> in the <i>Amazon DynamoDB Developer Guide</i> .</li>
--   </ul>
updateGlobalSecondaryIndexAction :: Text -> ProvisionedThroughput -> UpdateGlobalSecondaryIndexAction

-- | The name of the global secondary index to be updated.
ugsiaIndexName :: Lens' UpdateGlobalSecondaryIndexAction Text

-- | Represents the provisioned throughput settings for the specified
--   global secondary index. For current minimum and maximum provisioned
--   throughput values, see <a>Limits</a> in the <i>Amazon DynamoDB
--   Developer Guide</i> .
ugsiaProvisionedThroughput :: Lens' UpdateGlobalSecondaryIndexAction ProvisionedThroughput

-- | Represents an operation to perform - either <tt>DeleteItem</tt> or
--   <tt>PutItem</tt> . You can only request one of these operations, not
--   both, in a single <tt>WriteRequest</tt> . If you do need to perform
--   both of these operations, you will need to provide two separate
--   <tt>WriteRequest</tt> objects.
--   
--   <i>See:</i> <a>writeRequest</a> smart constructor.
data WriteRequest

-- | Creates a value of <a>WriteRequest</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>wrDeleteRequest</a> - A request to perform a
--   <tt>DeleteItem</tt> operation.</li>
--   <li><a>wrPutRequest</a> - A request to perform a <tt>PutItem</tt>
--   operation.</li>
--   </ul>
writeRequest :: WriteRequest

-- | A request to perform a <tt>DeleteItem</tt> operation.
wrDeleteRequest :: Lens' WriteRequest (Maybe DeleteRequest)

-- | A request to perform a <tt>PutItem</tt> operation.
wrPutRequest :: Lens' WriteRequest (Maybe PutRequest)
