@aws-sdk/client-dynamodb 3.535.0 → 3.538.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ import { CreateGlobalTableCommandInput, CreateGlobalTableCommandOutput } from ".
7
7
  import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
8
8
  import { DeleteBackupCommandInput, DeleteBackupCommandOutput } from "./commands/DeleteBackupCommand";
9
9
  import { DeleteItemCommandInput, DeleteItemCommandOutput } from "./commands/DeleteItemCommand";
10
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
10
11
  import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
11
12
  import { DescribeBackupCommandInput, DescribeBackupCommandOutput } from "./commands/DescribeBackupCommand";
12
13
  import { DescribeContinuousBackupsCommandInput, DescribeContinuousBackupsCommandOutput } from "./commands/DescribeContinuousBackupsCommand";
@@ -27,6 +28,7 @@ import { ExecuteStatementCommandInput, ExecuteStatementCommandOutput } from "./c
27
28
  import { ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput } from "./commands/ExecuteTransactionCommand";
28
29
  import { ExportTableToPointInTimeCommandInput, ExportTableToPointInTimeCommandOutput } from "./commands/ExportTableToPointInTimeCommand";
29
30
  import { GetItemCommandInput, GetItemCommandOutput } from "./commands/GetItemCommand";
31
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
30
32
  import { ImportTableCommandInput, ImportTableCommandOutput } from "./commands/ImportTableCommand";
31
33
  import { ListBackupsCommandInput, ListBackupsCommandOutput } from "./commands/ListBackupsCommand";
32
34
  import { ListContributorInsightsCommandInput, ListContributorInsightsCommandOutput } from "./commands/ListContributorInsightsCommand";
@@ -36,6 +38,7 @@ import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/Li
36
38
  import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
37
39
  import { ListTagsOfResourceCommandInput, ListTagsOfResourceCommandOutput } from "./commands/ListTagsOfResourceCommand";
38
40
  import { PutItemCommandInput, PutItemCommandOutput } from "./commands/PutItemCommand";
41
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
39
42
  import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
40
43
  import { RestoreTableFromBackupCommandInput, RestoreTableFromBackupCommandOutput } from "./commands/RestoreTableFromBackupCommand";
41
44
  import { RestoreTableToPointInTimeCommandInput, RestoreTableToPointInTimeCommandOutput } from "./commands/RestoreTableToPointInTimeCommand";
@@ -103,6 +106,12 @@ export interface DynamoDB {
103
106
  deleteItem(args: DeleteItemCommandInput, options?: __HttpHandlerOptions): Promise<DeleteItemCommandOutput>;
104
107
  deleteItem(args: DeleteItemCommandInput, cb: (err: any, data?: DeleteItemCommandOutput) => void): void;
105
108
  deleteItem(args: DeleteItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteItemCommandOutput) => void): void;
109
+ /**
110
+ * @see {@link DeleteResourcePolicyCommand}
111
+ */
112
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
113
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
114
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
106
115
  /**
107
116
  * @see {@link DeleteTableCommand}
108
117
  */
@@ -225,6 +234,12 @@ export interface DynamoDB {
225
234
  getItem(args: GetItemCommandInput, options?: __HttpHandlerOptions): Promise<GetItemCommandOutput>;
226
235
  getItem(args: GetItemCommandInput, cb: (err: any, data?: GetItemCommandOutput) => void): void;
227
236
  getItem(args: GetItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetItemCommandOutput) => void): void;
237
+ /**
238
+ * @see {@link GetResourcePolicyCommand}
239
+ */
240
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
241
+ getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
242
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
228
243
  /**
229
244
  * @see {@link ImportTableCommand}
230
245
  */
@@ -285,6 +300,12 @@ export interface DynamoDB {
285
300
  putItem(args: PutItemCommandInput, options?: __HttpHandlerOptions): Promise<PutItemCommandOutput>;
286
301
  putItem(args: PutItemCommandInput, cb: (err: any, data?: PutItemCommandOutput) => void): void;
287
302
  putItem(args: PutItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutItemCommandOutput) => void): void;
303
+ /**
304
+ * @see {@link PutResourcePolicyCommand}
305
+ */
306
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
307
+ putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
308
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
288
309
  /**
289
310
  * @see {@link QueryCommand}
290
311
  */
@@ -16,6 +16,7 @@ import { CreateGlobalTableCommandInput, CreateGlobalTableCommandOutput } from ".
16
16
  import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
17
17
  import { DeleteBackupCommandInput, DeleteBackupCommandOutput } from "./commands/DeleteBackupCommand";
18
18
  import { DeleteItemCommandInput, DeleteItemCommandOutput } from "./commands/DeleteItemCommand";
19
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
19
20
  import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
20
21
  import { DescribeBackupCommandInput, DescribeBackupCommandOutput } from "./commands/DescribeBackupCommand";
21
22
  import { DescribeContinuousBackupsCommandInput, DescribeContinuousBackupsCommandOutput } from "./commands/DescribeContinuousBackupsCommand";
@@ -36,6 +37,7 @@ import { ExecuteStatementCommandInput, ExecuteStatementCommandOutput } from "./c
36
37
  import { ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput } from "./commands/ExecuteTransactionCommand";
37
38
  import { ExportTableToPointInTimeCommandInput, ExportTableToPointInTimeCommandOutput } from "./commands/ExportTableToPointInTimeCommand";
38
39
  import { GetItemCommandInput, GetItemCommandOutput } from "./commands/GetItemCommand";
40
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
39
41
  import { ImportTableCommandInput, ImportTableCommandOutput } from "./commands/ImportTableCommand";
40
42
  import { ListBackupsCommandInput, ListBackupsCommandOutput } from "./commands/ListBackupsCommand";
41
43
  import { ListContributorInsightsCommandInput, ListContributorInsightsCommandOutput } from "./commands/ListContributorInsightsCommand";
@@ -45,6 +47,7 @@ import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/Li
45
47
  import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
46
48
  import { ListTagsOfResourceCommandInput, ListTagsOfResourceCommandOutput } from "./commands/ListTagsOfResourceCommand";
47
49
  import { PutItemCommandInput, PutItemCommandOutput } from "./commands/PutItemCommand";
50
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
48
51
  import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
49
52
  import { RestoreTableFromBackupCommandInput, RestoreTableFromBackupCommandOutput } from "./commands/RestoreTableFromBackupCommand";
50
53
  import { RestoreTableToPointInTimeCommandInput, RestoreTableToPointInTimeCommandOutput } from "./commands/RestoreTableToPointInTimeCommand";
@@ -68,11 +71,11 @@ export { __Client };
68
71
  /**
69
72
  * @public
70
73
  */
71
- export type ServiceInputTypes = BatchExecuteStatementCommandInput | BatchGetItemCommandInput | BatchWriteItemCommandInput | CreateBackupCommandInput | CreateGlobalTableCommandInput | CreateTableCommandInput | DeleteBackupCommandInput | DeleteItemCommandInput | DeleteTableCommandInput | DescribeBackupCommandInput | DescribeContinuousBackupsCommandInput | DescribeContributorInsightsCommandInput | DescribeEndpointsCommandInput | DescribeExportCommandInput | DescribeGlobalTableCommandInput | DescribeGlobalTableSettingsCommandInput | DescribeImportCommandInput | DescribeKinesisStreamingDestinationCommandInput | DescribeLimitsCommandInput | DescribeTableCommandInput | DescribeTableReplicaAutoScalingCommandInput | DescribeTimeToLiveCommandInput | DisableKinesisStreamingDestinationCommandInput | EnableKinesisStreamingDestinationCommandInput | ExecuteStatementCommandInput | ExecuteTransactionCommandInput | ExportTableToPointInTimeCommandInput | GetItemCommandInput | ImportTableCommandInput | ListBackupsCommandInput | ListContributorInsightsCommandInput | ListExportsCommandInput | ListGlobalTablesCommandInput | ListImportsCommandInput | ListTablesCommandInput | ListTagsOfResourceCommandInput | PutItemCommandInput | QueryCommandInput | RestoreTableFromBackupCommandInput | RestoreTableToPointInTimeCommandInput | ScanCommandInput | TagResourceCommandInput | TransactGetItemsCommandInput | TransactWriteItemsCommandInput | UntagResourceCommandInput | UpdateContinuousBackupsCommandInput | UpdateContributorInsightsCommandInput | UpdateGlobalTableCommandInput | UpdateGlobalTableSettingsCommandInput | UpdateItemCommandInput | UpdateKinesisStreamingDestinationCommandInput | UpdateTableCommandInput | UpdateTableReplicaAutoScalingCommandInput | UpdateTimeToLiveCommandInput;
74
+ export type ServiceInputTypes = BatchExecuteStatementCommandInput | BatchGetItemCommandInput | BatchWriteItemCommandInput | CreateBackupCommandInput | CreateGlobalTableCommandInput | CreateTableCommandInput | DeleteBackupCommandInput | DeleteItemCommandInput | DeleteResourcePolicyCommandInput | DeleteTableCommandInput | DescribeBackupCommandInput | DescribeContinuousBackupsCommandInput | DescribeContributorInsightsCommandInput | DescribeEndpointsCommandInput | DescribeExportCommandInput | DescribeGlobalTableCommandInput | DescribeGlobalTableSettingsCommandInput | DescribeImportCommandInput | DescribeKinesisStreamingDestinationCommandInput | DescribeLimitsCommandInput | DescribeTableCommandInput | DescribeTableReplicaAutoScalingCommandInput | DescribeTimeToLiveCommandInput | DisableKinesisStreamingDestinationCommandInput | EnableKinesisStreamingDestinationCommandInput | ExecuteStatementCommandInput | ExecuteTransactionCommandInput | ExportTableToPointInTimeCommandInput | GetItemCommandInput | GetResourcePolicyCommandInput | ImportTableCommandInput | ListBackupsCommandInput | ListContributorInsightsCommandInput | ListExportsCommandInput | ListGlobalTablesCommandInput | ListImportsCommandInput | ListTablesCommandInput | ListTagsOfResourceCommandInput | PutItemCommandInput | PutResourcePolicyCommandInput | QueryCommandInput | RestoreTableFromBackupCommandInput | RestoreTableToPointInTimeCommandInput | ScanCommandInput | TagResourceCommandInput | TransactGetItemsCommandInput | TransactWriteItemsCommandInput | UntagResourceCommandInput | UpdateContinuousBackupsCommandInput | UpdateContributorInsightsCommandInput | UpdateGlobalTableCommandInput | UpdateGlobalTableSettingsCommandInput | UpdateItemCommandInput | UpdateKinesisStreamingDestinationCommandInput | UpdateTableCommandInput | UpdateTableReplicaAutoScalingCommandInput | UpdateTimeToLiveCommandInput;
72
75
  /**
73
76
  * @public
74
77
  */
75
- export type ServiceOutputTypes = BatchExecuteStatementCommandOutput | BatchGetItemCommandOutput | BatchWriteItemCommandOutput | CreateBackupCommandOutput | CreateGlobalTableCommandOutput | CreateTableCommandOutput | DeleteBackupCommandOutput | DeleteItemCommandOutput | DeleteTableCommandOutput | DescribeBackupCommandOutput | DescribeContinuousBackupsCommandOutput | DescribeContributorInsightsCommandOutput | DescribeEndpointsCommandOutput | DescribeExportCommandOutput | DescribeGlobalTableCommandOutput | DescribeGlobalTableSettingsCommandOutput | DescribeImportCommandOutput | DescribeKinesisStreamingDestinationCommandOutput | DescribeLimitsCommandOutput | DescribeTableCommandOutput | DescribeTableReplicaAutoScalingCommandOutput | DescribeTimeToLiveCommandOutput | DisableKinesisStreamingDestinationCommandOutput | EnableKinesisStreamingDestinationCommandOutput | ExecuteStatementCommandOutput | ExecuteTransactionCommandOutput | ExportTableToPointInTimeCommandOutput | GetItemCommandOutput | ImportTableCommandOutput | ListBackupsCommandOutput | ListContributorInsightsCommandOutput | ListExportsCommandOutput | ListGlobalTablesCommandOutput | ListImportsCommandOutput | ListTablesCommandOutput | ListTagsOfResourceCommandOutput | PutItemCommandOutput | QueryCommandOutput | RestoreTableFromBackupCommandOutput | RestoreTableToPointInTimeCommandOutput | ScanCommandOutput | TagResourceCommandOutput | TransactGetItemsCommandOutput | TransactWriteItemsCommandOutput | UntagResourceCommandOutput | UpdateContinuousBackupsCommandOutput | UpdateContributorInsightsCommandOutput | UpdateGlobalTableCommandOutput | UpdateGlobalTableSettingsCommandOutput | UpdateItemCommandOutput | UpdateKinesisStreamingDestinationCommandOutput | UpdateTableCommandOutput | UpdateTableReplicaAutoScalingCommandOutput | UpdateTimeToLiveCommandOutput;
78
+ export type ServiceOutputTypes = BatchExecuteStatementCommandOutput | BatchGetItemCommandOutput | BatchWriteItemCommandOutput | CreateBackupCommandOutput | CreateGlobalTableCommandOutput | CreateTableCommandOutput | DeleteBackupCommandOutput | DeleteItemCommandOutput | DeleteResourcePolicyCommandOutput | DeleteTableCommandOutput | DescribeBackupCommandOutput | DescribeContinuousBackupsCommandOutput | DescribeContributorInsightsCommandOutput | DescribeEndpointsCommandOutput | DescribeExportCommandOutput | DescribeGlobalTableCommandOutput | DescribeGlobalTableSettingsCommandOutput | DescribeImportCommandOutput | DescribeKinesisStreamingDestinationCommandOutput | DescribeLimitsCommandOutput | DescribeTableCommandOutput | DescribeTableReplicaAutoScalingCommandOutput | DescribeTimeToLiveCommandOutput | DisableKinesisStreamingDestinationCommandOutput | EnableKinesisStreamingDestinationCommandOutput | ExecuteStatementCommandOutput | ExecuteTransactionCommandOutput | ExportTableToPointInTimeCommandOutput | GetItemCommandOutput | GetResourcePolicyCommandOutput | ImportTableCommandOutput | ListBackupsCommandOutput | ListContributorInsightsCommandOutput | ListExportsCommandOutput | ListGlobalTablesCommandOutput | ListImportsCommandOutput | ListTablesCommandOutput | ListTagsOfResourceCommandOutput | PutItemCommandOutput | PutResourcePolicyCommandOutput | QueryCommandOutput | RestoreTableFromBackupCommandOutput | RestoreTableToPointInTimeCommandOutput | ScanCommandOutput | TagResourceCommandOutput | TransactGetItemsCommandOutput | TransactWriteItemsCommandOutput | UntagResourceCommandOutput | UpdateContinuousBackupsCommandOutput | UpdateContributorInsightsCommandOutput | UpdateGlobalTableCommandOutput | UpdateGlobalTableSettingsCommandOutput | UpdateItemCommandOutput | UpdateKinesisStreamingDestinationCommandOutput | UpdateTableCommandOutput | UpdateTableReplicaAutoScalingCommandOutput | UpdateTimeToLiveCommandOutput;
76
79
  /**
77
80
  * @public
78
81
  */
@@ -119,6 +119,7 @@ declare const CreateTableCommand_base: {
119
119
  * ],
120
120
  * TableClass: "STANDARD" || "STANDARD_INFREQUENT_ACCESS",
121
121
  * DeletionProtectionEnabled: true || false,
122
+ * ResourcePolicy: "STRING_VALUE",
122
123
  * };
123
124
  * const command = new CreateTableCommand(input);
124
125
  * const response = await client.send(command);
@@ -0,0 +1,104 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
4
+ import { DeleteResourcePolicyInput, DeleteResourcePolicyOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DeleteResourcePolicyCommand}.
13
+ */
14
+ export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DeleteResourcePolicyCommand}.
20
+ */
21
+ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyOutput, __MetadataBearer {
22
+ }
23
+ declare const DeleteResourcePolicyCommand_base: {
24
+ new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Deletes the resource-based policy attached to the resource, which can be a table or stream.</p>
30
+ * <p>
31
+ * <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>
32
+ * <important>
33
+ * <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.
34
+ * </p>
35
+ * </important>
36
+ * <note>
37
+ * <p>
38
+ * <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>
39
+ * </note>
40
+ * @example
41
+ * Use a bare-bones client and the command you need to make an API call.
42
+ * ```javascript
43
+ * import { DynamoDBClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
44
+ * // const { DynamoDBClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
45
+ * const client = new DynamoDBClient(config);
46
+ * const input = { // DeleteResourcePolicyInput
47
+ * ResourceArn: "STRING_VALUE", // required
48
+ * ExpectedRevisionId: "STRING_VALUE",
49
+ * };
50
+ * const command = new DeleteResourcePolicyCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // DeleteResourcePolicyOutput
53
+ * // RevisionId: "STRING_VALUE",
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
59
+ * @returns {@link DeleteResourcePolicyCommandOutput}
60
+ * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
61
+ * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
62
+ * @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape.
63
+ *
64
+ * @throws {@link InternalServerError} (server fault)
65
+ * <p>An error occurred on the server side.</p>
66
+ *
67
+ * @throws {@link InvalidEndpointException} (client fault)
68
+ *
69
+ * @throws {@link LimitExceededException} (client fault)
70
+ * <p>There is no limit to the number of daily on-demand backups that can be taken. </p>
71
+ * <p>For most purposes, up to 500 simultaneous table operations are allowed per account. These operations
72
+ * include <code>CreateTable</code>, <code>UpdateTable</code>,
73
+ * <code>DeleteTable</code>,<code>UpdateTimeToLive</code>,
74
+ * <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>. </p>
75
+ * <p>When you are creating a table with one or more secondary
76
+ * indexes, you can have up to 250 such requests running at a time. However, if the table or
77
+ * index specifications are complex, then DynamoDB might temporarily reduce the number
78
+ * of concurrent operations.</p>
79
+ * <p>When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.</p>
80
+ * <p>There is a soft account quota of 2,500 tables.</p>
81
+ * <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p>
82
+ * <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding
83
+ * this limit may result in request throttling.</p>
84
+ *
85
+ * @throws {@link PolicyNotFoundException} (client fault)
86
+ * <p>The operation tried to access a nonexistent resource-based policy.</p>
87
+ * <p>If you specified an <code>ExpectedRevisionId</code>, it's possible that a policy is present for the resource but its revision ID didn't match the expected value.</p>
88
+ *
89
+ * @throws {@link ResourceInUseException} (client fault)
90
+ * <p>The operation conflicts with the resource's availability. For example, you
91
+ * attempted to recreate an existing table, or tried to delete a table currently in the
92
+ * <code>CREATING</code> state.</p>
93
+ *
94
+ * @throws {@link ResourceNotFoundException} (client fault)
95
+ * <p>The operation tried to access a nonexistent table or index. The resource might not
96
+ * be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
97
+ *
98
+ * @throws {@link DynamoDBServiceException}
99
+ * <p>Base exception class for all service exceptions from DynamoDB service.</p>
100
+ *
101
+ * @public
102
+ */
103
+ export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
104
+ }
@@ -0,0 +1,90 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
4
+ import { GetResourcePolicyInput, GetResourcePolicyOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetResourcePolicyCommand}.
13
+ */
14
+ export interface GetResourcePolicyCommandInput extends GetResourcePolicyInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetResourcePolicyCommand}.
20
+ */
21
+ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyOutput, __MetadataBearer {
22
+ }
23
+ declare const GetResourcePolicyCommand_base: {
24
+ new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns the resource-based policy document attached to the resource, which can be a table or stream, in JSON format.</p>
30
+ * <p>
31
+ * <code>GetResourcePolicy</code> follows an <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadConsistency.html">
32
+ * <i>eventually consistent</i>
33
+ * </a> model. The following list describes the outcomes when you issue the <code>GetResourcePolicy</code> request immediately after issuing another request:</p>
34
+ * <ul>
35
+ * <li>
36
+ * <p>If you issue a <code>GetResourcePolicy</code> request immediately after a <code>PutResourcePolicy</code> request, DynamoDB might return a <code>PolicyNotFoundException</code>.</p>
37
+ * </li>
38
+ * <li>
39
+ * <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>
40
+ * </li>
41
+ * <li>
42
+ * <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>
43
+ * </li>
44
+ * </ul>
45
+ * <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>
46
+ * <p>After a <code>GetResourcePolicy</code> request returns a policy created using the <code>PutResourcePolicy</code> request, you can assume the policy will start getting 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>
47
+ * @example
48
+ * Use a bare-bones client and the command you need to make an API call.
49
+ * ```javascript
50
+ * import { DynamoDBClient, GetResourcePolicyCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
51
+ * // const { DynamoDBClient, GetResourcePolicyCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
52
+ * const client = new DynamoDBClient(config);
53
+ * const input = { // GetResourcePolicyInput
54
+ * ResourceArn: "STRING_VALUE", // required
55
+ * };
56
+ * const command = new GetResourcePolicyCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // GetResourcePolicyOutput
59
+ * // Policy: "STRING_VALUE",
60
+ * // RevisionId: "STRING_VALUE",
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
66
+ * @returns {@link GetResourcePolicyCommandOutput}
67
+ * @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
68
+ * @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
69
+ * @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape.
70
+ *
71
+ * @throws {@link InternalServerError} (server fault)
72
+ * <p>An error occurred on the server side.</p>
73
+ *
74
+ * @throws {@link InvalidEndpointException} (client fault)
75
+ *
76
+ * @throws {@link PolicyNotFoundException} (client fault)
77
+ * <p>The operation tried to access a nonexistent resource-based policy.</p>
78
+ * <p>If you specified an <code>ExpectedRevisionId</code>, it's possible that a policy is present for the resource but its revision ID didn't match the expected value.</p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p>The operation tried to access a nonexistent table or index. The resource might not
82
+ * be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
83
+ *
84
+ * @throws {@link DynamoDBServiceException}
85
+ * <p>Base exception class for all service exceptions from DynamoDB service.</p>
86
+ *
87
+ * @public
88
+ */
89
+ export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
90
+ }
@@ -0,0 +1,104 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
4
+ import { PutResourcePolicyInput, PutResourcePolicyOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link PutResourcePolicyCommand}.
13
+ */
14
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link PutResourcePolicyCommand}.
20
+ */
21
+ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyOutput, __MetadataBearer {
22
+ }
23
+ declare const PutResourcePolicyCommand_base: {
24
+ new (input: PutResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: PutResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <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">
30
+ * <i>eventually consistent</i>
31
+ * </a>.</p>
32
+ * <p>
33
+ * <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> which doesn't match the current policy's <code>RevisionId</code>, the <code>PolicyNotFoundException</code> will be returned.</p>
34
+ * <note>
35
+ * <p>
36
+ * <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>
37
+ * </note>
38
+ * @example
39
+ * Use a bare-bones client and the command you need to make an API call.
40
+ * ```javascript
41
+ * import { DynamoDBClient, PutResourcePolicyCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
42
+ * // const { DynamoDBClient, PutResourcePolicyCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
43
+ * const client = new DynamoDBClient(config);
44
+ * const input = { // PutResourcePolicyInput
45
+ * ResourceArn: "STRING_VALUE", // required
46
+ * Policy: "STRING_VALUE", // required
47
+ * ExpectedRevisionId: "STRING_VALUE",
48
+ * ConfirmRemoveSelfResourceAccess: true || false,
49
+ * };
50
+ * const command = new PutResourcePolicyCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // PutResourcePolicyOutput
53
+ * // RevisionId: "STRING_VALUE",
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput}
59
+ * @returns {@link PutResourcePolicyCommandOutput}
60
+ * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
61
+ * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
62
+ * @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape.
63
+ *
64
+ * @throws {@link InternalServerError} (server fault)
65
+ * <p>An error occurred on the server side.</p>
66
+ *
67
+ * @throws {@link InvalidEndpointException} (client fault)
68
+ *
69
+ * @throws {@link LimitExceededException} (client fault)
70
+ * <p>There is no limit to the number of daily on-demand backups that can be taken. </p>
71
+ * <p>For most purposes, up to 500 simultaneous table operations are allowed per account. These operations
72
+ * include <code>CreateTable</code>, <code>UpdateTable</code>,
73
+ * <code>DeleteTable</code>,<code>UpdateTimeToLive</code>,
74
+ * <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>. </p>
75
+ * <p>When you are creating a table with one or more secondary
76
+ * indexes, you can have up to 250 such requests running at a time. However, if the table or
77
+ * index specifications are complex, then DynamoDB might temporarily reduce the number
78
+ * of concurrent operations.</p>
79
+ * <p>When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.</p>
80
+ * <p>There is a soft account quota of 2,500 tables.</p>
81
+ * <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p>
82
+ * <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding
83
+ * this limit may result in request throttling.</p>
84
+ *
85
+ * @throws {@link PolicyNotFoundException} (client fault)
86
+ * <p>The operation tried to access a nonexistent resource-based policy.</p>
87
+ * <p>If you specified an <code>ExpectedRevisionId</code>, it's possible that a policy is present for the resource but its revision ID didn't match the expected value.</p>
88
+ *
89
+ * @throws {@link ResourceInUseException} (client fault)
90
+ * <p>The operation conflicts with the resource's availability. For example, you
91
+ * attempted to recreate an existing table, or tried to delete a table currently in the
92
+ * <code>CREATING</code> state.</p>
93
+ *
94
+ * @throws {@link ResourceNotFoundException} (client fault)
95
+ * <p>The operation tried to access a nonexistent table or index. The resource might not
96
+ * be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
97
+ *
98
+ * @throws {@link DynamoDBServiceException}
99
+ * <p>Base exception class for all service exceptions from DynamoDB service.</p>
100
+ *
101
+ * @public
102
+ */
103
+ export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
104
+ }
@@ -48,14 +48,11 @@ declare const UpdateTableCommand_base: {
48
48
  * </li>
49
49
  * </ul>
50
50
  * <p>
51
- * <code>UpdateTable</code> is an asynchronous operation; while
52
- * it's
53
- * executing, the table status changes from <code>ACTIVE</code> to <code>UPDATING</code>.
54
- * While it's <code>UPDATING</code>, you can't issue another <code>UpdateTable</code>
55
- * request on the
56
- * base table nor any replicas. When the table returns to the
57
- * <code>ACTIVE</code> state, the <code>UpdateTable</code> operation is
58
- * complete.</p>
51
+ * <code>UpdateTable</code> is an asynchronous operation; while it's executing, the table
52
+ * status changes from <code>ACTIVE</code> to <code>UPDATING</code>. While it's
53
+ * <code>UPDATING</code>, you can't issue another <code>UpdateTable</code> request.
54
+ * When the table returns to the <code>ACTIVE</code> state, the <code>UpdateTable</code>
55
+ * operation is complete.</p>
59
56
  * @example
60
57
  * Use a bare-bones client and the command you need to make an API call.
61
58
  * ```javascript
@@ -6,6 +6,7 @@ export * from "./CreateGlobalTableCommand";
6
6
  export * from "./CreateTableCommand";
7
7
  export * from "./DeleteBackupCommand";
8
8
  export * from "./DeleteItemCommand";
9
+ export * from "./DeleteResourcePolicyCommand";
9
10
  export * from "./DeleteTableCommand";
10
11
  export * from "./DescribeBackupCommand";
11
12
  export * from "./DescribeContinuousBackupsCommand";
@@ -26,6 +27,7 @@ export * from "./ExecuteStatementCommand";
26
27
  export * from "./ExecuteTransactionCommand";
27
28
  export * from "./ExportTableToPointInTimeCommand";
28
29
  export * from "./GetItemCommand";
30
+ export * from "./GetResourcePolicyCommand";
29
31
  export * from "./ImportTableCommand";
30
32
  export * from "./ListBackupsCommand";
31
33
  export * from "./ListContributorInsightsCommand";
@@ -35,6 +37,7 @@ export * from "./ListImportsCommand";
35
37
  export * from "./ListTablesCommand";
36
38
  export * from "./ListTagsOfResourceCommand";
37
39
  export * from "./PutItemCommand";
40
+ export * from "./PutResourcePolicyCommand";
38
41
  export * from "./QueryCommand";
39
42
  export * from "./RestoreTableFromBackupCommand";
40
43
  export * from "./RestoreTableToPointInTimeCommand";