@@ -643,6 +643,7 @@ testLegacyBehavior('if an encryption key is included, encrypt/decrypt permission
643
643
'dynamodb:PutItem' ,
644
644
'dynamodb:UpdateItem' ,
645
645
'dynamodb:DeleteItem' ,
646
+ 'dynamodb:DescribeTable' ,
646
647
] ,
647
648
Effect : 'Allow' ,
648
649
Resource : [
@@ -1919,18 +1920,18 @@ describe('grants', () => {
1919
1920
1920
1921
test ( '"grantReadData" allows the principal to read data from the table' , ( ) => {
1921
1922
testGrant (
1922
- [ 'BatchGetItem' , 'GetRecords' , 'GetShardIterator' , 'Query' , 'GetItem' , 'Scan' , 'ConditionCheckItem' ] , ( p , t ) => t . grantReadData ( p ) ) ;
1923
+ [ 'BatchGetItem' , 'GetRecords' , 'GetShardIterator' , 'Query' , 'GetItem' , 'Scan' , 'ConditionCheckItem' , 'DescribeTable' ] , ( p , t ) => t . grantReadData ( p ) ) ;
1923
1924
} ) ;
1924
1925
1925
1926
test ( '"grantWriteData" allows the principal to write data to the table' , ( ) => {
1926
1927
testGrant (
1927
- [ 'BatchWriteItem' , 'PutItem' , 'UpdateItem' , 'DeleteItem' ] , ( p , t ) => t . grantWriteData ( p ) ) ;
1928
+ [ 'BatchWriteItem' , 'PutItem' , 'UpdateItem' , 'DeleteItem' , 'DescribeTable' ] , ( p , t ) => t . grantWriteData ( p ) ) ;
1928
1929
} ) ;
1929
1930
1930
1931
test ( '"grantReadWriteData" allows the principal to read/write data' , ( ) => {
1931
1932
testGrant ( [
1932
1933
'BatchGetItem' , 'GetRecords' , 'GetShardIterator' , 'Query' , 'GetItem' , 'Scan' ,
1933
- 'ConditionCheckItem' , 'BatchWriteItem' , 'PutItem' , 'UpdateItem' , 'DeleteItem' ,
1934
+ 'ConditionCheckItem' , 'BatchWriteItem' , 'PutItem' , 'UpdateItem' , 'DeleteItem' , 'DescribeTable' ,
1934
1935
] , ( p , t ) => t . grantReadWriteData ( p ) ) ;
1935
1936
} ) ;
1936
1937
@@ -2092,6 +2093,7 @@ describe('grants', () => {
2092
2093
'dynamodb:GetItem' ,
2093
2094
'dynamodb:Scan' ,
2094
2095
'dynamodb:ConditionCheckItem' ,
2096
+ 'dynamodb:DescribeTable' ,
2095
2097
] ,
2096
2098
'Effect' : 'Allow' ,
2097
2099
'Resource' : [
@@ -2244,6 +2246,7 @@ describe('import', () => {
2244
2246
'dynamodb:GetItem' ,
2245
2247
'dynamodb:Scan' ,
2246
2248
'dynamodb:ConditionCheckItem' ,
2249
+ 'dynamodb:DescribeTable' ,
2247
2250
] ,
2248
2251
'Effect' : 'Allow' ,
2249
2252
'Resource' : [
@@ -2290,6 +2293,7 @@ describe('import', () => {
2290
2293
'dynamodb:PutItem' ,
2291
2294
'dynamodb:UpdateItem' ,
2292
2295
'dynamodb:DeleteItem' ,
2296
+ 'dynamodb:DescribeTable' ,
2293
2297
] ,
2294
2298
'Effect' : 'Allow' ,
2295
2299
'Resource' : [
@@ -2432,6 +2436,7 @@ describe('import', () => {
2432
2436
'dynamodb:GetItem' ,
2433
2437
'dynamodb:Scan' ,
2434
2438
'dynamodb:ConditionCheckItem' ,
2439
+ 'dynamodb:DescribeTable' ,
2435
2440
] ,
2436
2441
Resource : [
2437
2442
{
@@ -2606,6 +2611,7 @@ describe('global', () => {
2606
2611
'dynamodb:GetItem' ,
2607
2612
'dynamodb:Scan' ,
2608
2613
'dynamodb:ConditionCheckItem' ,
2614
+ 'dynamodb:DescribeTable' ,
2609
2615
] ,
2610
2616
Effect : 'Allow' ,
2611
2617
Resource : [
@@ -2760,6 +2766,7 @@ describe('global', () => {
2760
2766
'dynamodb:GetItem' ,
2761
2767
'dynamodb:Scan' ,
2762
2768
'dynamodb:ConditionCheckItem' ,
2769
+ 'dynamodb:DescribeTable' ,
2763
2770
] ,
2764
2771
Effect : 'Allow' ,
2765
2772
Resource : [
0 commit comments