Class AWSGatewayDeployer

  • All Implemented Interfaces:
    org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer

    public class AWSGatewayDeployer
    extends Object
    implements org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
    This class controls the API artifact deployments on the AWS API Gateway
    • Constructor Detail

      • AWSGatewayDeployer

        public AWSGatewayDeployer()
    • Method Detail

      • deploy

        public String deploy​(org.wso2.carbon.apimgt.api.model.API api,
                             org.wso2.carbon.apimgt.api.model.Environment environment,
                             String referenceArtifact)
                      throws org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
        Specified by:
        deploy in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
        Throws:
        org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
      • undeploy

        public boolean undeploy​(String apiID,
                                String apiName,
                                String apiVersion,
                                String apiContext,
                                org.wso2.carbon.apimgt.api.model.Environment environment,
                                String referenceArtifact)
                         throws org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
        Specified by:
        undeploy in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
        Throws:
        org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
      • undeployWhenRetire

        public boolean undeployWhenRetire​(org.wso2.carbon.apimgt.api.model.API api,
                                          org.wso2.carbon.apimgt.api.model.Environment environment,
                                          String referenceArtifact)
                                   throws org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
        Specified by:
        undeployWhenRetire in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
        Throws:
        org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
      • getConnectionConfigurations

        public List<org.wso2.carbon.apimgt.api.model.ConfigurationDto> getConnectionConfigurations()
        Specified by:
        getConnectionConfigurations in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
      • getType

        public String getType()
        Specified by:
        getType in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
      • getGatewayFeatureCatalog

        public com.google.gson.JsonObject getGatewayFeatureCatalog()
                                                            throws org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
        Specified by:
        getGatewayFeatureCatalog in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
        Throws:
        org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
      • validateApi

        public List<String> validateApi​(org.wso2.carbon.apimgt.api.model.API api)
                                 throws org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
        Specified by:
        validateApi in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
        Throws:
        org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
      • getAPIExecutionURL

        public String getAPIExecutionURL​(String url,
                                         org.wso2.carbon.apimgt.api.model.Environment environment,
                                         String referenceArtifact)
                                  throws org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
        Specified by:
        getAPIExecutionURL in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
        Throws:
        org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
      • transformAPI

        public void transformAPI​(org.wso2.carbon.apimgt.api.model.API api)
                          throws org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
        Specified by:
        transformAPI in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer
        Throws:
        org.wso2.carbon.apimgt.impl.deployer.exceptions.DeployerException
      • getDefaultHostnameTemplate

        public String getDefaultHostnameTemplate()
        Specified by:
        getDefaultHostnameTemplate in interface org.wso2.carbon.apimgt.impl.deployer.ExternalGatewayDeployer