functions/ecs-shutdown-services/src/main/java/com/amazon/aws/partners/saasfactory/saasboost/EcsShutdownServices.java [93:133]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                );
                            } catch (SdkServiceException ecsError) {
                                LOGGER.error("ecs::UpdateService", ecsError);
                                LOGGER.error(Utils.getFullStackTrace(ecsError));
                                throw ecsError;
                            }
                        }
                    }
                } catch (SdkServiceException ecsError) {
                    LOGGER.error("ecs::DescribeServices", ecsError);
                    LOGGER.error(Utils.getFullStackTrace(ecsError));
                    throw ecsError;
                }
            }
        }

        return null;
    }

    protected ArrayList<Map<String, Object>> getProvisionedTenants(Context context) {
        ArrayList<Map<String, Object>> provisionedTenants = null;
        try {
            String getTenantsResponseBody = ApiGatewayHelper.signAndExecuteApiRequest(
                    ApiGatewayHelper.getApiRequest(
                            API_GATEWAY_HOST,
                            API_GATEWAY_STAGE,
                            ApiRequest.builder()
                                    .resource("tenants/provisioned")
                                    .method("GET")
                                    .build()
                    ),
                    API_TRUST_ROLE,
                    context.getAwsRequestId()
            );
            provisionedTenants = Utils.fromJson(getTenantsResponseBody, ArrayList.class);
        } catch (Exception e) {
            LOGGER.error("Error invoking API " + API_GATEWAY_STAGE + "/tenants/provisioned");
            LOGGER.error(Utils.getFullStackTrace(e));
            throw new RuntimeException(e);
        }
        return provisionedTenants;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



functions/ecs-startup-services/src/main/java/com/amazon/aws/partners/saasfactory/saasboost/EcsStartupServices.java [106:146]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                );
                            } catch (SdkServiceException ecsError) {
                                LOGGER.error("ecs::UpdateService", ecsError);
                                LOGGER.error(Utils.getFullStackTrace(ecsError));
                                throw ecsError;
                            }
                        }
                    }
                } catch (SdkServiceException ecsError) {
                    LOGGER.error("ecs::DescribeServices", ecsError);
                    LOGGER.error(Utils.getFullStackTrace(ecsError));
                    throw ecsError;
                }
            }
        }

        return null;
    }

    protected ArrayList<Map<String, Object>> getProvisionedTenants(Context context) {
        ArrayList<Map<String, Object>> provisionedTenants = null;
        try {
            String getTenantsResponseBody = ApiGatewayHelper.signAndExecuteApiRequest(
                    ApiGatewayHelper.getApiRequest(
                            API_GATEWAY_HOST,
                            API_GATEWAY_STAGE,
                            ApiRequest.builder()
                                    .resource("tenants/provisioned")
                                    .method("GET")
                                    .build()
                    ),
                    API_TRUST_ROLE,
                    context.getAwsRequestId()
            );
            provisionedTenants = Utils.fromJson(getTenantsResponseBody, ArrayList.class);
        } catch (Exception e) {
            LOGGER.error("Error invoking API " + API_GATEWAY_STAGE + "/tenants/provisioned");
            LOGGER.error(Utils.getFullStackTrace(e));
            throw new RuntimeException(e);
        }
        return provisionedTenants;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



