Example usage for com.amazonaws.services.codepipeline.model EncryptionKeyType KMS

List of usage examples for com.amazonaws.services.codepipeline.model EncryptionKeyType KMS

Introduction

In this page you can find the example usage for com.amazonaws.services.codepipeline.model EncryptionKeyType KMS.

Prototype

EncryptionKeyType KMS

To view the source code for com.amazonaws.services.codepipeline.model EncryptionKeyType KMS.

Click Source Link

Usage

From source file:jetbrains.buildServer.codepipeline.CodePipelineBuildListener.java

License:Apache License

@NotNull
private static SSEAwsKeyManagementParams getSSEAwsKeyManagementParams(@Nullable EncryptionKey encryptionKey) {
    return encryptionKey == null || encryptionKey.getId() == null || encryptionKey.getType() == null
            || !EncryptionKeyType.KMS.toString().equals(encryptionKey.getType())
                    ? new SSEAwsKeyManagementParams()
                    : new SSEAwsKeyManagementParams(encryptionKey.getId());
}