File tree 5 files changed +102
-0
lines changed
samtranslator/policy_templates_data
5 files changed +102
-0
lines changed Original file line number Diff line number Diff line change 2329
2329
"Description" : " Gives access permissions to create and list applications in the AWS Serverless Application Repository service" ,
2330
2330
"Parameters" : {}
2331
2331
},
2332
+ "StepFunctionsCallbackPolicy" : {
2333
+ "Definition" : {
2334
+ "Statement" : [
2335
+ {
2336
+ "Action" : [
2337
+ " states:SendTaskFailure" ,
2338
+ " states:SendTaskHeartbeat" ,
2339
+ " states:SendTaskSuccess"
2340
+ ],
2341
+ "Effect" : " Allow" ,
2342
+ "Resource" : {
2343
+ "Fn::Sub" : [
2344
+ " arn:${AWS::Partition}:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}" ,
2345
+ {
2346
+ "stateMachineName" : {
2347
+ "Ref" : " StateMachineName"
2348
+ }
2349
+ }
2350
+ ]
2351
+ }
2352
+ }
2353
+ ]
2354
+ },
2355
+ "Description" : " Gives permission to implement callback tasks in Step Functions" ,
2356
+ "Parameters" : {
2357
+ "StateMachineName" : {
2358
+ "Description" : " The name of the state machine to execute."
2359
+ }
2360
+ }
2361
+ },
2332
2362
"StepFunctionsExecutionPolicy" : {
2333
2363
"Definition" : {
2334
2364
"Statement" : [
Original file line number Diff line number Diff line change @@ -184,3 +184,6 @@ Resources:
184
184
- SESBulkTemplatedCrudPolicy_v2 :
185
185
IdentityName : name
186
186
TemplateName : template_name
187
+
188
+ - StepFunctionsCallbackPolicy :
189
+ StateMachineName : name
Original file line number Diff line number Diff line change 1703
1703
]
1704
1704
},
1705
1705
"PolicyName" : " KitchenSinkFunctionRolePolicy62"
1706
+ },
1707
+ {
1708
+ "PolicyDocument" : {
1709
+ "Statement" : [
1710
+ {
1711
+ "Action" : [
1712
+ " states:SendTaskFailure" ,
1713
+ " states:SendTaskHeartbeat" ,
1714
+ " states:SendTaskSuccess"
1715
+ ],
1716
+ "Effect" : " Allow" ,
1717
+ "Resource" : {
1718
+ "Fn::Sub" : [
1719
+ " arn:${AWS::Partition}:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}" ,
1720
+ {
1721
+ "stateMachineName" : " name"
1722
+ }
1723
+ ]
1724
+ }
1725
+ }
1726
+ ]
1727
+ },
1728
+ "PolicyName" : " KitchenSinkFunctionRolePolicy63"
1706
1729
}
1707
1730
],
1708
1731
"Tags" : [
Original file line number Diff line number Diff line change 1703
1703
]
1704
1704
},
1705
1705
"PolicyName" : " KitchenSinkFunctionRolePolicy62"
1706
+ },
1707
+ {
1708
+ "PolicyDocument" : {
1709
+ "Statement" : [
1710
+ {
1711
+ "Action" : [
1712
+ " states:SendTaskFailure" ,
1713
+ " states:SendTaskHeartbeat" ,
1714
+ " states:SendTaskSuccess"
1715
+ ],
1716
+ "Effect" : " Allow" ,
1717
+ "Resource" : {
1718
+ "Fn::Sub" : [
1719
+ " arn:${AWS::Partition}:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}" ,
1720
+ {
1721
+ "stateMachineName" : " name"
1722
+ }
1723
+ ]
1724
+ }
1725
+ }
1726
+ ]
1727
+ },
1728
+ "PolicyName" : " KitchenSinkFunctionRolePolicy63"
1706
1729
}
1707
1730
],
1708
1731
"Tags" : [
Original file line number Diff line number Diff line change 1703
1703
]
1704
1704
},
1705
1705
"PolicyName" : " KitchenSinkFunctionRolePolicy62"
1706
+ },
1707
+ {
1708
+ "PolicyDocument" : {
1709
+ "Statement" : [
1710
+ {
1711
+ "Action" : [
1712
+ " states:SendTaskFailure" ,
1713
+ " states:SendTaskHeartbeat" ,
1714
+ " states:SendTaskSuccess"
1715
+ ],
1716
+ "Effect" : " Allow" ,
1717
+ "Resource" : {
1718
+ "Fn::Sub" : [
1719
+ " arn:${AWS::Partition}:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}" ,
1720
+ {
1721
+ "stateMachineName" : " name"
1722
+ }
1723
+ ]
1724
+ }
1725
+ }
1726
+ ]
1727
+ },
1728
+ "PolicyName" : " KitchenSinkFunctionRolePolicy63"
1706
1729
}
1707
1730
],
1708
1731
"Tags" : [
You can’t perform that action at this time.
0 commit comments