Class AWSAPIUtil


  • public class AWSAPIUtil
    extends Object
    This class contains utility methods to interact with AWS API Gateway
    • Constructor Detail

      • AWSAPIUtil

        public AWSAPIUtil()
    • Method Detail

      • importRestAPI

        public static String importRestAPI​(org.wso2.carbon.apimgt.api.model.API api,
                                           software.amazon.awssdk.services.apigateway.ApiGatewayClient apiGatewayClient,
                                           String region,
                                           String stage)
                                    throws org.wso2.carbon.apimgt.api.APIManagementException
        Throws:
        org.wso2.carbon.apimgt.api.APIManagementException
      • reimportRestAPI

        public static String reimportRestAPI​(String referenceArtifact,
                                             org.wso2.carbon.apimgt.api.model.API api,
                                             software.amazon.awssdk.services.apigateway.ApiGatewayClient apiGatewayClient,
                                             String region,
                                             String stage)
                                      throws org.wso2.carbon.apimgt.api.APIManagementException
        Throws:
        org.wso2.carbon.apimgt.api.APIManagementException
      • deleteDeployment

        public static boolean deleteDeployment​(String referenceArtifact,
                                               software.amazon.awssdk.services.apigateway.ApiGatewayClient apiGatewayClient,
                                               String stage)
                                        throws org.wso2.carbon.apimgt.api.APIManagementException
        Throws:
        org.wso2.carbon.apimgt.api.APIManagementException