Menu
AWS Key Management Service
Developer Guide

Creating a Client

To use the AWS SDK for Java to write code that uses the AWS Key Management Service (AWS KMS) API, you start by creating a client. The following code snippet shows you how to do this using the SDK's client builder. For more information about using the client builder, see the following resources.

The client object, kms, is used in the example code in the topics that follow.

Copy
AWSKMS kms = AWSKMSClientBuilder.defaultClient();