in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ModelHelper.java [316:329]
public static ArtifactConfigInput getArtifactConfigInput(ArtifactConfig artifactConfig) {
S3Encryption s3Encryption = artifactConfig != null ? artifactConfig.getS3Encryption() : null;
String encryptionMode = null;
String kmsKeyArn = null;
if (s3Encryption != null) {
encryptionMode = s3Encryption.getEncryptionMode();
kmsKeyArn = s3Encryption.getKmsKeyArn();
}
return ArtifactConfigInput.builder().s3Encryption(S3EncryptionConfig.builder()
.encryptionMode(encryptionMode)
.kmsKeyArn(kmsKeyArn).build()).build();
}