Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-dynamodb

Package Overview
Dependencies
Maintainers
5
Versions
438
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-dynamodb - npm Package Compare versions

Comparing version 3.616.0 to 3.619.0

3

dist-types/commands/BatchExecuteStatementCommand.d.ts

@@ -33,3 +33,4 @@ import { Command as $Command } from "@smithy/smithy-client";

* an equality condition on all key attributes. This enforces that each <code>SELECT</code>
* statement in a batch returns at most a single item.</p>
* statement in a batch returns at most a single item. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ql-reference.multiplestatements.batching.html">Running batch operations with PartiQL for DynamoDB
* </a>.</p>
* <note>

@@ -36,0 +37,0 @@ * <p>The entire batch must consist of either read statements or write statements, you

@@ -34,6 +34,6 @@ import { Command as $Command } from "@smithy/smithy-client";

* items. <code>BatchGetItem</code> returns a partial result if the response size limit is
* exceeded, the table's provisioned throughput is exceeded, more than 1MB per partition is requested,
* or an internal processing failure occurs. If a partial result is returned, the operation returns a value for
* <code>UnprocessedKeys</code>. You can use this value to retry the operation starting
* with the next item to get.</p>
* exceeded, the table's provisioned throughput is exceeded, more than 1MB per partition is
* requested, or an internal processing failure occurs. If a partial result is returned,
* the operation returns a value for <code>UnprocessedKeys</code>. You can use this value
* to retry the operation starting with the next item to get.</p>
* <important>

@@ -40,0 +40,0 @@ * <p>If you request more than 100 items, <code>BatchGetItem</code> returns a

@@ -38,6 +38,6 @@ import { Command as $Command } from "@smithy/smithy-client";

* <p>
* <code>BatchWriteItem</code> cannot update items. If you perform a <code>BatchWriteItem</code>
* operation on an existing item, that item's values will be overwritten by the
* operation and it will appear like it was updated. To update items, we recommend you
* use the <code>UpdateItem</code> action.</p>
* <code>BatchWriteItem</code> cannot update items. If you perform a
* <code>BatchWriteItem</code> operation on an existing item, that item's values
* will be overwritten by the operation and it will appear like it was updated. To
* update items, we recommend you use the <code>UpdateItem</code> action.</p>
* </note>

@@ -53,6 +53,9 @@ * <p>The individual <code>PutItem</code> and <code>DeleteItem</code> operations specified

* until all items have been processed.</p>
* <p>If <i>none</i> of the items can be processed due to insufficient
* provisioned throughput on all of the tables in the request, then
* <code>BatchWriteItem</code> returns a
* <code>ProvisionedThroughputExceededException</code>.</p>
* <p>For tables and indexes with provisioned capacity, if none of the items can be
* processed due to insufficient provisioned throughput on all of the tables in the
* request, then <code>BatchWriteItem</code> returns a
* <code>ProvisionedThroughputExceededException</code>. For all tables and indexes, if
* none of the items can be processed due to other throttling scenarios (such as exceeding
* partition level limits), then <code>BatchWriteItem</code> returns a
* <code>ThrottlingException</code>.</p>
* <important>

@@ -59,0 +62,0 @@ * <p>If DynamoDB returns any unprocessed items, you should retry the batch operation on

@@ -30,12 +30,23 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Deletes the resource-based policy attached to the resource, which can be a table or stream.</p>
* <p>Deletes the resource-based policy attached to the resource, which can be a table or
* stream.</p>
* <p>
* <code>DeleteResourcePolicy</code> is an idempotent operation; running it multiple times on the same resource <i>doesn't</i> result in an error response, unless you specify an <code>ExpectedRevisionId</code>, which will then return a <code>PolicyNotFoundException</code>.</p>
* <code>DeleteResourcePolicy</code> is an idempotent operation; running it multiple
* times on the same resource <i>doesn't</i> result in an error response,
* unless you specify an <code>ExpectedRevisionId</code>, which will then return a
* <code>PolicyNotFoundException</code>.</p>
* <important>
* <p>To make sure that you don't inadvertently lock yourself out of your own resources, the root principal in your Amazon Web Services account can perform <code>DeleteResourcePolicy</code> requests, even if your resource-based policy explicitly denies the root principal's access.
* </p>
* <p>To make sure that you don't inadvertently lock yourself out of your own resources,
* the root principal in your Amazon Web Services account can perform
* <code>DeleteResourcePolicy</code> requests, even if your resource-based policy
* explicitly denies the root principal's access. </p>
* </important>
* <note>
* <p>
* <code>DeleteResourcePolicy</code> is an asynchronous operation. If you issue a <code>GetResourcePolicy</code> request immediately after running the <code>DeleteResourcePolicy</code> request, DynamoDB might still return the deleted policy. This is because the policy for your resource might not have been deleted yet. Wait for a few seconds, and then try the <code>GetResourcePolicy</code> request again.</p>
* <code>DeleteResourcePolicy</code> is an asynchronous operation. If you issue a
* <code>GetResourcePolicy</code> request immediately after running the
* <code>DeleteResourcePolicy</code> request, DynamoDB might still return
* the deleted policy. This is because the policy for your resource might not have been
* deleted yet. Wait for a few seconds, and then try the <code>GetResourcePolicy</code>
* request again.</p>
* </note>

@@ -42,0 +53,0 @@ * @example

@@ -39,4 +39,4 @@ import { Command as $Command } from "@smithy/smithy-client";

* <important>
* <p>For global tables, this operation only applies to global tables using Version 2019.11.21 (Current version).
* </p>
* <p>For global tables, this operation only applies to
* global tables using Version 2019.11.21 (Current version). </p>
* </important>

@@ -46,3 +46,4 @@ * <note>

* <code>GetItem</code> and <code>PutItem</code>, on a table in the
* <code>DELETING</code> state until the table deletion is complete.</p>
* <code>DELETING</code> state until the table deletion is complete. For the full
* list of table states, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TableDescription.html#DDB-Type-TableDescription-TableStatus">TableStatus</a>.</p>
* </note>

@@ -49,0 +50,0 @@ * <p>When you delete a table, any indexes on that table are also deleted.</p>

@@ -30,4 +30,4 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Returns the regional endpoint information. For more information
* on policy permissions, please see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/inter-network-traffic-privacy.html#inter-network-traffic-DescribeEndpoints">Internetwork traffic privacy</a>.</p>
* <p>Returns the regional endpoint information. For more information on policy permissions,
* please see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/inter-network-traffic-privacy.html#inter-network-traffic-DescribeEndpoints">Internetwork traffic privacy</a>.</p>
* @example

@@ -34,0 +34,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -33,4 +33,4 @@ import { Command as $Command } from "@smithy/smithy-client";

* <important>
* <p>For global tables, this operation only applies to global tables using Version 2019.11.21 (Current version).
* </p>
* <p>For global tables, this operation only applies to global tables using Version
* 2019.11.21 (Current version). </p>
* </important>

@@ -37,0 +37,0 @@ * <note>

@@ -32,3 +32,4 @@ import { Command as $Command } from "@smithy/smithy-client";

* <important>
* <p>For global tables, this operation only applies to global tables using Version 2019.11.21 (Current version).</p>
* <p>For global tables, this operation only applies to global tables using Version
* 2019.11.21 (Current version).</p>
* </important>

@@ -35,0 +36,0 @@ * @example

@@ -30,4 +30,4 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Stops replication from the DynamoDB table to the Kinesis data stream. This is done
* without deleting either of the resources.</p>
* <p>Stops replication from the DynamoDB table to the Kinesis data stream. This
* is done without deleting either of the resources.</p>
* @example

@@ -34,0 +34,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -41,4 +41,4 @@ import { Command as $Command } from "@smithy/smithy-client";

* <code>LastEvaluatedKey</code> is present in the response, you need to paginate the
* result set. If <code>NextToken</code> is present, you need to paginate the result set and include
* <code>NextToken</code>.</p>
* result set. If <code>NextToken</code> is present, you need to paginate the result set
* and include <code>NextToken</code>.</p>
* @example

@@ -45,0 +45,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -30,20 +30,38 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Returns the resource-based policy document attached to the resource, which can be a table or stream, in JSON format.</p>
* <p>Returns the resource-based policy document attached to the resource, which can be a
* table or stream, in JSON format.</p>
* <p>
* <code>GetResourcePolicy</code> follows an <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadConsistency.html">
* <i>eventually consistent</i>
* </a> model. The following list describes the outcomes when you issue the <code>GetResourcePolicy</code> request immediately after issuing another request:</p>
* </a> model. The following list
* describes the outcomes when you issue the <code>GetResourcePolicy</code> request
* immediately after issuing another request:</p>
* <ul>
* <li>
* <p>If you issue a <code>GetResourcePolicy</code> request immediately after a <code>PutResourcePolicy</code> request, DynamoDB might return a <code>PolicyNotFoundException</code>.</p>
* <p>If you issue a <code>GetResourcePolicy</code> request immediately after a
* <code>PutResourcePolicy</code> request, DynamoDB might return a
* <code>PolicyNotFoundException</code>.</p>
* </li>
* <li>
* <p>If you issue a <code>GetResourcePolicy</code>request immediately after a <code>DeleteResourcePolicy</code> request, DynamoDB might return the policy that was present before the deletion request.</p>
* <p>If you issue a <code>GetResourcePolicy</code>request immediately after a
* <code>DeleteResourcePolicy</code> request, DynamoDB might return
* the policy that was present before the deletion request.</p>
* </li>
* <li>
* <p>If you issue a <code>GetResourcePolicy</code> request immediately after a <code>CreateTable</code> request, which includes a resource-based policy, DynamoDB might return a <code>ResourceNotFoundException</code> or a <code>PolicyNotFoundException</code>.</p>
* <p>If you issue a <code>GetResourcePolicy</code> request immediately after a
* <code>CreateTable</code> request, which includes a resource-based policy,
* DynamoDB might return a <code>ResourceNotFoundException</code> or
* a <code>PolicyNotFoundException</code>.</p>
* </li>
* </ul>
* <p>Because <code>GetResourcePolicy</code> uses an <i>eventually consistent</i> query, the metadata for your policy or table might not be available at that moment. Wait for a few seconds, and then retry the <code>GetResourcePolicy</code> request.</p>
* <p>After a <code>GetResourcePolicy</code> request returns a policy created using the <code>PutResourcePolicy</code> request, the policy will be applied in the authorization of requests to the resource. Because this process is eventually consistent, it will take some time to apply the policy to all requests to a resource. Policies that you attach while creating a table using the <code>CreateTable</code> request will always be applied to all requests for that table.</p>
* <p>Because <code>GetResourcePolicy</code> uses an <i>eventually
* consistent</i> query, the metadata for your policy or table might not be
* available at that moment. Wait for a few seconds, and then retry the
* <code>GetResourcePolicy</code> request.</p>
* <p>After a <code>GetResourcePolicy</code> request returns a policy created using the
* <code>PutResourcePolicy</code> request, the policy will be applied in the
* authorization of requests to the resource. Because this process is eventually
* consistent, it will take some time to apply the policy to all requests to a resource.
* Policies that you attach while creating a table using the <code>CreateTable</code>
* request will always be applied to all requests for that table.</p>
* @example

@@ -50,0 +68,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -30,11 +30,13 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>List DynamoDB backups that are associated with an Amazon Web Services account and weren't made with Amazon Web Services Backup.
* To list these backups for a given table, specify <code>TableName</code>. <code>ListBackups</code> returns a
* paginated list of results with at most 1 MB worth of items in a page. You can also
* specify a maximum number of entries to be returned in a page.</p>
* <p>List DynamoDB backups that are associated with an Amazon Web Services account and
* weren't made with Amazon Web Services Backup. To list these backups for a given table,
* specify <code>TableName</code>. <code>ListBackups</code> returns a paginated list of
* results with at most 1 MB worth of items in a page. You can also specify a maximum
* number of entries to be returned in a page.</p>
* <p>In the request, start time is inclusive, but end time is exclusive. Note that these
* boundaries are for the time at which the original backup was requested.</p>
* <p>You can call <code>ListBackups</code> a maximum of five times per second.</p>
* <p>If you want to retrieve the complete list of backups made with Amazon Web Services Backup, use the
* <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListBackupJobs.html">Amazon Web Services Backup list API.</a>
* <p>If you want to retrieve the complete list of backups made with Amazon Web Services
* Backup, use the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListBackupJobs.html">Amazon Web Services Backup
* list API.</a>
* </p>

@@ -41,0 +43,0 @@ * @example

@@ -36,4 +36,3 @@ import { Command as $Command } from "@smithy/smithy-client";

* the same operation, using the <code>ReturnValues</code> parameter.</p>
* <p>When you add an item, the primary key attributes are the only required attributes.
* </p>
* <p>When you add an item, the primary key attributes are the only required attributes. </p>
* <p>Empty String and Binary attribute values are allowed. Attribute values of type String

@@ -40,0 +39,0 @@ * and Binary must have a length greater than zero if the attribute is used as a key

@@ -30,10 +30,23 @@ import { Command as $Command } from "@smithy/smithy-client";

/**
* <p>Attaches a resource-based policy document to the resource, which can be a table or stream. When you attach a resource-based policy using this API, the policy application is <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadConsistency.html">
* <p>Attaches a resource-based policy document to the resource, which can be a table or
* stream. When you attach a resource-based policy using this API, the policy application
* is <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadConsistency.html">
* <i>eventually consistent</i>
* </a>.</p>
* <p>
* <code>PutResourcePolicy</code> is an idempotent operation; running it multiple times on the same resource using the same policy document will return the same revision ID. If you specify an <code>ExpectedRevisionId</code> that doesn't match the current policy's <code>RevisionId</code>, the <code>PolicyNotFoundException</code> will be returned.</p>
* <code>PutResourcePolicy</code> is an idempotent operation; running it multiple times
* on the same resource using the same policy document will return the same revision ID. If
* you specify an <code>ExpectedRevisionId</code> that doesn't match the current policy's
* <code>RevisionId</code>, the <code>PolicyNotFoundException</code> will be
* returned.</p>
* <note>
* <p>
* <code>PutResourcePolicy</code> is an asynchronous operation. If you issue a <code>GetResourcePolicy</code> request immediately after a <code>PutResourcePolicy</code> request, DynamoDB might return your previous policy, if there was one, or return the <code>PolicyNotFoundException</code>. This is because <code>GetResourcePolicy</code> uses an eventually consistent query, and the metadata for your policy or table might not be available at that moment. Wait for a few seconds, and then try the <code>GetResourcePolicy</code> request again.</p>
* <code>PutResourcePolicy</code> is an asynchronous operation. If you issue a
* <code>GetResourcePolicy</code> request immediately after a
* <code>PutResourcePolicy</code> request, DynamoDB might return your
* previous policy, if there was one, or return the
* <code>PolicyNotFoundException</code>. This is because
* <code>GetResourcePolicy</code> uses an eventually consistent query, and the
* metadata for your policy or table might not be available at that moment. Wait for a
* few seconds, and then try the <code>GetResourcePolicy</code> request again.</p>
* </note>

@@ -40,0 +53,0 @@ * @example

@@ -36,4 +36,4 @@ import { Command as $Command } from "@smithy/smithy-client";

* the state based on the selected date and time (day:hour:minute:second) to a new table. </p>
* <p>Along with data, the following are also included on the new restored table using
* point in time recovery: </p>
* <p>Along with data, the following are also included on the new restored table using point
* in time recovery: </p>
* <ul>

@@ -40,0 +40,0 @@ * <li>

@@ -33,22 +33,22 @@ import { Command as $Command } from "@smithy/smithy-client";

* items, you can provide a <code>FilterExpression</code> operation.</p>
* <p>If the total size of scanned items exceeds the maximum dataset size limit of 1 MB,
* the scan completes and results are returned to the user. The <code>LastEvaluatedKey</code>
* value is also returned and the requestor can use the <code>LastEvaluatedKey</code> to continue
* the scan in a subsequent operation. Each scan response also includes number of items that were
* scanned (ScannedCount) as part of the request. If using a <code>FilterExpression</code>, a scan result
* can result in no items meeting the criteria and the <code>Count</code> will result in zero. If
* you did not use a <code>FilterExpression</code> in the scan request, then <code>Count</code> is
* the same as <code>ScannedCount</code>.</p>
* <p>If the total size of scanned items exceeds the maximum dataset size limit of 1 MB, the
* scan completes and results are returned to the user. The <code>LastEvaluatedKey</code>
* value is also returned and the requestor can use the <code>LastEvaluatedKey</code> to
* continue the scan in a subsequent operation. Each scan response also includes number of
* items that were scanned (ScannedCount) as part of the request. If using a
* <code>FilterExpression</code>, a scan result can result in no items meeting the
* criteria and the <code>Count</code> will result in zero. If you did not use a
* <code>FilterExpression</code> in the scan request, then <code>Count</code> is the
* same as <code>ScannedCount</code>.</p>
* <note>
* <p>
* <code>Count</code> and <code>ScannedCount</code> only return the count of items specific to a
* single scan request and, unless the table is less than 1MB, do not represent the total number
* of items in the table.
* </p>
* <code>Count</code> and <code>ScannedCount</code> only return the count of items
* specific to a single scan request and, unless the table is less than 1MB, do not
* represent the total number of items in the table. </p>
* </note>
* <p>A single <code>Scan</code> operation first reads up to the maximum number of items set (if
* using the <code>Limit</code> parameter) or a maximum of 1 MB of data and then applies any
* filtering to the results if a <code>FilterExpression</code> is provided. If
* <code>LastEvaluatedKey</code> is present in the response, pagination is required to complete the
* full table scan. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.Pagination">Paginating the
* <p>A single <code>Scan</code> operation first reads up to the maximum number of items set
* (if using the <code>Limit</code> parameter) or a maximum of 1 MB of data and then
* applies any filtering to the results if a <code>FilterExpression</code> is provided. If
* <code>LastEvaluatedKey</code> is present in the response, pagination is required to
* complete the full table scan. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.Pagination">Paginating the
* Results</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>

@@ -61,13 +61,14 @@ * <p>

* Scan</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
* <p>By default, a <code>Scan</code> uses eventually consistent reads when accessing the items in a table.
* Therefore, the results from an eventually consistent <code>Scan</code> may not include the latest item
* changes at the time the scan iterates through each item in the table. If you require a strongly consistent
* read of each item as the scan iterates through the items in the table, you can set the <code>ConsistentRead</code>
* parameter to true. Strong consistency only relates to the consistency of the read at the item level.</p>
* <p>By default, a <code>Scan</code> uses eventually consistent reads when accessing the
* items in a table. Therefore, the results from an eventually consistent <code>Scan</code>
* may not include the latest item changes at the time the scan iterates through each item
* in the table. If you require a strongly consistent read of each item as the scan
* iterates through the items in the table, you can set the <code>ConsistentRead</code>
* parameter to true. Strong consistency only relates to the consistency of the read at the
* item level.</p>
* <note>
* <p>
* DynamoDB does not provide snapshot isolation for a scan operation when the <code>ConsistentRead</code>
* parameter is set to true. Thus, a DynamoDB scan operation does not guarantee that all reads in a scan
* see a consistent snapshot of the table when the scan operation was requested.
* </p>
* <p> DynamoDB does not provide snapshot isolation for a scan operation when the
* <code>ConsistentRead</code> parameter is set to true. Thus, a DynamoDB scan
* operation does not guarantee that all reads in a scan see a consistent snapshot of
* the table when the scan operation was requested. </p>
* </note>

@@ -74,0 +75,0 @@ * @example

@@ -39,11 +39,8 @@ import { Command as $Command } from "@smithy/smithy-client";

* <note>
* <p>
* For global tables, this operation only applies to global tables using Version 2019.11.21 (Current version). If you are using global tables <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html">Version
* 2019.11.21</a> you can use <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html">UpdateTable</a> instead.
* </p>
* <p>
* Although you can use <code>UpdateGlobalTable</code> to add replicas and remove
* <p> For global tables, this operation only applies to global tables using Version
* 2019.11.21 (Current version). If you are using global tables <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html">Version
* 2019.11.21</a> you can use <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html">UpdateTable</a> instead. </p>
* <p> Although you can use <code>UpdateGlobalTable</code> to add replicas and remove
* replicas in a single request, for simplicity we recommend that you issue separate
* requests for adding or removing replicas.
* </p>
* requests for adding or removing replicas. </p>
* </note>

@@ -50,0 +47,0 @@ * <p> If global secondary indexes are specified, then the following conditions must also be

@@ -33,4 +33,4 @@ import { Command as $Command } from "@smithy/smithy-client";

* <important>
* <p>For global tables, this operation only applies to global tables using Version 2019.11.21 (Current version).
* </p>
* <p>For global tables, this operation only applies to global tables using Version
* 2019.11.21 (Current version). </p>
* </important>

@@ -37,0 +37,0 @@ * <p>You can only perform one of the following operations at once:</p>

@@ -32,4 +32,4 @@ import { Command as $Command } from "@smithy/smithy-client";

* <important>
* <p>For global tables, this operation only applies to global tables using Version 2019.11.21 (Current version).
* </p>
* <p>For global tables, this operation only applies to global tables using Version
* 2019.11.21 (Current version). </p>
* </important>

@@ -36,0 +36,0 @@ * @example

{
"name": "@aws-sdk/client-dynamodb",
"description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
"version": "3.616.0",
"version": "3.619.0",
"scripts": {

@@ -6,0 +6,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc