AWS Key Management Service
Developer Guide

Creating a Client

To use the AWS SDK for Java or the AWS SDK for .NET to write code that uses the AWS Key Management Service (AWS KMS) API, start by creating an AWS KMS client.

The client object that you create, kmsClient, is used in the example code in the topics that follow.


To create an AWS KMS client in Java, use the client builder.

AWSKMS kmsClient = AWSKMSClientBuilder.defaultClient();
AmazonKeyManagementServiceClient kmsClient = new AmazonKeyManagementServiceClient();

For more information about using the client builder, see the following resources.