template.yaml [722:760]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
             },
            "StartPermissionstScanner": {
               "Type": "Task",
               "Resource":"arn:aws:states:::states:startExecution",
               "Parameters":{
                  "Input": {
                    "Data.$": "$.Data"
                  },
                  "StateMachineArn": "${DependentResourceFinder}",
                  "Name.$":"$.Data.ProcessName"
               },
             "ResultPath":"$.Result",
             "Next":"GetScannedResourcePermissions"
            },

            "GetScannedResourcePermissions":{
              "Type":"Task",
              "Resource":"${ScanedResourceStatus.Arn}",
              "Catch":[
              {
                "ErrorEquals":[
                  "States.ALL"
                ],
                "Next":"UnhandledError"
              }
              ],
              "Next":"CheckScanedResourcePermissionsStatus"
            },
            "CheckScanedResourcePermissionsStatus":{
              "Type":"Choice",
              "Choices":[
              {
                 "Variable":"$.Status",
                 "StringEquals":"Wait",
                 "Next":"WaitForScanedResourcePermissions"
              },
              {
                 "Variable":"$.Status",
                 "StringEquals":"Completed",
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



template.yaml [967:1004]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
             },
            "StartPermissionstScanner": {
                 "Type": "Task",
                 "Resource":"arn:aws:states:::states:startExecution",
                 "Parameters":{
                    "Input": {
                      "Data.$": "$.Data"
                    },
                    "StateMachineArn": "${DependentResourceFinder}",
                    "Name.$":"$.Data.ProcessName"
                 },
               "ResultPath":"$.Result",
               "Next":"GetScannedResourcePermissions"
              },
              "GetScannedResourcePermissions":{
                "Type":"Task",
                "Resource":"${ScanedResourceStatus.Arn}",
                "Catch":[
                {
                  "ErrorEquals":[
                    "States.ALL"
                  ],
                  "Next":"UnhandledError"
                }
                ],
                "Next":"CheckScanedResourcePermissionsStatus"
              },
              "CheckScanedResourcePermissionsStatus":{
                "Type":"Choice",
                "Choices":[
                {
                   "Variable":"$.Status",
                   "StringEquals":"Wait",
                   "Next":"WaitForScanedResourcePermissions"
                },
                {
                   "Variable":"$.Status",
                   "StringEquals":"Completed",
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



