Example usage for com.amazonaws.services.codepipeline.model EncryptionKey getType

List of usage examples for com.amazonaws.services.codepipeline.model EncryptionKey getType

Introduction

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

Prototype


public String getType() 

Source Link

Document

The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.

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());
}