@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.
- package/README.md +24 -0
- package/dist-cjs/endpoint/endpointResolver.js +4 -2
- package/dist-cjs/index.js +148 -3
- package/dist-es/DynamoDB.js +6 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +24 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +24 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +24 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/endpointResolver.js +3 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_json1_0.js +70 -1
- package/dist-types/DynamoDB.d.ts +21 -0
- package/dist-types/DynamoDBClient.d.ts +5 -2
- package/dist-types/commands/CreateTableCommand.d.ts +1 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +104 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +90 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +104 -0
- package/dist-types/commands/UpdateTableCommand.d.ts +5 -8
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +148 -37
- package/dist-types/protocols/Aws_json1_0.d.ts +27 -0
- package/dist-types/ts3.4/DynamoDB.d.ts +51 -0
- package/dist-types/ts3.4/DynamoDBClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +31 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
- package/package.json +5 -5
|
@@ -3,7 +3,7 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { DynamoDBServiceException as __BaseException } from "../models/DynamoDBServiceException";
|
|
6
|
-
import { AttributeValue, BackupInUseException, BackupNotFoundException, ConditionalCheckFailedException, ContinuousBackupsUnavailableException, DuplicateItemException, ExportConflictException, ExportNotFoundException, GlobalTableAlreadyExistsException, GlobalTableNotFoundException, IdempotentParameterMismatchException, ImportConflictException, ImportNotFoundException, IndexNotFoundException, InternalServerError, InvalidEndpointException, InvalidExportTimeException, InvalidRestoreTimeException, ItemCollectionSizeLimitExceededException, LimitExceededException, PointInTimeRecoveryUnavailableException, ProvisionedThroughputExceededException, ReplicaAlreadyExistsException, ReplicaNotFoundException, RequestLimitExceeded, ResourceInUseException, ResourceNotFoundException, TableAlreadyExistsException, TableInUseException, TableNotFoundException, TransactionCanceledException, TransactionConflictException, TransactionInProgressException, } from "../models/models_0";
|
|
6
|
+
import { AttributeValue, BackupInUseException, BackupNotFoundException, ConditionalCheckFailedException, ContinuousBackupsUnavailableException, DuplicateItemException, ExportConflictException, ExportNotFoundException, GlobalTableAlreadyExistsException, GlobalTableNotFoundException, IdempotentParameterMismatchException, ImportConflictException, ImportNotFoundException, IndexNotFoundException, InternalServerError, InvalidEndpointException, InvalidExportTimeException, InvalidRestoreTimeException, ItemCollectionSizeLimitExceededException, LimitExceededException, PointInTimeRecoveryUnavailableException, PolicyNotFoundException, ProvisionedThroughputExceededException, ReplicaAlreadyExistsException, ReplicaNotFoundException, RequestLimitExceeded, ResourceInUseException, ResourceNotFoundException, TableAlreadyExistsException, TableInUseException, TableNotFoundException, TransactionCanceledException, TransactionConflictException, TransactionInProgressException, } from "../models/models_0";
|
|
7
7
|
export const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
8
8
|
const headers = sharedHeaders("BatchExecuteStatement");
|
|
9
9
|
let body;
|
|
@@ -52,6 +52,12 @@ export const se_DeleteItemCommand = async (input, context) => {
|
|
|
52
52
|
body = JSON.stringify(se_DeleteItemInput(input, context));
|
|
53
53
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
54
|
};
|
|
55
|
+
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
56
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
57
|
+
let body;
|
|
58
|
+
body = JSON.stringify(_json(input));
|
|
59
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
+
};
|
|
55
61
|
export const se_DeleteTableCommand = async (input, context) => {
|
|
56
62
|
const headers = sharedHeaders("DeleteTable");
|
|
57
63
|
let body;
|
|
@@ -172,6 +178,12 @@ export const se_GetItemCommand = async (input, context) => {
|
|
|
172
178
|
body = JSON.stringify(se_GetItemInput(input, context));
|
|
173
179
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
180
|
};
|
|
181
|
+
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
182
|
+
const headers = sharedHeaders("GetResourcePolicy");
|
|
183
|
+
let body;
|
|
184
|
+
body = JSON.stringify(_json(input));
|
|
185
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
+
};
|
|
175
187
|
export const se_ImportTableCommand = async (input, context) => {
|
|
176
188
|
const headers = sharedHeaders("ImportTable");
|
|
177
189
|
let body;
|
|
@@ -226,6 +238,12 @@ export const se_PutItemCommand = async (input, context) => {
|
|
|
226
238
|
body = JSON.stringify(se_PutItemInput(input, context));
|
|
227
239
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
240
|
};
|
|
241
|
+
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
242
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
243
|
+
let body;
|
|
244
|
+
body = JSON.stringify(_json(input));
|
|
245
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
+
};
|
|
229
247
|
export const se_QueryCommand = async (input, context) => {
|
|
230
248
|
const headers = sharedHeaders("Query");
|
|
231
249
|
let body;
|
|
@@ -432,6 +450,19 @@ export const de_DeleteItemCommand = async (output, context) => {
|
|
|
432
450
|
};
|
|
433
451
|
return response;
|
|
434
452
|
};
|
|
453
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
454
|
+
if (output.statusCode >= 300) {
|
|
455
|
+
return de_CommandError(output, context);
|
|
456
|
+
}
|
|
457
|
+
const data = await parseBody(output.body, context);
|
|
458
|
+
let contents = {};
|
|
459
|
+
contents = _json(data);
|
|
460
|
+
const response = {
|
|
461
|
+
$metadata: deserializeMetadata(output),
|
|
462
|
+
...contents,
|
|
463
|
+
};
|
|
464
|
+
return response;
|
|
465
|
+
};
|
|
435
466
|
export const de_DeleteTableCommand = async (output, context) => {
|
|
436
467
|
if (output.statusCode >= 300) {
|
|
437
468
|
return de_CommandError(output, context);
|
|
@@ -692,6 +723,19 @@ export const de_GetItemCommand = async (output, context) => {
|
|
|
692
723
|
};
|
|
693
724
|
return response;
|
|
694
725
|
};
|
|
726
|
+
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
727
|
+
if (output.statusCode >= 300) {
|
|
728
|
+
return de_CommandError(output, context);
|
|
729
|
+
}
|
|
730
|
+
const data = await parseBody(output.body, context);
|
|
731
|
+
let contents = {};
|
|
732
|
+
contents = _json(data);
|
|
733
|
+
const response = {
|
|
734
|
+
$metadata: deserializeMetadata(output),
|
|
735
|
+
...contents,
|
|
736
|
+
};
|
|
737
|
+
return response;
|
|
738
|
+
};
|
|
695
739
|
export const de_ImportTableCommand = async (output, context) => {
|
|
696
740
|
if (output.statusCode >= 300) {
|
|
697
741
|
return de_CommandError(output, context);
|
|
@@ -809,6 +853,19 @@ export const de_PutItemCommand = async (output, context) => {
|
|
|
809
853
|
};
|
|
810
854
|
return response;
|
|
811
855
|
};
|
|
856
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
857
|
+
if (output.statusCode >= 300) {
|
|
858
|
+
return de_CommandError(output, context);
|
|
859
|
+
}
|
|
860
|
+
const data = await parseBody(output.body, context);
|
|
861
|
+
let contents = {};
|
|
862
|
+
contents = _json(data);
|
|
863
|
+
const response = {
|
|
864
|
+
$metadata: deserializeMetadata(output),
|
|
865
|
+
...contents,
|
|
866
|
+
};
|
|
867
|
+
return response;
|
|
868
|
+
};
|
|
812
869
|
export const de_QueryCommand = async (output, context) => {
|
|
813
870
|
if (output.statusCode >= 300) {
|
|
814
871
|
return de_CommandError(output, context);
|
|
@@ -1079,6 +1136,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1079
1136
|
case "TransactionConflictException":
|
|
1080
1137
|
case "com.amazonaws.dynamodb#TransactionConflictException":
|
|
1081
1138
|
throw await de_TransactionConflictExceptionRes(parsedOutput, context);
|
|
1139
|
+
case "PolicyNotFoundException":
|
|
1140
|
+
case "com.amazonaws.dynamodb#PolicyNotFoundException":
|
|
1141
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1082
1142
|
case "ExportNotFoundException":
|
|
1083
1143
|
case "com.amazonaws.dynamodb#ExportNotFoundException":
|
|
1084
1144
|
throw await de_ExportNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1316,6 +1376,15 @@ const de_PointInTimeRecoveryUnavailableExceptionRes = async (parsedOutput, conte
|
|
|
1316
1376
|
});
|
|
1317
1377
|
return __decorateServiceException(exception, body);
|
|
1318
1378
|
};
|
|
1379
|
+
const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1380
|
+
const body = parsedOutput.body;
|
|
1381
|
+
const deserialized = _json(body);
|
|
1382
|
+
const exception = new PolicyNotFoundException({
|
|
1383
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1384
|
+
...deserialized,
|
|
1385
|
+
});
|
|
1386
|
+
return __decorateServiceException(exception, body);
|
|
1387
|
+
};
|
|
1319
1388
|
const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
|
|
1320
1389
|
const body = parsedOutput.body;
|
|
1321
1390
|
const deserialized = _json(body);
|
package/dist-types/DynamoDB.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
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";
|
package/dist-types/index.d.ts
CHANGED