@aws-sdk/client-dynamodb 3.535.0 → 3.540.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.
Files changed (33) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/endpoint/endpointResolver.js +4 -2
  3. package/dist-cjs/index.js +148 -3
  4. package/dist-es/DynamoDB.js +6 -0
  5. package/dist-es/commands/DeleteResourcePolicyCommand.js +24 -0
  6. package/dist-es/commands/GetResourcePolicyCommand.js +24 -0
  7. package/dist-es/commands/PutResourcePolicyCommand.js +24 -0
  8. package/dist-es/commands/index.js +3 -0
  9. package/dist-es/endpoint/endpointResolver.js +3 -1
  10. package/dist-es/index.js +0 -1
  11. package/dist-es/models/models_0.js +12 -0
  12. package/dist-es/protocols/Aws_json1_0.js +70 -1
  13. package/dist-types/DynamoDB.d.ts +21 -0
  14. package/dist-types/DynamoDBClient.d.ts +5 -2
  15. package/dist-types/commands/CreateTableCommand.d.ts +1 -0
  16. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +104 -0
  17. package/dist-types/commands/GetResourcePolicyCommand.d.ts +90 -0
  18. package/dist-types/commands/PutResourcePolicyCommand.d.ts +104 -0
  19. package/dist-types/commands/UpdateTableCommand.d.ts +5 -8
  20. package/dist-types/commands/index.d.ts +3 -0
  21. package/dist-types/index.d.ts +0 -1
  22. package/dist-types/models/models_0.d.ts +148 -37
  23. package/dist-types/protocols/Aws_json1_0.d.ts +27 -0
  24. package/dist-types/ts3.4/DynamoDB.d.ts +51 -0
  25. package/dist-types/ts3.4/DynamoDBClient.d.ts +18 -0
  26. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +39 -0
  27. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
  28. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  30. package/dist-types/ts3.4/index.d.ts +0 -1
  31. package/dist-types/ts3.4/models/models_0.d.ts +31 -0
  32. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
  33. package/package.json +5 -5
@@ -81,6 +81,10 @@ import {
81
81
  DeleteItemCommandInput,
82
82
  DeleteItemCommandOutput,
83
83
  } from "./commands/DeleteItemCommand";
84
+ import {
85
+ DeleteResourcePolicyCommandInput,
86
+ DeleteResourcePolicyCommandOutput,
87
+ } from "./commands/DeleteResourcePolicyCommand";
84
88
  import {
85
89
  DeleteTableCommandInput,
86
90
  DeleteTableCommandOutput,
@@ -161,6 +165,10 @@ import {
161
165
  GetItemCommandInput,
162
166
  GetItemCommandOutput,
163
167
  } from "./commands/GetItemCommand";
168
+ import {
169
+ GetResourcePolicyCommandInput,
170
+ GetResourcePolicyCommandOutput,
171
+ } from "./commands/GetResourcePolicyCommand";
164
172
  import {
165
173
  ImportTableCommandInput,
166
174
  ImportTableCommandOutput,
@@ -197,6 +205,10 @@ import {
197
205
  PutItemCommandInput,
198
206
  PutItemCommandOutput,
199
207
  } from "./commands/PutItemCommand";
208
+ import {
209
+ PutResourcePolicyCommandInput,
210
+ PutResourcePolicyCommandOutput,
211
+ } from "./commands/PutResourcePolicyCommand";
200
212
  import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
201
213
  import {
202
214
  RestoreTableFromBackupCommandInput,
@@ -275,6 +287,7 @@ export type ServiceInputTypes =
275
287
  | CreateTableCommandInput
276
288
  | DeleteBackupCommandInput
277
289
  | DeleteItemCommandInput
290
+ | DeleteResourcePolicyCommandInput
278
291
  | DeleteTableCommandInput
279
292
  | DescribeBackupCommandInput
280
293
  | DescribeContinuousBackupsCommandInput
@@ -295,6 +308,7 @@ export type ServiceInputTypes =
295
308
  | ExecuteTransactionCommandInput
296
309
  | ExportTableToPointInTimeCommandInput
297
310
  | GetItemCommandInput
311
+ | GetResourcePolicyCommandInput
298
312
  | ImportTableCommandInput
299
313
  | ListBackupsCommandInput
300
314
  | ListContributorInsightsCommandInput
@@ -304,6 +318,7 @@ export type ServiceInputTypes =
304
318
  | ListTablesCommandInput
305
319
  | ListTagsOfResourceCommandInput
306
320
  | PutItemCommandInput
321
+ | PutResourcePolicyCommandInput
307
322
  | QueryCommandInput
308
323
  | RestoreTableFromBackupCommandInput
309
324
  | RestoreTableToPointInTimeCommandInput
@@ -330,6 +345,7 @@ export type ServiceOutputTypes =
330
345
  | CreateTableCommandOutput
331
346
  | DeleteBackupCommandOutput
332
347
  | DeleteItemCommandOutput
348
+ | DeleteResourcePolicyCommandOutput
333
349
  | DeleteTableCommandOutput
334
350
  | DescribeBackupCommandOutput
335
351
  | DescribeContinuousBackupsCommandOutput
@@ -350,6 +366,7 @@ export type ServiceOutputTypes =
350
366
  | ExecuteTransactionCommandOutput
351
367
  | ExportTableToPointInTimeCommandOutput
352
368
  | GetItemCommandOutput
369
+ | GetResourcePolicyCommandOutput
353
370
  | ImportTableCommandOutput
354
371
  | ListBackupsCommandOutput
355
372
  | ListContributorInsightsCommandOutput
@@ -359,6 +376,7 @@ export type ServiceOutputTypes =
359
376
  | ListTablesCommandOutput
360
377
  | ListTagsOfResourceCommandOutput
361
378
  | PutItemCommandOutput
379
+ | PutResourcePolicyCommandOutput
362
380
  | QueryCommandOutput
363
381
  | RestoreTableFromBackupCommandOutput
364
382
  | RestoreTableToPointInTimeCommandOutput
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ DynamoDBClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../DynamoDBClient";
8
+ import {
9
+ DeleteResourcePolicyInput,
10
+ DeleteResourcePolicyOutput,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface DeleteResourcePolicyCommandInput
14
+ extends DeleteResourcePolicyInput {}
15
+ export interface DeleteResourcePolicyCommandOutput
16
+ extends DeleteResourcePolicyOutput,
17
+ __MetadataBearer {}
18
+ declare const DeleteResourcePolicyCommand_base: {
19
+ new (
20
+ input: DeleteResourcePolicyCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ DeleteResourcePolicyCommandInput,
23
+ DeleteResourcePolicyCommandOutput,
24
+ DynamoDBClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: DeleteResourcePolicyCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ DeleteResourcePolicyCommandInput,
32
+ DeleteResourcePolicyCommandOutput,
33
+ DynamoDBClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {}
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ DynamoDBClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../DynamoDBClient";
8
+ import {
9
+ GetResourcePolicyInput,
10
+ GetResourcePolicyOutput,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface GetResourcePolicyCommandInput extends GetResourcePolicyInput {}
14
+ export interface GetResourcePolicyCommandOutput
15
+ extends GetResourcePolicyOutput,
16
+ __MetadataBearer {}
17
+ declare const GetResourcePolicyCommand_base: {
18
+ new (
19
+ input: GetResourcePolicyCommandInput
20
+ ): import("@smithy/smithy-client").CommandImpl<
21
+ GetResourcePolicyCommandInput,
22
+ GetResourcePolicyCommandOutput,
23
+ DynamoDBClientResolvedConfig,
24
+ ServiceInputTypes,
25
+ ServiceOutputTypes
26
+ >;
27
+ new (
28
+ __0_0: GetResourcePolicyCommandInput
29
+ ): import("@smithy/smithy-client").CommandImpl<
30
+ GetResourcePolicyCommandInput,
31
+ GetResourcePolicyCommandOutput,
32
+ DynamoDBClientResolvedConfig,
33
+ ServiceInputTypes,
34
+ ServiceOutputTypes
35
+ >;
36
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
37
+ };
38
+ export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {}
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ DynamoDBClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../DynamoDBClient";
8
+ import {
9
+ PutResourcePolicyInput,
10
+ PutResourcePolicyOutput,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyInput {}
14
+ export interface PutResourcePolicyCommandOutput
15
+ extends PutResourcePolicyOutput,
16
+ __MetadataBearer {}
17
+ declare const PutResourcePolicyCommand_base: {
18
+ new (
19
+ input: PutResourcePolicyCommandInput
20
+ ): import("@smithy/smithy-client").CommandImpl<
21
+ PutResourcePolicyCommandInput,
22
+ PutResourcePolicyCommandOutput,
23
+ DynamoDBClientResolvedConfig,
24
+ ServiceInputTypes,
25
+ ServiceOutputTypes
26
+ >;
27
+ new (
28
+ __0_0: PutResourcePolicyCommandInput
29
+ ): import("@smithy/smithy-client").CommandImpl<
30
+ PutResourcePolicyCommandInput,
31
+ PutResourcePolicyCommandOutput,
32
+ DynamoDBClientResolvedConfig,
33
+ ServiceInputTypes,
34
+ ServiceOutputTypes
35
+ >;
36
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
37
+ };
38
+ export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {}
@@ -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";
@@ -7,5 +7,4 @@ export * from "./commands";
7
7
  export * from "./pagination";
8
8
  export * from "./waiters";
9
9
  export * from "./models";
10
- import "@aws-sdk/util-endpoints";
11
10
  export { DynamoDBServiceException } from "./models/DynamoDBServiceException";
@@ -554,6 +554,7 @@ export interface CreateTableInput {
554
554
  Tags?: Tag[];
555
555
  TableClass?: TableClass;
556
556
  DeletionProtectionEnabled?: boolean;
557
+ ResourcePolicy?: string;
557
558
  }
558
559
  export declare const IndexStatus: {
559
560
  readonly ACTIVE: "ACTIVE";
@@ -673,6 +674,20 @@ export interface DeleteReplicaAction {
673
674
  export interface DeleteReplicationGroupMemberAction {
674
675
  RegionName: string | undefined;
675
676
  }
677
+ export interface DeleteResourcePolicyInput {
678
+ ResourceArn: string | undefined;
679
+ ExpectedRevisionId?: string;
680
+ }
681
+ export interface DeleteResourcePolicyOutput {
682
+ RevisionId?: string;
683
+ }
684
+ export declare class PolicyNotFoundException extends __BaseException {
685
+ readonly name: "PolicyNotFoundException";
686
+ readonly $fault: "client";
687
+ constructor(
688
+ opts: __ExceptionOptionType<PolicyNotFoundException, __BaseException>
689
+ );
690
+ }
676
691
  export interface DeleteTableInput {
677
692
  TableName: string | undefined;
678
693
  }
@@ -1041,6 +1056,13 @@ export declare class PointInTimeRecoveryUnavailableException extends __BaseExcep
1041
1056
  >
1042
1057
  );
1043
1058
  }
1059
+ export interface GetResourcePolicyInput {
1060
+ ResourceArn: string | undefined;
1061
+ }
1062
+ export interface GetResourcePolicyOutput {
1063
+ Policy?: string;
1064
+ RevisionId?: string;
1065
+ }
1044
1066
  export declare class ImportConflictException extends __BaseException {
1045
1067
  readonly name: "ImportConflictException";
1046
1068
  readonly $fault: "client";
@@ -1142,6 +1164,15 @@ export interface ListTagsOfResourceOutput {
1142
1164
  Tags?: Tag[];
1143
1165
  NextToken?: string;
1144
1166
  }
1167
+ export interface PutResourcePolicyInput {
1168
+ ResourceArn: string | undefined;
1169
+ Policy: string | undefined;
1170
+ ExpectedRevisionId?: string;
1171
+ ConfirmRemoveSelfResourceAccess?: boolean;
1172
+ }
1173
+ export interface PutResourcePolicyOutput {
1174
+ RevisionId?: string;
1175
+ }
1145
1176
  export declare const Select: {
1146
1177
  readonly ALL_ATTRIBUTES: "ALL_ATTRIBUTES";
1147
1178
  readonly ALL_PROJECTED_ATTRIBUTES: "ALL_PROJECTED_ATTRIBUTES";
@@ -35,6 +35,10 @@ import {
35
35
  DeleteItemCommandInput,
36
36
  DeleteItemCommandOutput,
37
37
  } from "../commands/DeleteItemCommand";
38
+ import {
39
+ DeleteResourcePolicyCommandInput,
40
+ DeleteResourcePolicyCommandOutput,
41
+ } from "../commands/DeleteResourcePolicyCommand";
38
42
  import {
39
43
  DeleteTableCommandInput,
40
44
  DeleteTableCommandOutput,
@@ -115,6 +119,10 @@ import {
115
119
  GetItemCommandInput,
116
120
  GetItemCommandOutput,
117
121
  } from "../commands/GetItemCommand";
122
+ import {
123
+ GetResourcePolicyCommandInput,
124
+ GetResourcePolicyCommandOutput,
125
+ } from "../commands/GetResourcePolicyCommand";
118
126
  import {
119
127
  ImportTableCommandInput,
120
128
  ImportTableCommandOutput,
@@ -151,6 +159,10 @@ import {
151
159
  PutItemCommandInput,
152
160
  PutItemCommandOutput,
153
161
  } from "../commands/PutItemCommand";
162
+ import {
163
+ PutResourcePolicyCommandInput,
164
+ PutResourcePolicyCommandOutput,
165
+ } from "../commands/PutResourcePolicyCommand";
154
166
  import {
155
167
  QueryCommandInput,
156
168
  QueryCommandOutput,
@@ -248,6 +260,10 @@ export declare const se_DeleteItemCommand: (
248
260
  input: DeleteItemCommandInput,
249
261
  context: __SerdeContext
250
262
  ) => Promise<__HttpRequest>;
263
+ export declare const se_DeleteResourcePolicyCommand: (
264
+ input: DeleteResourcePolicyCommandInput,
265
+ context: __SerdeContext
266
+ ) => Promise<__HttpRequest>;
251
267
  export declare const se_DeleteTableCommand: (
252
268
  input: DeleteTableCommandInput,
253
269
  context: __SerdeContext
@@ -328,6 +344,10 @@ export declare const se_GetItemCommand: (
328
344
  input: GetItemCommandInput,
329
345
  context: __SerdeContext
330
346
  ) => Promise<__HttpRequest>;
347
+ export declare const se_GetResourcePolicyCommand: (
348
+ input: GetResourcePolicyCommandInput,
349
+ context: __SerdeContext
350
+ ) => Promise<__HttpRequest>;
331
351
  export declare const se_ImportTableCommand: (
332
352
  input: ImportTableCommandInput,
333
353
  context: __SerdeContext
@@ -364,6 +384,10 @@ export declare const se_PutItemCommand: (
364
384
  input: PutItemCommandInput,
365
385
  context: __SerdeContext
366
386
  ) => Promise<__HttpRequest>;
387
+ export declare const se_PutResourcePolicyCommand: (
388
+ input: PutResourcePolicyCommandInput,
389
+ context: __SerdeContext
390
+ ) => Promise<__HttpRequest>;
367
391
  export declare const se_QueryCommand: (
368
392
  input: QueryCommandInput,
369
393
  context: __SerdeContext
@@ -464,6 +488,10 @@ export declare const de_DeleteItemCommand: (
464
488
  output: __HttpResponse,
465
489
  context: __SerdeContext
466
490
  ) => Promise<DeleteItemCommandOutput>;
491
+ export declare const de_DeleteResourcePolicyCommand: (
492
+ output: __HttpResponse,
493
+ context: __SerdeContext
494
+ ) => Promise<DeleteResourcePolicyCommandOutput>;
467
495
  export declare const de_DeleteTableCommand: (
468
496
  output: __HttpResponse,
469
497
  context: __SerdeContext
@@ -544,6 +572,10 @@ export declare const de_GetItemCommand: (
544
572
  output: __HttpResponse,
545
573
  context: __SerdeContext
546
574
  ) => Promise<GetItemCommandOutput>;
575
+ export declare const de_GetResourcePolicyCommand: (
576
+ output: __HttpResponse,
577
+ context: __SerdeContext
578
+ ) => Promise<GetResourcePolicyCommandOutput>;
547
579
  export declare const de_ImportTableCommand: (
548
580
  output: __HttpResponse,
549
581
  context: __SerdeContext
@@ -580,6 +612,10 @@ export declare const de_PutItemCommand: (
580
612
  output: __HttpResponse,
581
613
  context: __SerdeContext
582
614
  ) => Promise<PutItemCommandOutput>;
615
+ export declare const de_PutResourcePolicyCommand: (
616
+ output: __HttpResponse,
617
+ context: __SerdeContext
618
+ ) => Promise<PutResourcePolicyCommandOutput>;
583
619
  export declare const de_QueryCommand: (
584
620
  output: __HttpResponse,
585
621
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb",
3
3
  "description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
4
- "version": "3.535.0",
4
+ "version": "3.540.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-dynamodb",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.535.0",
23
+ "@aws-sdk/client-sts": "3.540.0",
24
24
  "@aws-sdk/core": "3.535.0",
25
- "@aws-sdk/credential-provider-node": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
26
  "@aws-sdk/middleware-endpoint-discovery": "3.535.0",
27
27
  "@aws-sdk/middleware-host-header": "3.535.0",
28
28
  "@aws-sdk/middleware-logger": "3.535.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.535.0",
30
- "@aws-sdk/middleware-user-agent": "3.535.0",
30
+ "@aws-sdk/middleware-user-agent": "3.540.0",
31
31
  "@aws-sdk/region-config-resolver": "3.535.0",
32
32
  "@aws-sdk/types": "3.535.0",
33
- "@aws-sdk/util-endpoints": "3.535.0",
33
+ "@aws-sdk/util-endpoints": "3.540.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.535.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.535.0",
36
36
  "@smithy/config-resolver": "^2.2.0",