File tree Expand file tree Collapse file tree 4 files changed +66
-12
lines changed
samtranslator/policy_templates_data Expand file tree Collapse file tree 4 files changed +66
-12
lines changed Original file line number Diff line number Diff line change 609
609
"Action" : [
610
610
" dynamodb:DescribeStream" ,
611
611
" dynamodb:GetRecords" ,
612
- " dynamodb:GetShardIterator" ,
613
- " dynamodb:ListStreams"
612
+ " dynamodb:GetShardIterator"
614
613
],
615
614
"Resource" : {
616
615
"Fn::Sub" : [
617
- " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/${streamName}" ,
616
+ " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/stream/ ${streamName}" ,
618
617
{
619
618
"tableName" : {
620
619
"Ref" : " TableName"
625
624
}
626
625
]
627
626
}
627
+ },
628
+ {
629
+ "Effect" : " Allow" ,
630
+ "Action" : [
631
+ " dynamodb:ListStreams"
632
+ ],
633
+ "Resource" : {
634
+ "Fn::Sub" : [
635
+ " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/stream/*" ,
636
+ {
637
+ "tableName" : {
638
+ "Ref" : " TableName"
639
+ }
640
+ }
641
+ ]
642
+ }
628
643
}
629
644
]
630
645
}
Original file line number Diff line number Diff line change 474
474
"Action" : [
475
475
" dynamodb:DescribeStream" ,
476
476
" dynamodb:GetRecords" ,
477
- " dynamodb:GetShardIterator" ,
478
- " dynamodb:ListStreams"
477
+ " dynamodb:GetShardIterator"
479
478
],
480
479
"Resource" : {
481
480
"Fn::Sub" : [
482
- " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/${streamName}" ,
481
+ " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/stream/ ${streamName}" ,
483
482
{
484
483
"streamName" : " name" ,
485
484
"tableName" : " name"
486
485
}
487
486
]
488
487
},
489
488
"Effect" : " Allow"
489
+ },
490
+ {
491
+ "Action" : [
492
+ " dynamodb:ListStreams"
493
+ ],
494
+ "Resource" : {
495
+ "Fn::Sub" : [
496
+ " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/stream/*" ,
497
+ {
498
+ "tableName" : " name"
499
+ }
500
+ ]
501
+ },
502
+ "Effect" : " Allow"
490
503
}
491
504
]
492
505
}
Original file line number Diff line number Diff line change 473
473
"Action" : [
474
474
" dynamodb:DescribeStream" ,
475
475
" dynamodb:GetRecords" ,
476
- " dynamodb:GetShardIterator" ,
477
- " dynamodb:ListStreams"
476
+ " dynamodb:GetShardIterator"
478
477
],
479
478
"Resource" : {
480
479
"Fn::Sub" : [
481
- " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/${streamName}" ,
480
+ " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/stream/ ${streamName}" ,
482
481
{
483
482
"streamName" : " name" ,
484
483
"tableName" : " name"
485
484
}
486
485
]
487
486
},
488
487
"Effect" : " Allow"
488
+ },
489
+ {
490
+ "Action" : [
491
+ " dynamodb:ListStreams"
492
+ ],
493
+ "Resource" : {
494
+ "Fn::Sub" : [
495
+ " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/stream/*" ,
496
+ {
497
+ "tableName" : " name"
498
+ }
499
+ ]
500
+ },
501
+ "Effect" : " Allow"
489
502
}
490
503
]
491
504
}
Original file line number Diff line number Diff line change 473
473
"Action" : [
474
474
" dynamodb:DescribeStream" ,
475
475
" dynamodb:GetRecords" ,
476
- " dynamodb:GetShardIterator" ,
477
- " dynamodb:ListStreams"
476
+ " dynamodb:GetShardIterator"
478
477
],
479
478
"Resource" : {
480
479
"Fn::Sub" : [
481
- " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/${streamName}" ,
480
+ " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/stream/ ${streamName}" ,
482
481
{
483
482
"streamName" : " name" ,
484
483
"tableName" : " name"
485
484
}
486
485
]
487
486
},
488
487
"Effect" : " Allow"
488
+ },
489
+ {
490
+ "Action" : [
491
+ " dynamodb:ListStreams"
492
+ ],
493
+ "Resource" : {
494
+ "Fn::Sub" : [
495
+ " arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/stream/*" ,
496
+ {
497
+ "tableName" : " name"
498
+ }
499
+ ]
500
+ },
501
+ "Effect" : " Allow"
489
502
}
490
503
]
491
504
}
You can’t perform that action at this time.
0 commit comments