diff --git a/src/main/java/com/amazonaws/codedeploy/AWSCodeDeployPublisher.java b/src/main/java/com/amazonaws/codedeploy/AWSCodeDeployPublisher.java index bd747c6..5eb74ac 100644 --- a/src/main/java/com/amazonaws/codedeploy/AWSCodeDeployPublisher.java +++ b/src/main/java/com/amazonaws/codedeploy/AWSCodeDeployPublisher.java @@ -126,7 +126,7 @@ public AWSCodeDeployPublisher( String versionFileName, String deploymentMethod, String awsAccessKey, - Secret awsSecretKey, + String awsSecretKey, String iamRoleArn, String externalId, String includes, @@ -153,7 +153,7 @@ public AWSCodeDeployPublisher( this.deploymentMethod = deploymentMethod; this.versionFileName = versionFileName; this.awsAccessKey = awsAccessKey; - this.awsSecretKey = awsSecretKey; + this.awsSecretKey = Secret.fromString(awsSecretKey); this.iamRoleArn = iamRoleArn; this.deploymentGroupAppspec = deploymentGroupAppspec;