public AWSCodeDeployPublisher()

in src/main/java/com/amazonaws/codedeploy/AWSCodeDeployPublisher.java [116:191]


    public AWSCodeDeployPublisher(
            String s3bucket,
            String s3prefix,
            String githubRepository,
            String githubCommitId,
            String applicationName,
            String deploymentGroupName,
            String deploymentConfig,
            String region,
            Boolean deploymentGroupAppspec,
            Boolean waitForCompletion,
            Long pollingTimeoutSec,
            Long pollingFreqSec,
            String credentials,
            String versionFileName,
            String deploymentMethod,
            String awsAccessKey,
            String awsSecretKey,
            String iamRoleArn,
            String externalId,
            String includes,
            String proxyHost,
            int proxyPort,
            String excludes,
            String subdirectory) {

        this.externalId = externalId;
        this.applicationName = applicationName;
        this.deploymentGroupName = deploymentGroupName;
        if (deploymentConfig != null && deploymentConfig.length() == 0) {
            this.deploymentConfig = null;
        } else {
            this.deploymentConfig = deploymentConfig;
        }
        this.region = region;
        this.includes = includes;
        this.excludes = excludes;
        this.subdirectory = subdirectory;
        this.proxyHost = proxyHost;
        this.proxyPort = proxyPort;
        this.credentials = credentials;
        this.deploymentMethod = deploymentMethod;
        this.versionFileName = versionFileName;
        this.awsAccessKey = awsAccessKey;
        this.awsSecretKey = awsSecretKey;
        this.iamRoleArn = iamRoleArn;
        this.deploymentGroupAppspec = deploymentGroupAppspec;

        if (waitForCompletion != null && waitForCompletion) {
            this.waitForCompletion = waitForCompletion;
            if (pollingTimeoutSec == null) {
                this.pollingTimeoutSec = DEFAULT_TIMEOUT_SECONDS;
            } else {
                this.pollingTimeoutSec = pollingTimeoutSec;
            }
            if (pollingFreqSec == null) {
                this.pollingFreqSec = DEFAULT_POLLING_FREQUENCY_SECONDS;
            } else {
                this.pollingFreqSec = pollingFreqSec;
            }
        } else {
            this.waitForCompletion = false;
            this.pollingTimeoutSec = null;
            this.pollingFreqSec = null;
        }

        this.s3bucket = s3bucket;
        if (s3prefix == null || s3prefix.equals("/") || s3prefix.length() == 0) {
            this.s3prefix = "";
        } else {
            this.s3prefix = s3prefix;
        }

        this.githubRepository = githubRepository;
        this.githubCommitId = githubCommitId;
    }