in src/main/java/com/amazonaws/codepipeline/jenkinsplugin/PublisherTools.java [158:166]
private static SSEAwsKeyManagementParams toSSEAwsKeyManagementParams(final EncryptionKey encryptionKey) {
if (encryptionKey != null
&& encryptionKey.getId() != null
&& EncryptionKeyType.KMS.toString().equals(encryptionKey.getType())) {
return new SSEAwsKeyManagementParams(encryptionKey.getId());
}
return new SSEAwsKeyManagementParams();
}