cdk-lambda-subminute 2.0.409 → 2.0.410
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/.jsii +3 -3
- package/lib/cdk-lambda-subminute.js +3 -3
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.min.json +107 -95
- package/node_modules/aws-sdk/apis/dynamodb-2012-08-10.min.json +321 -258
- package/node_modules/aws-sdk/apis/managedblockchain-query-2023-05-04.min.json +8 -7
- package/node_modules/aws-sdk/apis/savingsplans-2019-06-28.min.json +25 -1
- package/node_modules/aws-sdk/clients/accessanalyzer.d.ts +24 -2
- package/node_modules/aws-sdk/clients/codebuild.d.ts +1 -1
- package/node_modules/aws-sdk/clients/connect.d.ts +2 -2
- package/node_modules/aws-sdk/clients/dynamodb.d.ts +154 -67
- package/node_modules/aws-sdk/clients/managedblockchainquery.d.ts +9 -1
- package/node_modules/aws-sdk/clients/savingsplans.d.ts +53 -25
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +5 -5
- package/node_modules/aws-sdk/dist/aws-sdk.js +324 -261
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +78 -78
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts +128 -65
- package/node_modules/aws-sdk/package.json +1 -1
- package/package.json +3 -3
@@ -392,14 +392,14 @@ export namespace DocumentClient {
|
|
392
392
|
}
|
393
393
|
export interface BatchGetItemInput {
|
394
394
|
/**
|
395
|
-
* A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table. Each table name can be used only once per BatchGetItem request. Each element in the map of items to retrieve consists of the following: ConsistentRead - If true, a strongly consistent read is used; if false (the default), an eventually consistent read is used. ExpressionAttributeNames - One or more substitution tokens for attribute names in the ProjectionExpression parameter. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information about expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide. Keys - An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key value. For a composite key, you must provide both the partition key value and the sort key value. ProjectionExpression - A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes are returned. If any of the requested attributes are not found, they do not appear in the result. For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide. AttributesToGet - This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.
|
395
|
+
* A map of one or more table names or table ARNs and, for each table, a map that describes one or more items to retrieve from that table. Each table name or ARN can be used only once per BatchGetItem request. Each element in the map of items to retrieve consists of the following: ConsistentRead - If true, a strongly consistent read is used; if false (the default), an eventually consistent read is used. ExpressionAttributeNames - One or more substitution tokens for attribute names in the ProjectionExpression parameter. The following are some use cases for using ExpressionAttributeNames: To access an attribute whose name conflicts with a DynamoDB reserved word. To create a placeholder for repeating occurrences of an attribute name in an expression. To prevent special characters in an attribute name from being misinterpreted in an expression. Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name: Percentile The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames: {"#P":"Percentile"} You could then use this substitution in an expression, as in this example: #P = :val Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime. For more information about expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide. Keys - An array of primary key attribute values that define specific items in the table. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key value. For a composite key, you must provide both the partition key value and the sort key value. ProjectionExpression - A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes are returned. If any of the requested attributes are not found, they do not appear in the result. For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide. AttributesToGet - This is a legacy parameter. Use ProjectionExpression instead. For more information, see AttributesToGet in the Amazon DynamoDB Developer Guide.
|
396
396
|
*/
|
397
397
|
RequestItems: BatchGetRequestMap;
|
398
398
|
ReturnConsumedCapacity?: ReturnConsumedCapacity;
|
399
399
|
}
|
400
400
|
export interface BatchGetItemOutput {
|
401
401
|
/**
|
402
|
-
* A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.
|
402
|
+
* A map of table name or table ARN to a list of items. Each object in Responses consists of a table name or ARN, along with a map of attribute data consisting of the data type and attribute value.
|
403
403
|
*/
|
404
404
|
Responses?: BatchGetResponseMap;
|
405
405
|
/**
|
@@ -462,7 +462,7 @@ export namespace DocumentClient {
|
|
462
462
|
}
|
463
463
|
export interface BatchWriteItemInput {
|
464
464
|
/**
|
465
|
-
* A map of one or more table names and, for each table, a list of operations to be performed (DeleteRequest or PutRequest). Each element in the map consists of the following: DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement: Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key. PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement: Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values are rejected with a ValidationException exception. If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.
|
465
|
+
* A map of one or more table names or table ARNs and, for each table, a list of operations to be performed (DeleteRequest or PutRequest). Each element in the map consists of the following: DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement: Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key. PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement: Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values are rejected with a ValidationException exception. If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition.
|
466
466
|
*/
|
467
467
|
RequestItems: BatchWriteItemRequestMap;
|
468
468
|
ReturnConsumedCapacity?: ReturnConsumedCapacity;
|
@@ -473,7 +473,7 @@ export namespace DocumentClient {
|
|
473
473
|
}
|
474
474
|
export interface BatchWriteItemOutput {
|
475
475
|
/**
|
476
|
-
* A map of tables and requests against those tables that were not processed. The UnprocessedItems value is in the same form as RequestItems, so you can provide this value directly to a subsequent BatchWriteItem operation. For more information, see RequestItems in the Request Parameters section. Each UnprocessedItems entry consists of a table name and, for that table, a list of operations to perform (DeleteRequest or PutRequest). DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement: Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement: Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception. If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition. If there are no unprocessed items remaining, the response contains an empty UnprocessedItems map.
|
476
|
+
* A map of tables and requests against those tables that were not processed. The UnprocessedItems value is in the same form as RequestItems, so you can provide this value directly to a subsequent BatchWriteItem operation. For more information, see RequestItems in the Request Parameters section. Each UnprocessedItems entry consists of a table name or table ARN and, for that table, a list of operations to perform (DeleteRequest or PutRequest). DeleteRequest - Perform a DeleteItem operation on the specified item. The item to be deleted is identified by a Key subelement: Key - A map of primary key attribute values that uniquely identify the item. Each entry in this map consists of an attribute name and an attribute value. PutRequest - Perform a PutItem operation on the specified item. The item to be put is identified by an Item subelement: Item - A map of attributes and their values. Each entry in this map consists of an attribute name and an attribute value. Attribute values must not be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests that contain empty values will be rejected with a ValidationException exception. If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition. If there are no unprocessed items remaining, the response contains an empty UnprocessedItems map.
|
477
477
|
*/
|
478
478
|
UnprocessedItems?: BatchWriteItemRequestMap;
|
479
479
|
/**
|
@@ -536,9 +536,9 @@ export namespace DocumentClient {
|
|
536
536
|
*/
|
537
537
|
Key: Key;
|
538
538
|
/**
|
539
|
-
* Name of the table for the check item request.
|
539
|
+
* Name of the table for the check item request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
540
540
|
*/
|
541
|
-
TableName:
|
541
|
+
TableName: TableArn;
|
542
542
|
/**
|
543
543
|
* A condition that must be satisfied in order for a conditional update to succeed. For more information, see Condition expressions in the Amazon DynamoDB Developer Guide.
|
544
544
|
*/
|
@@ -558,12 +558,13 @@ export namespace DocumentClient {
|
|
558
558
|
}
|
559
559
|
export type ConditionExpression = string;
|
560
560
|
export type ConditionalOperator = "AND"|"OR"|string;
|
561
|
+
export type ConfirmRemoveSelfResourceAccess = boolean;
|
561
562
|
export type ConsistentRead = boolean;
|
562
563
|
export interface ConsumedCapacity {
|
563
564
|
/**
|
564
|
-
* The name of the table that was affected by the operation.
|
565
|
+
* The name of the table that was affected by the operation. If you had specified the Amazon Resource Name (ARN) of a table in the input, you'll see the table ARN in the response.
|
565
566
|
*/
|
566
|
-
TableName?:
|
567
|
+
TableName?: TableArn;
|
567
568
|
/**
|
568
569
|
* The total number of capacity units consumed by the operation.
|
569
570
|
*/
|
@@ -623,9 +624,9 @@ export namespace DocumentClient {
|
|
623
624
|
}
|
624
625
|
export interface CreateBackupInput {
|
625
626
|
/**
|
626
|
-
* The name of the table.
|
627
|
+
* The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
627
628
|
*/
|
628
|
-
TableName:
|
629
|
+
TableName: TableArn;
|
629
630
|
/**
|
630
631
|
* Specified name for the backup.
|
631
632
|
*/
|
@@ -705,9 +706,9 @@ export namespace DocumentClient {
|
|
705
706
|
*/
|
706
707
|
AttributeDefinitions: AttributeDefinitions;
|
707
708
|
/**
|
708
|
-
* The name of the table to create.
|
709
|
+
* The name of the table to create. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
709
710
|
*/
|
710
|
-
TableName:
|
711
|
+
TableName: TableArn;
|
711
712
|
/**
|
712
713
|
* Specifies the attributes that make up the primary key for a table or an index. The attributes in KeySchema must also be defined in the AttributeDefinitions array. For more information, see Data Model in the Amazon DynamoDB Developer Guide. Each KeySchemaElement in the array is composed of: AttributeName - The name of this key attribute. KeyType - The role that the key attribute will assume: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from the DynamoDB usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value. For a simple primary key (partition key), you must provide exactly one element with a KeyType of HASH. For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a KeyType of HASH, and the second element must have a KeyType of RANGE. For more information, see Working with Tables in the Amazon DynamoDB Developer Guide.
|
713
714
|
*/
|
@@ -748,6 +749,10 @@ export namespace DocumentClient {
|
|
748
749
|
* Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
|
749
750
|
*/
|
750
751
|
DeletionProtectionEnabled?: DeletionProtectionEnabled;
|
752
|
+
/**
|
753
|
+
* An Amazon Web Services resource-based policy document in JSON format that will be attached to the table. When you attach a resource-based policy while creating a table, the policy creation is strongly consistent. The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. You can’t request an increase for this limit. For a full list of all considerations that you should keep in mind while attaching a resource-based policy, see Resource-based policy considerations.
|
754
|
+
*/
|
755
|
+
ResourcePolicy?: ResourcePolicy;
|
751
756
|
}
|
752
757
|
export interface CreateTableOutput {
|
753
758
|
/**
|
@@ -775,9 +780,9 @@ export namespace DocumentClient {
|
|
775
780
|
*/
|
776
781
|
Key: Key;
|
777
782
|
/**
|
778
|
-
* Name of the table in which the item to be deleted resides.
|
783
|
+
* Name of the table in which the item to be deleted resides. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
779
784
|
*/
|
780
|
-
TableName:
|
785
|
+
TableName: TableArn;
|
781
786
|
/**
|
782
787
|
* A condition that must be satisfied in order for a conditional delete to succeed.
|
783
788
|
*/
|
@@ -815,9 +820,9 @@ export namespace DocumentClient {
|
|
815
820
|
}
|
816
821
|
export interface DeleteItemInput {
|
817
822
|
/**
|
818
|
-
* The name of the table from which to delete the item.
|
823
|
+
* The name of the table from which to delete the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
819
824
|
*/
|
820
|
-
TableName:
|
825
|
+
TableName: TableArn;
|
821
826
|
/**
|
822
827
|
* A map of attribute names to AttributeValue objects, representing the primary key of the item to delete. For the primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.
|
823
828
|
*/
|
@@ -888,11 +893,27 @@ export namespace DocumentClient {
|
|
888
893
|
*/
|
889
894
|
Key: Key;
|
890
895
|
}
|
896
|
+
export interface DeleteResourcePolicyInput {
|
897
|
+
/**
|
898
|
+
* The Amazon Resource Name (ARN) of the DynamoDB resource from which the policy will be removed. The resources you can specify include tables and streams. If you remove the policy of a table, it will also remove the permissions for the table's indexes defined in that policy document. This is because index permissions are defined in the table's policy.
|
899
|
+
*/
|
900
|
+
ResourceArn: ResourceArnString;
|
901
|
+
/**
|
902
|
+
* A string value that you can use to conditionally delete your policy. When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, the request will fail and return a PolicyNotFoundException.
|
903
|
+
*/
|
904
|
+
ExpectedRevisionId?: PolicyRevisionId;
|
905
|
+
}
|
906
|
+
export interface DeleteResourcePolicyOutput {
|
907
|
+
/**
|
908
|
+
* A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic. This value will be empty if you make a request against a resource without a policy.
|
909
|
+
*/
|
910
|
+
RevisionId?: PolicyRevisionId;
|
911
|
+
}
|
891
912
|
export interface DeleteTableInput {
|
892
913
|
/**
|
893
|
-
* The name of the table to delete.
|
914
|
+
* The name of the table to delete. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
894
915
|
*/
|
895
|
-
TableName:
|
916
|
+
TableName: TableArn;
|
896
917
|
}
|
897
918
|
export interface DeleteTableOutput {
|
898
919
|
/**
|
@@ -915,9 +936,9 @@ export namespace DocumentClient {
|
|
915
936
|
}
|
916
937
|
export interface DescribeContinuousBackupsInput {
|
917
938
|
/**
|
918
|
-
* Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.
|
939
|
+
* Name of the table for which the customer wants to check the continuous backups and point in time recovery settings. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
919
940
|
*/
|
920
|
-
TableName:
|
941
|
+
TableName: TableArn;
|
921
942
|
}
|
922
943
|
export interface DescribeContinuousBackupsOutput {
|
923
944
|
/**
|
@@ -927,9 +948,9 @@ export namespace DocumentClient {
|
|
927
948
|
}
|
928
949
|
export interface DescribeContributorInsightsInput {
|
929
950
|
/**
|
930
|
-
* The name of the table to describe.
|
951
|
+
* The name of the table to describe. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
931
952
|
*/
|
932
|
-
TableName:
|
953
|
+
TableName: TableArn;
|
933
954
|
/**
|
934
955
|
* The name of the global secondary index to describe, if applicable.
|
935
956
|
*/
|
@@ -1023,9 +1044,9 @@ export namespace DocumentClient {
|
|
1023
1044
|
}
|
1024
1045
|
export interface DescribeKinesisStreamingDestinationInput {
|
1025
1046
|
/**
|
1026
|
-
* The name of the table being described.
|
1047
|
+
* The name of the table being described. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
1027
1048
|
*/
|
1028
|
-
TableName:
|
1049
|
+
TableName: TableArn;
|
1029
1050
|
}
|
1030
1051
|
export interface DescribeKinesisStreamingDestinationOutput {
|
1031
1052
|
/**
|
@@ -1059,9 +1080,9 @@ export namespace DocumentClient {
|
|
1059
1080
|
}
|
1060
1081
|
export interface DescribeTableInput {
|
1061
1082
|
/**
|
1062
|
-
* The name of the table to describe.
|
1083
|
+
* The name of the table to describe. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
1063
1084
|
*/
|
1064
|
-
TableName:
|
1085
|
+
TableName: TableArn;
|
1065
1086
|
}
|
1066
1087
|
export interface DescribeTableOutput {
|
1067
1088
|
/**
|
@@ -1071,9 +1092,9 @@ export namespace DocumentClient {
|
|
1071
1092
|
}
|
1072
1093
|
export interface DescribeTableReplicaAutoScalingInput {
|
1073
1094
|
/**
|
1074
|
-
* The name of the table.
|
1095
|
+
* The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
1075
1096
|
*/
|
1076
|
-
TableName:
|
1097
|
+
TableName: TableArn;
|
1077
1098
|
}
|
1078
1099
|
export interface DescribeTableReplicaAutoScalingOutput {
|
1079
1100
|
/**
|
@@ -1083,9 +1104,9 @@ export namespace DocumentClient {
|
|
1083
1104
|
}
|
1084
1105
|
export interface DescribeTimeToLiveInput {
|
1085
1106
|
/**
|
1086
|
-
* The name of the table to be described.
|
1107
|
+
* The name of the table to be described. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
1087
1108
|
*/
|
1088
|
-
TableName:
|
1109
|
+
TableName: TableArn;
|
1089
1110
|
}
|
1090
1111
|
export interface DescribeTimeToLiveOutput {
|
1091
1112
|
/**
|
@@ -1388,9 +1409,9 @@ export namespace DocumentClient {
|
|
1388
1409
|
*/
|
1389
1410
|
Key: Key;
|
1390
1411
|
/**
|
1391
|
-
* The name of the table from which to retrieve the specified item.
|
1412
|
+
* The name of the table from which to retrieve the specified item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
1392
1413
|
*/
|
1393
|
-
TableName:
|
1414
|
+
TableName: TableArn;
|
1394
1415
|
/**
|
1395
1416
|
* A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.
|
1396
1417
|
*/
|
@@ -1402,9 +1423,9 @@ export namespace DocumentClient {
|
|
1402
1423
|
}
|
1403
1424
|
export interface GetItemInput {
|
1404
1425
|
/**
|
1405
|
-
* The name of the table containing the requested item.
|
1426
|
+
* The name of the table containing the requested item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
1406
1427
|
*/
|
1407
|
-
TableName:
|
1428
|
+
TableName: TableArn;
|
1408
1429
|
/**
|
1409
1430
|
* A map of attribute names to AttributeValue objects, representing the primary key of the item to retrieve. For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.
|
1410
1431
|
*/
|
@@ -1437,6 +1458,22 @@ export namespace DocumentClient {
|
|
1437
1458
|
*/
|
1438
1459
|
ConsumedCapacity?: ConsumedCapacity;
|
1439
1460
|
}
|
1461
|
+
export interface GetResourcePolicyInput {
|
1462
|
+
/**
|
1463
|
+
* The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy is attached. The resources you can specify include tables and streams.
|
1464
|
+
*/
|
1465
|
+
ResourceArn: ResourceArnString;
|
1466
|
+
}
|
1467
|
+
export interface GetResourcePolicyOutput {
|
1468
|
+
/**
|
1469
|
+
* The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
|
1470
|
+
*/
|
1471
|
+
Policy?: ResourcePolicy;
|
1472
|
+
/**
|
1473
|
+
* A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
|
1474
|
+
*/
|
1475
|
+
RevisionId?: PolicyRevisionId;
|
1476
|
+
}
|
1440
1477
|
export interface GlobalSecondaryIndex {
|
1441
1478
|
/**
|
1442
1479
|
* The name of the global secondary index. The name must be unique among all other indexes on this table.
|
@@ -1850,9 +1887,9 @@ export namespace DocumentClient {
|
|
1850
1887
|
export type KinesisDataStreamDestinations = KinesisDataStreamDestination[];
|
1851
1888
|
export interface KinesisStreamingDestinationInput {
|
1852
1889
|
/**
|
1853
|
-
* The name of the DynamoDB table.
|
1890
|
+
* The name of the DynamoDB table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
1854
1891
|
*/
|
1855
|
-
TableName:
|
1892
|
+
TableName: TableArn;
|
1856
1893
|
/**
|
1857
1894
|
* The ARN for a Kinesis data stream.
|
1858
1895
|
*/
|
@@ -1884,9 +1921,9 @@ export namespace DocumentClient {
|
|
1884
1921
|
export type ListAttributeValue = AttributeValue[];
|
1885
1922
|
export interface ListBackupsInput {
|
1886
1923
|
/**
|
1887
|
-
*
|
1924
|
+
* Lists the backups from the table specified in TableName. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
1888
1925
|
*/
|
1889
|
-
TableName?:
|
1926
|
+
TableName?: TableArn;
|
1890
1927
|
/**
|
1891
1928
|
* Maximum number of backups to return at once.
|
1892
1929
|
*/
|
@@ -1920,9 +1957,9 @@ export namespace DocumentClient {
|
|
1920
1957
|
}
|
1921
1958
|
export interface ListContributorInsightsInput {
|
1922
1959
|
/**
|
1923
|
-
* The name of the table.
|
1960
|
+
* The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
1924
1961
|
*/
|
1925
|
-
TableName?:
|
1962
|
+
TableName?: TableArn;
|
1926
1963
|
/**
|
1927
1964
|
* A token to for the desired page, if there is one.
|
1928
1965
|
*/
|
@@ -2165,6 +2202,7 @@ export namespace DocumentClient {
|
|
2165
2202
|
PointInTimeRecoveryEnabled: BooleanObject;
|
2166
2203
|
}
|
2167
2204
|
export type PointInTimeRecoveryStatus = "ENABLED"|"DISABLED"|string;
|
2205
|
+
export type PolicyRevisionId = string;
|
2168
2206
|
export type PositiveIntegerObject = number;
|
2169
2207
|
export type PositiveLongObject = number;
|
2170
2208
|
export type PreparedStatementParameters = AttributeValue[];
|
@@ -2225,9 +2263,9 @@ export namespace DocumentClient {
|
|
2225
2263
|
*/
|
2226
2264
|
Item: PutItemInputAttributeMap;
|
2227
2265
|
/**
|
2228
|
-
* Name of the table in which to write the item.
|
2266
|
+
* Name of the table in which to write the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
2229
2267
|
*/
|
2230
|
-
TableName:
|
2268
|
+
TableName: TableArn;
|
2231
2269
|
/**
|
2232
2270
|
* A condition that must be satisfied in order for a conditional update to succeed.
|
2233
2271
|
*/
|
@@ -2247,9 +2285,9 @@ export namespace DocumentClient {
|
|
2247
2285
|
}
|
2248
2286
|
export interface PutItemInput {
|
2249
2287
|
/**
|
2250
|
-
* The name of the table to contain the item.
|
2288
|
+
* The name of the table to contain the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
2251
2289
|
*/
|
2252
|
-
TableName:
|
2290
|
+
TableName: TableArn;
|
2253
2291
|
/**
|
2254
2292
|
* A map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item. You must provide all of the attributes for the primary key. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide both values for both the partition key and the sort key. If you specify any attributes that are part of an index key, then the data types for those attributes must match those of the schema in the table's attribute definition. Empty String and Binary attribute values are allowed. Attribute values of type String and Binary must have a length greater than zero if the attribute is used as a key attribute for a table or index. For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide. Each element in the Item map is an AttributeValue object.
|
2255
2293
|
*/
|
@@ -2309,11 +2347,35 @@ export namespace DocumentClient {
|
|
2309
2347
|
*/
|
2310
2348
|
Item: PutItemInputAttributeMap;
|
2311
2349
|
}
|
2350
|
+
export interface PutResourcePolicyInput {
|
2351
|
+
/**
|
2352
|
+
* The Amazon Resource Name (ARN) of the DynamoDB resource to which the policy will be attached. The resources you can specify include tables and streams. You can control index permissions using the base table's policy. To specify the same permission level for your table and its indexes, you can provide both the table and index Amazon Resource Name (ARN)s in the Resource field of a given Statement in your policy document. Alternatively, to specify different permissions for your table, indexes, or both, you can define multiple Statement fields in your policy document.
|
2353
|
+
*/
|
2354
|
+
ResourceArn: ResourceArnString;
|
2355
|
+
/**
|
2356
|
+
* An Amazon Web Services resource-based policy document in JSON format. The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that you should keep in mind while attaching a resource-based policy, see Resource-based policy considerations.
|
2357
|
+
*/
|
2358
|
+
Policy: ResourcePolicy;
|
2359
|
+
/**
|
2360
|
+
* A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy. When you provide an expected revision ID, if the revision ID of the existing policy on the resource doesn't match or if there's no policy attached to the resource, your request will be rejected with a PolicyNotFoundException. To conditionally put a policy when no policy exists for the resource, specify NO_POLICY for the revision ID.
|
2361
|
+
*/
|
2362
|
+
ExpectedRevisionId?: PolicyRevisionId;
|
2363
|
+
/**
|
2364
|
+
* Set this parameter to true to confirm that you want to remove your permissions to change the policy of this resource in the future.
|
2365
|
+
*/
|
2366
|
+
ConfirmRemoveSelfResourceAccess?: ConfirmRemoveSelfResourceAccess;
|
2367
|
+
}
|
2368
|
+
export interface PutResourcePolicyOutput {
|
2369
|
+
/**
|
2370
|
+
* A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
|
2371
|
+
*/
|
2372
|
+
RevisionId?: PolicyRevisionId;
|
2373
|
+
}
|
2312
2374
|
export interface QueryInput {
|
2313
2375
|
/**
|
2314
|
-
* The name of the table containing the requested items.
|
2376
|
+
* The name of the table containing the requested items. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
2315
2377
|
*/
|
2316
|
-
TableName:
|
2378
|
+
TableName: TableArn;
|
2317
2379
|
/**
|
2318
2380
|
* The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the IndexName parameter, you must also provide TableName.
|
2319
2381
|
*/
|
@@ -2645,6 +2707,7 @@ export namespace DocumentClient {
|
|
2645
2707
|
}
|
2646
2708
|
export type ReplicationGroupUpdateList = ReplicationGroupUpdate[];
|
2647
2709
|
export type ResourceArnString = string;
|
2710
|
+
export type ResourcePolicy = string;
|
2648
2711
|
export type RestoreInProgress = boolean;
|
2649
2712
|
export interface RestoreSummary {
|
2650
2713
|
/**
|
@@ -2809,9 +2872,9 @@ export namespace DocumentClient {
|
|
2809
2872
|
export type ScalarAttributeType = "S"|"N"|"B"|string;
|
2810
2873
|
export interface ScanInput {
|
2811
2874
|
/**
|
2812
|
-
* The name of the table containing the requested items
|
2875
|
+
* The name of the table containing the requested items or if you provide IndexName, the name of the table to which that index belongs. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
2813
2876
|
*/
|
2814
|
-
TableName:
|
2877
|
+
TableName: TableArn;
|
2815
2878
|
/**
|
2816
2879
|
* The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the IndexName parameter, you must also provide TableName.
|
2817
2880
|
*/
|
@@ -3261,9 +3324,9 @@ export namespace DocumentClient {
|
|
3261
3324
|
*/
|
3262
3325
|
UpdateExpression: UpdateExpression;
|
3263
3326
|
/**
|
3264
|
-
* Name of the table for the UpdateItem request.
|
3327
|
+
* Name of the table for the UpdateItem request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
3265
3328
|
*/
|
3266
|
-
TableName:
|
3329
|
+
TableName: TableArn;
|
3267
3330
|
/**
|
3268
3331
|
* A condition that must be satisfied in order for a conditional update to succeed.
|
3269
3332
|
*/
|
@@ -3283,9 +3346,9 @@ export namespace DocumentClient {
|
|
3283
3346
|
}
|
3284
3347
|
export interface UpdateContinuousBackupsInput {
|
3285
3348
|
/**
|
3286
|
-
* The name of the table.
|
3349
|
+
* The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
3287
3350
|
*/
|
3288
|
-
TableName:
|
3351
|
+
TableName: TableArn;
|
3289
3352
|
/**
|
3290
3353
|
* Represents the settings used to enable point in time recovery.
|
3291
3354
|
*/
|
@@ -3299,9 +3362,9 @@ export namespace DocumentClient {
|
|
3299
3362
|
}
|
3300
3363
|
export interface UpdateContributorInsightsInput {
|
3301
3364
|
/**
|
3302
|
-
* The name of the table.
|
3365
|
+
* The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
3303
3366
|
*/
|
3304
|
-
TableName:
|
3367
|
+
TableName: TableArn;
|
3305
3368
|
/**
|
3306
3369
|
* The global secondary index name, if applicable.
|
3307
3370
|
*/
|
@@ -3390,9 +3453,9 @@ export namespace DocumentClient {
|
|
3390
3453
|
}
|
3391
3454
|
export interface UpdateItemInput {
|
3392
3455
|
/**
|
3393
|
-
* The name of the table containing the item to update.
|
3456
|
+
* The name of the table containing the item to update. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
3394
3457
|
*/
|
3395
|
-
TableName:
|
3458
|
+
TableName: TableArn;
|
3396
3459
|
/**
|
3397
3460
|
* The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute. For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.
|
3398
3461
|
*/
|
@@ -3461,11 +3524,11 @@ export namespace DocumentClient {
|
|
3461
3524
|
}
|
3462
3525
|
export interface UpdateKinesisStreamingDestinationInput {
|
3463
3526
|
/**
|
3464
|
-
* The table name for the Kinesis streaming destination input.
|
3527
|
+
* The table name for the Kinesis streaming destination input. You can also provide the ARN of the table in this parameter.
|
3465
3528
|
*/
|
3466
|
-
TableName:
|
3529
|
+
TableName: TableArn;
|
3467
3530
|
/**
|
3468
|
-
* The ARN for the Kinesis stream input.
|
3531
|
+
* The Amazon Resource Name (ARN) for the Kinesis stream input.
|
3469
3532
|
*/
|
3470
3533
|
StreamArn: StreamArn;
|
3471
3534
|
/**
|
@@ -3519,9 +3582,9 @@ export namespace DocumentClient {
|
|
3519
3582
|
*/
|
3520
3583
|
AttributeDefinitions?: AttributeDefinitions;
|
3521
3584
|
/**
|
3522
|
-
* The name of the table to be updated.
|
3585
|
+
* The name of the table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
3523
3586
|
*/
|
3524
|
-
TableName:
|
3587
|
+
TableName: TableArn;
|
3525
3588
|
/**
|
3526
3589
|
* Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes. PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned Mode. PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode.
|
3527
3590
|
*/
|
@@ -3567,9 +3630,9 @@ export namespace DocumentClient {
|
|
3567
3630
|
*/
|
3568
3631
|
GlobalSecondaryIndexUpdates?: GlobalSecondaryIndexAutoScalingUpdateList;
|
3569
3632
|
/**
|
3570
|
-
* The name of the global table to be updated.
|
3633
|
+
* The name of the global table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
3571
3634
|
*/
|
3572
|
-
TableName:
|
3635
|
+
TableName: TableArn;
|
3573
3636
|
ProvisionedWriteCapacityAutoScalingUpdate?: AutoScalingSettingsUpdate;
|
3574
3637
|
/**
|
3575
3638
|
* Represents the auto scaling settings of replicas of the table that will be modified.
|
@@ -3584,9 +3647,9 @@ export namespace DocumentClient {
|
|
3584
3647
|
}
|
3585
3648
|
export interface UpdateTimeToLiveInput {
|
3586
3649
|
/**
|
3587
|
-
* The name of the table to be configured.
|
3650
|
+
* The name of the table to be configured. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
|
3588
3651
|
*/
|
3589
|
-
TableName:
|
3652
|
+
TableName: TableArn;
|
3590
3653
|
/**
|
3591
3654
|
* Represents the settings used to enable or disable Time to Live for the specified table.
|
3592
3655
|
*/
|
package/package.json
CHANGED
@@ -55,7 +55,7 @@
|
|
55
55
|
"jsii-docgen": "^1.8.110",
|
56
56
|
"jsii-pacmak": "^1.95.0",
|
57
57
|
"jsii-rosetta": "1.x",
|
58
|
-
"projen": "^0.80.
|
58
|
+
"projen": "^0.80.12",
|
59
59
|
"source-map-support": "^0.5.21",
|
60
60
|
"standard-version": "^9",
|
61
61
|
"ts-jest": "^27",
|
@@ -67,7 +67,7 @@
|
|
67
67
|
},
|
68
68
|
"dependencies": {
|
69
69
|
"aws-cdk-lib": "^2.95.0",
|
70
|
-
"aws-sdk": "^2.
|
70
|
+
"aws-sdk": "^2.1582.0",
|
71
71
|
"constructs": "^10.0.5"
|
72
72
|
},
|
73
73
|
"bundledDependencies": [
|
@@ -89,7 +89,7 @@
|
|
89
89
|
],
|
90
90
|
"main": "lib/index.js",
|
91
91
|
"license": "Apache-2.0",
|
92
|
-
"version": "2.0.
|
92
|
+
"version": "2.0.410",
|
93
93
|
"jest": {
|
94
94
|
"testMatch": [
|
95
95
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|